| || |
QC9 - Controlling Defect Dialog thru Test Lab
I've done a reasonable amount of customisation within the Defects module for the creation of a new defect or modifying an existing one (eg Dialog appearance, List/Field repopulation, email notification).
Then I find out that a user can open the Defect Details dialog through the Run Steps, Linked Defects screens. Whilst I can pick up the openning of the dialog itself with the TestLab_DialogBox trigger, very little else the user does in this screen causes event triggers to occur. (I had expected the Defects Module triggers to work.)
How can I gain control over the Defect Details dialog when it is opened from this alternate Test Lab path?
Re: QC9 - Controlling Defect Dialog thru Test Lab
alrighty - I came up with something that works for me and thought I would post it just in case others were interested...
on error resume next
if actionname = "actOpenDefectDetails" then
TestLab_ActionCanExecute = False
NewDefectAction = Actions.action("actGotoDefect")
TestLab_ActionCanExecute = true
On Error GoTo 0
I've also tried adding in the following to actually open the Defects Dialog from within the Defects module, but it causes application exceptions:
ANewDefectAction = Actions.action("actBugDetails")
I'll probably try and get back to this one and improve it later, but for now - it's probably good enough.