Skip to content

Conversation

@at8807602
Copy link
Contributor

Above custom test step configuration script will help to get the "Number" & "Short Description" based on the sys_id of the incident. Let's say while performing any server dependent steps on incident table this custom step configuration script can be very usefullt to retrieve the details, not only about incident or number, short_description. Anybody can utilize this script to create custom step configuration script on different usecases o scenario.

Note: You need to define the inputs & outputs for this, in my case I have defined the 'sys_id' as an input and "Number" & "Short Description" as an output to store the values and use it anywhere. Also to make sure you define the "stepResult.setOutputMessage("Successfull")" and "stepResult.setOutputMessage("Unsuccessfull")"

@ravichandra1998g ravichandra1998g self-assigned this Oct 2, 2025
Copy link
Contributor

@ravichandra1998g ravichandra1998g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@ravichandra1998g ravichandra1998g merged commit 493cbe5 into ServiceNowDevProgram:main Oct 2, 2025
2 checks passed
@ravichandra1998g
Copy link
Contributor

Hello @at8807602 ,

You have created another file path ATF Test again..
DO NOT CREATE NEW PATH as we have a path already for ATF Tests.

follow below path..
under code snippets
Specialized Areas/ATF Steps

@at8807602
Copy link
Contributor Author

Thanks for informing, now I got it. Do I need to create another pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants