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:
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!