- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-23-2019 09:26 AM
I create an automated test but the reference qualifier I put on a field is not being enforced during testing. Shouldn't they be??
I've boiled this down to a simple example. I created a table with a reference field to the change_request table. I put a reference qualifier on the field to only use active changes. If I go to the form manually, the reference qualifier works. I can only insert open changes, not closed ones.
However, in my automated test, I do the following:
- Open a new form
- Set the change field value to a change I know is already closed & not active
- Submit the form.
- Open the record I just submitted
- Check the value of the change field. The change field is the change I entered in step 2 (i.e. the closed change)
Why didn't the reference qualifier prevent the inactive change from being entered & saved?
Solved! Go to Solution.
- Labels:
-
Automated Test Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-23-2019 09:52 AM
I don't think ATF is quite ready for these kind of tests. Please see the link below which explains this. You can use a server side script instead.
https://community.servicenow.com/community?id=community_question&sys_id=883843addb1cdbc01dcaf3231f96191f
Thanks
Rahul Kathuria
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-23-2019 09:52 AM
I don't think ATF is quite ready for these kind of tests. Please see the link below which explains this. You can use a server side script instead.
https://community.servicenow.com/community?id=community_question&sys_id=883843addb1cdbc01dcaf3231f96191f
Thanks
Rahul Kathuria
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-27-2019 07:40 AM
OK, thanks. Will work around this limitation for now.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-06-2022 12:52 PM
Found this while researching the topic:
KB0726342 "Set Field Values" in ATF and reference qualifiers are not supported