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

Jace Benson
Mega Sage

How are you setting the variable value on the sc_req_item or sc_task record?

I see the Set Variable Value is used to set the variable when requesting the item, not setting them on related forms;

find_real_file.png

Cytus
Kilo Contributor

Hi cheeta, I doubt that your system would have a 2-step-check-out. This will make the step fail at the updated value step because the RITM has not yet created (even that the step 'Order' said it passed)

Ray6
Kilo Contributor

Cytus,

No our system does not have a 2-step-check-out.  When the catalog item is 'ordered' the RITM is created.  The reviewer then "reviews" the RITM and updates the variable on the RITM 'record' without using a custom form.

jacebenson,

You may have something there.  I have been focusing on the "Form" and the "Form" values.  These are the variable values.  Let me try that.

Thanks for the suggestion.

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.