ResetRecurrencesTest on [TestNameOfCurrentTest]

Need new test, action, option? Post request here.
Post Reply
Kapz
Posts: 216
Joined: Mon Dec 06, 2004 2:33 pm
Location: Denmark

ResetRecurrencesTest on [TestNameOfCurrentTest]

Post by Kapz »

Hi !

In HM Scripting I can reset recurrences on the test "TestA" by running a one-line script saying

ResetRecurrencesTest TestA

Now, I run a test (basically the same test just performed by different RMA's) on a lot of different webservers that heavily relies on the possibility of entering Test Performer as the "Execute by" parameter in the Action properties window.
This way I can use the same alert profile for this particular test that's beeing run on all the webservers.

I would like to extend this alert profile that's beeing used on multiple servers by adding an action that runs a HM script. This script only have one purpose, resetting the recurrences counter for the test for this particular webserver.
As already mentioned, this can be done by entering e.g. ResetRecurrencesTest TestA.
Trouble is now that this will only work for TestA so when I want this behaviour to be applied to TestB I can no longer use my "shared" Alert profile as my HM Script file exactly specifies that the reccurences reset will be applied to TestA only.
Would it be possible to extend the ResetReccurencesTest command so that it accepts something like [Current Test Name] as parameter - similar to Execute by that accepts Test Performer ?
If I could type ResetReccurencesTest PerformingTestName and HM would understand that PerformingTestName was actually TestA or TestB or TestC or whatever the Test name would be then my "shared" Alert profile would remain generic and still be usable on a lot of servers.

Phew - hope this makes sense ;)

Thanks !

Kasper :O)

PS - ResetRecurrencesAll is not an option in this case as there are more tests than this one in the folder hierachy.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I think you may use "%TestName%" macro variable in the script

Regards
Alex
Kapz
Posts: 216
Joined: Mon Dec 06, 2004 2:33 pm
Location: Denmark

Post by Kapz »

Alex,

> I think you may use "%TestName%" macro variable in the script
Yep, that seems to do the trick - thank you very much !

Kasper :O)
Post Reply