Remember that I am passing a field from the TestPlan to the Defects via the Manual Runner. First I pass the TestID to the Defect Module, and then I use OTA to fetch the value of the field in the TestPlan. I imagine you can also do it the other way around...
In the Manual Runner workflow post the following:
On Error Resume Next
If ActionName = "act_add_bug" then
Set uset = TDConnection.UserSettings
On Error GoTo 0
Then on the Defects Workflow the following:
If not csValue="" then
Dim tFactory, test1
Set tFactory = TDConnection.TestFactory
Set test1 = tFactory.item(csValue)
Obviously BG_USER_29 and TS_USER_07 will be based on what you want to do and where.
How would we adapt this workflow to cover a field from the Test Lab, or Test in Test Set (TC_USER_XX), to bring to the Defects module? Simply changing the BG = TS line to TC doesn't work. Is there something I am missing in the code? Thanks in advance.
This worked great for me to pull data into the Defect from Test Plan.
#1 What if I want to pull data into the Manual Run window from Test Plan? I'm wanting to pull an Expected Results memo field from the Test Plan entry onto the Manual Run window so the user doesn't have to click on the <font color="blue">more info</font> link.
#2 The other thing I'd like to do is automatically pull the Test Plan Description and Expected result into the Defect Description when a Defect is created from manual run.