Quantcast
Channel: Quality Center / ALM Practitioners Forum topics
Viewing all articles
Browse latest Browse all 5491

QC Workflow - Copy field from test in test plan to field from test instance in test lab

$
0
0

Hi all,

 

When I want to add a test to a test set in Test Lab, a custom field from this test should also be copied to the custom field in the test instance of the test set.

 

I found already some information in following post, but this is not working at all:

http://www.sqaforums.com/forums/hp-alm-mercury-quality-center/143387-copy-value-test-field-test-instance.html

 

I also tried something else, but

 

'Variable
Public ActiveTestInstance, valueToCopy


In Test Plan:
Sub Test_MoveTo
  On Error Resume Next
  If ActiveModule = "Test Lab" Then 'I was hoping that navigating the test tree in test lab would trigger the MoveTo function from test plan.
  valueToCopy = Test_Fields("TS_USER_01").Value
       End If
  On Error GoTo 0
End Sub

'In Test Lab
Sub TestSetTests_AfterPost
  On Error Resume Next
  
  TestSetTest_Fields("TC_USER_01").Value = valueToCopy 
  
On Error GoTo 0
End Sub

 

the subroutine Test_MoveTo is not being triggered from within Test Lab.

 

Anyone have any idea how to pass on a field when adding a test to a test set?

This would be a great help. Thanks!


Viewing all articles
Browse latest Browse all 5491

Trending Articles



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