Check if field is read-only or mandatory in ATF server side script?
Options
- 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:
- Labels:
-
Automated Test Framework
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2020 01:40 PM
Hi Alice, I believe you should be able to do this by using one of the following OOTB steps:
- Products -> Variable State Validation: This step can be used to check the state of the variable such as (mandatory, visible, read-only, etc..)
- Products -> Validate Variable Values: This step can be used to validate the actual value that was selected within that variable.
- Products -> Set Variable Values: This step will populate a variable with a value.
You have to make sure the task/form is first opened, then you can validate the variables. I hope this helps.
Thanks
---
Please mark my answer as correct if it has helped you. Thanks!