How to read an error in ATF?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2019 03:20 AM
Hello Everyone,
I am trying to validate if error message appears during set field values.
I want to read verify that error message. Do we have such functionality in ATF?
If yes, Please explain how.
- Labels:
-
Automated Test Framework

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2019 06:25 AM
Could you be more specific about the type of error message you're trying to read? Here is an article detailing how ATF can identify and resolve client errors: https://docs.servicenow.com/bundle/newyork-application-development/page/administer/auto-test-framewo...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2019 07:24 AM
Hi Anmol
You can use the step "Assert Text on Page (Custom UI)" which is part of Custom UI Steps.
--
Best Regards
Ankush
P.S. Please mark helpful/correct as appropriate to help the fellow community member in identifying the relevant answers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2019 12:05 AM
Thanks for the Help.
But if i want to use this parameter testing then it is getting difficult.
Like if number is in range then then error will not come if number is out of range then only error will come.
If i use Assert Text on page then either i can choose text will be there or not only one case.
But i want to test both positive and negative test.
Except creating two use two test and combining them in test suite. Is there any other solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2019 01:23 AM
Hi Anmol
Have you tried parameterisation in ATF: https://docs.servicenow.com/bundle/madrid-application-development/page/administer/auto-test-framewor...
--
Best Regards
Ankush