Check if field is read-only or mandatory in ATF server side script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2018 08:03 AM
Hi,
I want to validate that a task variable field is read-only using ATF script, is that possible? I also want to validate that a field is mandatory upon closure of the task, but seems like the mandatory check is not available in server side script.
Thanks in advance!
Alice
- Labels:
-
Automated Test Framework

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2018 08:23 AM
Yes you can do that.
Service Catalog test step: Variable State Validation is the step you want to use.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2018 08:24 AM
oh wait, you said "server-side script"
That would be complicated unless you're using the "mandatory" checkbox on the variable. If you're using UI policies or Client scripts you'd have to somehow evaluate them server side.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 09:51 PM
Can we validate the on the table ,on the list view, whether for the particular user some columns are editable or not?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 09:18 PM
But this can be validated only for the Catalog Items, not for the other tables?