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

Elijah Aromola
Mega Sage

Are you sure it's successfully creating the record? Can you go into your Open Record step and make sure it is using the correct step output?

Esayas
Kilo Expert

Hi

You probably picked the Id from a wrong step. It might be the Id of the Change it self. But you need to post the steps used to identify the problem. 

HARMUE
Kilo Contributor

Hello,

the task is successfully created, but the change task is created by a workflow, so I don't know how to open the correct record. Have you any idea how to find the right record ID?

Brad Tilton
ServiceNow Employee
ServiceNow Employee

You'd probably need a record lookup step to look up change tasks associated with your change request, then pass that change task sys_id to the open record step.