How to check a user's group membership in ATF server script

Savion Amerson
Tera Contributor

Hello all, 

 

I'm creating an ATF test that involves validating user's being members of s specific group. I've found that ATF is not able to directly click the "group members" tab in the related lists of the group's record. How can I go about properly querying this in ATF's server-side test step? 

 

I've written this script but does not give me the output messages in the results:

 

SavionAmerson_0-1699563786761.png

 

Thanks a lot in advance!

2 REPLIES 2

Shaqeel
Mega Sage

Hi @Savion Amerson 

 

You can actually do it by 2 ways:

First way:

1. Open existing form (select table as Group, and open that specific group)

2. Apply filter to list

Shaqeel_0-1699601301195.png

 

Second Way:

1. Open existing form (select table as User, and open that specific user)

2. Apply filter to list.

Shaqeel_1-1699601572480.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

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Savion Amerson 

 

I dont think need to write any code. You can open the table (in ATF) and search user or via Filter List.

*************************************************************************************************************
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
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

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