How to run an ATF test positively without failing for the negative test
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2022 09:24 AM
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.
Now when I click on Release, it will throw an error.
Is there a way to read the error without failing my ATF Test case? Any ideas please?
Regards
Suman P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 03:17 AM
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