ATF - Input variable from a different table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2025 11:13 AM
I am trying to setup an automated test in IRM that is trying to validate fields (including a custom field and behavior) that requires creating a record from 2 different tables so that second record can refer to the first one. In order, I am trying to:
- Create a record in the Control objective [sn_compliance_policy_statement] table
- Create a record in the Control [sn_compliance_control] table
- In the second record, refer to the first record using the Control objective field (which allows me to search for an existing control objective record
While all of this is successful when testing manually, in ATF, if I try to "Open a new form" from the Control table and "Set field values" for the control objective field using an input variable from the previously submitted Control Objective form, it fails giving me an error message of "FAILURE: Failed to set field 'category' to value '8bc355143bdee210deb64b54c3e45a10' because the reference is NOT valid".
I tried to verify the following:
- It was not a security related issue (the user I created had the same roles as myself when I manually tested)
- I also tried impersonating myself to be sure
- It was not an application scope issue (since it seems that I can do it manually with no issues under the same application)
- I am able to use "Open an existing record" in the same control objective form after I successfully submit it, so the record does indeed exist
Here's what the test steps would look like:
What is the cause? And if this error is inevitable the way I am doing it, is there a workaround to test the same thing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2025 06:30 AM
Hi @sushmapinapati ,
Due dilligence is one of the values in the dropdown menu available for the Category N1 field. I had to set it up as a field value directly in order to continue my tests because using the reference was not functional unfortunately.