Quality Center / ALM Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

HP ALM 11 - How to open a new defect window while Step run goes "Failed" ?

SOLVED
Go to Solution
Advisor

HP ALM 11 - How to open a new defect window while Step run goes "Failed" ?

Hello,

 

I would like to "force" the testers to create a Defect each time a Step run is set to "Failed" (via Manual Runner). It seem that I found the right place to write the code but I do not know how to make the New Defect Window open in Script Editor :

 

Sub Step_AfterPost

  On Error Resume Next

 

  If Step_Fields("ST_STATUS").Value = "Failed" Then

    Bug_New ???

  End if

 

  On Error GoTo 0

End Sub

 

Thank you for any help

Best Regards

Bertrand

2 REPLIES
Occasional Visitor

Re: HP ALM 11 - How to open a new defect window while Step run goes "Failed" ?

[ Edited ]

place this code where you need it :

 

      Actions.Action("Defects.NewDefect").Execute

 

regards,

Maximilien.

 

Highlighted
Advisor

Re: HP ALM 11 - How to open a new defect window while Step run goes "Failed" ?

Thank you Maximilien, it works. Because the action has to be triggered in the StepsView, the code is :

 

Actions.Action("StepsView.NewDefect").Execute

 

Unfortunately, it seems that the "Bug_New" subroutine is not called or is bypassed ...