Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to test ACL for any field in list view using ATF?

Vivek86
Giga Contributor

There is testing scenario where I need to check if the field(eg. field: business impact table: cmdb_ci_service_discovered) is read-only or editable in list view for an ITIL user. How to test this using ServiceNow ATF? Also, is it possible to test this using the run server-side script test step?

3 REPLIES 3

Shaqeel
Mega Sage

Hi @Vivek86 

 

For validating the fields, the best practice is to open any new form/existing record and use "Fields state validation".

By this you can test whether fields are read-only, visible, mandatory or not.

 

& yes you can run server side script test.

 

Regrds

Shaql


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

Vivek86
Giga Contributor

Hi Shaql,

 

Thanks for your response. I have tried using the below script, but it checks only the sys_dictionary entry of the attribute. Could you please help with script if the field access (write/read) is provided using ACL?

Vivek86_0-1695637410103.png

 

Were you able to validate that the fields are editable or not in list view?

Please let me know if you achieved that or if it's achievable, as we have similar requirements.