Looking to find the action that you want to ascribe code to? Here’s a quick tip to get the correct ActionName of the buttonpress in HP ALM:
In the ALM Script Editor (Tools | Customize | Workflow | Script Editor) copy this function to the Defects module script:
On Error Resume Next
msgbox "The ActionName is: " & ActionName
On Error GoTo 0
Save and exit the Script Editor and return to the main screen, selecting Major Change where prompted.
To test this we’ll go to the Defects module and press the [New Defect...] button. We get two messageboxes telling us what the ActionNames are (you’ll need to click through the first box to get the second one):
If you’re on a system being used by other testers, don’t forget to go back into Script Editor and delete or comment out your code. I’d recommend just commenting it out so that you can easily reuse it next time – be sure to add comments to the code so that other Admins know what it is there for.