ATF for Restrict the record

Kri
Tera Guru

I wrote a ATF for the test steps to check the impersonate User won't able to see the record in ServiceNow. I followed the steps 1. Impersonate 2. Open an Existing record. When I run the test the user can't able to see the record because of the ACL but I want the ATF to pass as a result which is currently not happening. is there a way I can modify the test steps for my requirement?

1 ACCEPTED SOLUTION

Hi @Kri 

 

Oh man,

You need to open the case list table before validation.

you can use Navigate to module.

and then validate the record.

 

Regards

Shaqee


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

View solution in original post

5 REPLIES 5

Shaqeel
Mega Sage

Hi @Kri 

 

You want to validate that the impersonator is not able to view certain record, it is working as expected as the record is not present for that impersonated used.

You can do thing though.

1. Impersonate.

2. Navigate to module (for the list view)

3. Validate record present in the list 

and change to assert type to record in not present.

 

This way you will get the test to pass.

 

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


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

I'm getting a error output FAILURE: The 'Case' list could not be found on the currently open page

Hi @Kri 

 

Kindly share the screenshot of the step.


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

Kri_0-1729503805238.png


Kri_1-1729505406913.png