Quality Center / ALM Practitioners Forum
cancel

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

SOLVED
Go to solution
BDO
Respected Contributor.

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
Maximilien
Contributor.

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

place this code where you need it :

 

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

 

regards,

Maximilien.

 

Highlighted
BDO
Respected Contributor.
Solution

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 ...