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 record update not working.

Ray6
Kilo Contributor

I am trying to use Automated Testing to test the following process.

  1. User enters a catalog Request filling out a form with a number of variables associated to the form.
  2. The user "orders" the catalog item kicking off a workflow.
  3. The workflow creates a requested item with the variables entered in 1. above associated to the requested item.  The workflow also creates a task to update the value of another variable.
  4. When the variable value mentioned in 3 is updated and the task "closed complete" the workflow then assigns another task based on the value enter in 3. 
  5. When the task created in 4 is "closed complete" the workflow completes closing the requested item and the request.

 

The Automated Test I have created, has all of the steps mentioned above including a Record Update to update the variable value in 3 above complete successfully.  When the variable value update is checked for the updated value the step fails.

My question is does Automated Testing allow updating of variables, in a table associated to a requested item?  As mentioned the update completes successfully but when the updated value is "validated" the validation fails.

Thanks for your help.  

1 ACCEPTED SOLUTION

Duncan Pederse1
Giga Expert

You can use a 'Run server script' step to set variable values on the SC Task or RITM level. I do not see a way you can set them with any existing steps like Set Field Values or Set Variable Values.

View solution in original post

6 REPLIES 6

Hi,

 

Can you please provide me with an example script to update variables on sc task.

 

Thank you in advance,

 

Thanks,

Karthik

IamSK
Mega Guru

Hello Cheeta,

 

I have the same issue. It would be helpful if you can able to send me the screenshot of the script which you used for solving this issue. I am new to this ATF scripting. Thanks in advance.

 

 

Thank you,

Sai