How to test ACL for any field in list view using ATF?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 08:23 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 12:27 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 03:24 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
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.
