How to test negative scenarios using ATF test case
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2024 06:40 AM
Hi,
We have a test case to check portal user should NOT able to click on a button if time period passes in a list view in service portal.
How can we complete the test case PASS successfully with this scenario?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2024 08:46 AM
You can try using Assert Type of Form submission canceled in browser on the Click UI Action (SP) test step.
I'm not sure if it will would work with the time period you are taking about unless that is in your UI Actions time conditions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2024 01:11 AM
Hi @KKS1
One question: Is the button visible to portal user if the time period expired, if no you can use UI Action Visibility Validation (SP)
Is yes, and the button does not do anything then you can try the following options.
Regards
Shaqeel
***********************************************************************************************************************
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