| || |
How to shift a value from Test Plan into Defects
I've add a new field for the Test Plan which called "reference to" (TS_USER_02). This field is required and drop down box.
And I've add a new field for the Defects(BG_USER_03), the same field as in the Test Plan.
So the value from the required Test Plan field must copy into the Defect field.
Now I use the Workflow script:
On Error Resume Next
'Befüllt das Reference to Feld
Bug_Fields("BG_USER_03").Value = Test_Fields("TS_USER_02").Value
On Error GoTo 0
But the Defect filed (BG_USER_03) does not get the value from TS_USER_02 if I add a new Defect if I use Test Plan -> Run -> Begin Run -> New Defect
Does anybody can help me please to solve this issue?
Thanks a lot!
Re: How to shift a value from Test Plan into Defects
This is hard to do a) >1 instances can be selected to run, so the _fields value is not reliable b) Runner scripts cant share values directly with other modules c) From QC9, new bugs are no longer created with run information - links are created afterwards.
For manual runs, defect defaults derived from the run can be stored (common settings or client file) when the defect action is taken, then restored by defects script for new or changed bugs.