Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

ATF Failure with "Open an Existing Record"

HARMUE
Kilo Contributor

Hello,

I create a Automated Test framework for the first time and it runs pretty good. While te test runs: after the creation of a change I want to open the task belonging to the change and I get the following error:

FAILURE: Failed to open the 'change_task' form with id '3e74d815db6a0450e14030d6f4961939' Table 'change_task' does not have a record with id '3e74d815db6a0450e14030d6f4961939'

How can the problem be solved?

1 ACCEPTED SOLUTION

Esayas
Kilo Expert

In simple terms, these are the two steps you need to open the task when created.

 

find_real_file.png

find_real_file.png

The record query will fetch the ID for the Task which you will use to open the record in the next step.

The record referred in step 5 is the change request ID.

View solution in original post

7 REPLIES 7

Hi Brand,

how could I create the record lookup step?

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Use the Record query step to look up tasks associated with your change request: https://docs.servicenow.com/bundle/newyork-application-development/page/administer/auto-test-framewo...

Esayas
Kilo Expert

In simple terms, these are the two steps you need to open the task when created.

 

find_real_file.png

find_real_file.png

The record query will fetch the ID for the Task which you will use to open the record in the next step.

The record referred in step 5 is the change request ID.