Self-Solve Knowledge Search

Minimize Maximize
Workflow script to update two fields in Test instance page when a field in Manua...
This document has not been formally reviewed for accuracy and is provided as is
Title :
Workflow script to update two fields in Test instance page when a field in Manual runner is set
Document ID :
KM01783029
Product - Version:
quality center ;
OS :
Updated :
Fri Aug 14 05:49:41 GMT 2015
Summary :
Workflow script to update two fields in Test instance page when a field in Manual runner is set
Workflow script to update two fields in Test instance page when a field in Manual runner is set
Solution

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.