Re: HP ALM 11 - How to open a new defect window while Step run goes "Failed" ? (583 Views)
Reply
BDO
Occasional Advisor
BDO
Posts: 10
Registered: ‎10-10-2013
Message 1 of 3 (636 Views)
Accepted Solution

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

Occasional Visitor
Maximilien
Posts: 3
Registered: ‎10-10-2013
Message 2 of 3 (617 Views)

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.

 

BDO
Occasional Advisor
BDO
Posts: 10
Registered: ‎10-10-2013
Message 3 of 3 (583 Views)

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

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.