How to run an ATF test positively without failing for the negative test

ServiceNow Use6
Tera Guru

Hi All,

 

Good Evening. I have a scenario where I have to show that an error is displayed but the test should not fail. I am not sure if it can be done. I will explain you step by step via pictures. Kindly help.

API1.PNG

 

Now when I click on Release, it will throw an error.

API2.PNG

Is there a way to read the error without failing my ATF Test case? Any ideas please?

 

Regards

Suman P.

10 REPLIES 10

Shaqeel
Mega Sage

Hi @ServiceNow Use6 

 

It can be done.

So after filling up the required fields, hit Release.

After that step you can validate the error message with the help of "Assert text on page" & you can validate the fields are mandatory.

 

kindly mark it as solution/helpful and close this thread.

 

Regards

ATF expert


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel