- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2018 11:10 AM
I'm trying to use ATF to test a client script that removes a choice from a choice list for certain users.
Essentially, I want to use the Set Field Values step in the Form category. I impersonate a user who can't see the choice and then tell the Set Field Values step to select that choice. The step will fail, but it's supposed to fail. How can I tell ATF that it's good for a step to fail and that the test should pass?
Can I make a step configuration for forms and do a work around that way?
Solved! Go to Solution.
- Labels:
-
Automated Test Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2018 01:52 PM
I am afraid its not possible. If ServiceNow would have allowed us to crate Custom Step Configuration for UI, we could have created some thing like "test failure for Set Value". But as of now, there is no way around to configure failures into a Green Signal.
-Really disappointing, there are many areas where ATF finds itself weak, for example: I have AJAX calls on the form that populate few fields on load, and ATF doesnt wait for the Ajax calls to finish and the fields dont get populated.
Thank you,
Aman Gurram
is your question answered ? if its not answered then please let us know your additional questions.
If it is answered, then please close this thread by marking the appropriate answer as Correct. This way others might find this thread helpful in future. Also, please mark the appropriate answers as Helpful if applicable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2019 04:49 PM
If this isn't possible from an OOB situation, could it be done with using a "Run Server Side Script" and noting its error message into the "Whitelisted client error records"?
I am seeking this alternative in order to confirm the form error message does appear if upon submission a user does not fill in mandatory field.