Quantcast
Channel: All Quality Center / ALM Practitioners Forum posts
Viewing all articles
Browse latest Browse all 14708

How to copy Test Step field value into Test field while execution

$
0
0

Hi,

 

While Test execution (TestSetTest) one of the step field value needs to copy and paste into Test field.

 

If any one experience this, please let me know.

 

For Ex: If any specific Test Step is passed and a User field is updated with a value (Not blank), then the value of the user field suppose to be copied back to one of the test instance (TestSetTest) field in Execution grid.

For the same I tried with below piece of code under Manual Runner Script with 2 events are:

  1. Step_FieldCanChange(FieldName, NewValue)
  2. Step_FieldChange(FieldName)

 

Sample Code:
  If Step_Fields("ST_STATUS").Value = "Passed"  Then
     If Step_Fields("ST_USER_02").Value <> "" Then
          TestSetTest_Fields("TC_USER_01").Value = Step_Fields("ST_USER_02").Value
          TestSetTest_Fields("TC_TESTER_NAME").Value = ""
     End If
  End If

 

Thanks In Advance,

Subbarao P


Viewing all articles
Browse latest Browse all 14708

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>