HP ALM 11.0 - Bug_New function not executed when calling action StepsView.NewDefect
I've inserted the code below in the Manual Runner Script Editor in order to trigger the "New Defect" window opening when a Test Step is set to "Failed".
Unfortunately, it seems that neither the Sub Bug_New nor Bug_MoveTo function is called, avoiding the customization code of those functions to be executed (to hide and auto fulfill fields). On the opposite, when I manually click on the "New Defect" button of the view, the Bug_New function is well executed and my fields are OK.
Sub Step_AfterPost On Error Resume Next If Step_Fields("ST_STATUS").Value = "Failed" Then Actions.Action("StepsView.NewDefect").Execute End if On Error GoTo 0 End Sub
Does anyone can explain this behavior ? Have you an idea of how I can investigate / debug ?