Does ATF check reference qualifiers?

Gary Kakazu
Kilo Contributor

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:

  1. Open a new form
  2. Set the change field value to a change I know is already closed & not active
  3. Submit the form.
  4. Open the record I just submitted
  5. 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?

1 ACCEPTED SOLUTION

Rahul Kathuria
Tera Expert

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

 

View solution in original post

3 REPLIES 3

Rahul Kathuria
Tera Expert

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

 

Gary Kakazu
Kilo Contributor

OK, thanks. Will work around this limitation for now.

Community Alums
Not applicable