is there a location to test code/scripts

humblecommitted
Kilo Guru

hello community,

i had a quick question about testing scripts and codes,

is there a location within servicenow that we can input scripts and code to test its functionality i.e. lets say you have a script that you want to test in a workflow,   instead of running the item that triggers the work flow, just copy and paste the code to a test bed that will run the code to see if will get servicenow to do what you wanted the code to do i.e. creating an SR or run other workflows, notifications, etc.

1 ACCEPTED SOLUTION

The SN Nerd
Giga Sage
Giga Sage

Use XPlore from the ServiceNow Share page. This is by far the best tool to test scripts available.



Fix Scripts are a better option to Background Scripts in my opinion.


You can save them for re-use and run them in the background.



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

View solution in original post

12 REPLIES 12

Bharath40
Giga Guru

Hi,



You can test it in background scripts. Background Scripts — ServiceNow Elite


hello bharath,



that is exactly what i am looking for but i cannot find it in my instance.



i followed the steps but nothing... is it a plugin that i need to install?



i am running helsinki



find_real_file.pngfind_real_file.png


You need to be an administrator and have elevated privileges for security admin enabled.



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

hello paul,



i did ensure my security role was enabled.



note: this was an helsinki upgrade from eureka