How to test negative scenarios using ATF test case

KKS1
Tera Contributor

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?

2 REPLIES 2

Brian Lancaster
Tera Sage

You can try using Assert Type of Form submission canceled in browser on the Click UI Action (SP) test step.

BrianLancaster_0-1716306221877.png

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.

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.

Shaqeel_0-1716365347806.png

 

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