Workflow - Accessing Test Plan fields in TestLab
I am trying to display a value in a message box when a testset_test field changes. The value is held in test rather than testset_test though which is where I think i am having problems.
The code I am using is stored in TestLab_TestSetTests_FieldChange:
If FieldName = "TC_USER_02" Then
If TestSetTest_Fields.Field("TC_USER_02").Value = "Junior" Then
TS_USER_08 is displayed in TestLab for each instance of a test but when displayed in the MsgBox, a 0 is returned. I am assuming this is because it cannot link the test instance in test set to the appropriate test in test plan.
Is there a way around this?
Re: Workflow - Accessing Test Plan fields in TestLab
I also have some difficulty with the whole "special" fields that you can use within a workflow (TestSetTest_Fields and the likes) but I know that you can simple use the OTA client within the VBScript environment. The TDConnection is always available.
What I do advice you to do is first write the macro in VBA and then convert it to VBscript - VBA is easier to debug [img]/images/graemlins/wink.gif[/img]