Workflow script to update two fields in Test instance page when a field in Manual runner is set

  • KM01783029
  • 14-Aug-2015
  • 14-Aug-2015

This document has not been formally reviewed for accuracy and is provided "as is" for your convenience.

Summary

Workflow script to update two fields in Test instance page when a field in Manual runner is set

Question

Workflow script to update two fields in Test instance page when a field in Manual runner is set

Answer

Please add the following code to subroutine Run_AfterPost

  if Run_Fields("RN_USER_01").Value = Y then
  TestSetTest_Fields("TC_USER_01").Value = "Passed"
  TestSetTest_Fields("TC_USER_04").Value = "admin"
  end if

Here, if the value of field "QA Review" => RN_USER_01 is set to Y, i'm changing the values of "QA Status" => TC_USER_01 to "Passed" and value of "Reviewer" => TC_USER_04 to "admin"

This is a sample script and can be modified according to the requirement.