- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2020 02:49 AM
Hi, i have a problem with a teststep. In the first step i just create a record. in the second step I whant to perform a Script but the ATF dosen't execute that step and in the result the status of the step remains pending. Why is that ?
The step should perform a simpel script:
(function executeStep(inputs, outputs, stepResult, timeout) {
gs.info(JSON.stringify(inputs));
}(inputs, outputs, stepResult, timeout));
Solved! Go to Solution.
- Labels:
-
Automated Test Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2020 04:04 AM
I found my fault. I had to define a Testresult.
I added this line of code and than it is working:
stepResult.setSuccess(true);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2020 02:58 AM
Hey stephan,
you might find solution here:
https://hi.service-now.com/kb_view.do?sysparm_article=KB0789203
Kindly Mark Correct if this solves your issue and also mark Helpful if you find my response worthy!
Best Regards,
Namrata
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2020 03:12 AM
Hi,
I could see a custom step is being used DBS PA Get Value.
inputs is an object whatever value you send to this custom step variable; the same can be used in the script
you need to use input variables which you are creating
in screenshot you can see I have created input variables and how it is being used in the script using inputs; not sure whether gs.info would work there
when you select that custom step; you can see option to set the value of input variable
the way you need to send the value; since it is true/false type you can set it to true by marking the checkbox
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2020 03:35 AM
Thank you for your answers, but my problehm is, that the test is faild but the teststep "DBS Get Value" is still pending. That makes no sense to me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2020 04:04 AM
I found my fault. I had to define a Testresult.
I added this line of code and than it is working:
stepResult.setSuccess(true);