Specifying Master Test in text import
Done. Update available at http://www.ks-soft.net/download/hm319c.zip
There are 6 new parameters those you can use in an import file:
SyncCounters = Yes|No
SyncAlerts = Yes|No
MasterTest-Alive = <Test name>
MasterTest-AliveOrUnknown = <Test name>
MasterTest-DeadOrUnknown = <Test name>
MasterTest-Dead = <Test name>
Example:
Method = Ping
Title = ping yahoo
Host = http://www.yahoo.com
Timeout = 3000
Retries = 4
DisplayMode = Received
MaxLostRatio = 90
MasterTest-DeadOrUnknown = ping altavista
MasterTest-Dead = ping google
SyncCounters = Yes
SyncAlerts = No
Regards
Alex
There are 6 new parameters those you can use in an import file:
SyncCounters = Yes|No
SyncAlerts = Yes|No
MasterTest-Alive = <Test name>
MasterTest-AliveOrUnknown = <Test name>
MasterTest-DeadOrUnknown = <Test name>
MasterTest-Dead = <Test name>
Example:
Method = Ping
Title = ping yahoo
Host = http://www.yahoo.com
Timeout = 3000
Retries = 4
DisplayMode = Received
MaxLostRatio = 90
MasterTest-DeadOrUnknown = ping altavista
MasterTest-Dead = ping google
SyncCounters = Yes
SyncAlerts = No
Regards
Alex
Excellent, thanks Alex.
Along this line, is it possible to tell the import text that it should be updating existing tests versus trying to create new ones? i.e. I have a couple of thousand tests configured and I want to set up just the master options on about 1800 of them how would I specify that?
Additionally is it possible to delete tests from the import file or through scripts?
thanks, joe
Along this line, is it possible to tell the import text that it should be updating existing tests versus trying to create new ones? i.e. I have a couple of thousand tests configured and I want to set up just the master options on about 1800 of them how would I specify that?
Additionally is it possible to delete tests from the import file or through scripts?
thanks, joe
You are welcome.
Unfortunately using script you cannot update or delete existing tests. However if you have all necessary tests in your import file, you can create new HML file, import tests, and save the file. E.g.
NewTestList
AppendTestList c:list1.hml
ImportFromFile c:import1.txt SkipDuplicates WriteLog
SaveTestList c:list2.hml
Probably it can be helpful in your case
Regards
Alex
Unfortunately using script you cannot update or delete existing tests. However if you have all necessary tests in your import file, you can create new HML file, import tests, and save the file. E.g.
NewTestList
AppendTestList c:list1.hml
ImportFromFile c:import1.txt SkipDuplicates WriteLog
SaveTestList c:list2.hml
Probably it can be helpful in your case
Regards
Alex
So it sounds like for now if I want to automate the updating of the HML files I will need to maintain a separate database with all of the tests that need to be performed, write a script that will generate a text file for that when it changes and place it somewhere where it will trigger an event to cause a script to import the file to run. Unfortunately it means I can't make any changes to the HML within the GUI as there would be no way to maintain that info.
Would that be a correct summary?
thanks, joe
Would that be a correct summary?
thanks, joe
We do not changed import utility yet, but now HM script supports new command "DeleteTest <test name>". You will be able to remove old tests before importing new version of tests. There are update http://www.ks-soft.net/download/hm319e.zip
Regards
Alex
Regards
Alex