How to read an error in ATF?

Anmol Neb1
Kilo Contributor

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.

5 REPLIES 5

Brad Tilton
ServiceNow Employee
ServiceNow Employee

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...

Ankush Agrawal
ServiceNow Employee
ServiceNow Employee

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.

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. 

Hi Anmol

Have you tried parameterisation in ATF: https://docs.servicenow.com/bundle/madrid-application-development/page/administer/auto-test-framewor...

--
Best Regards
Ankush