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?

2 REPLIES 2

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