Editing test by .HMS script

General chat about HostMonitor
Post Reply
Mallhoc

Editing test by .HMS script

Post by Mallhoc »

hi,
i'm a french student and use this soft for a professional training course.

in this work i had to add test by an other soft. so i use .HMS script to import a file which contains all the test.

but, once that they are added, I would like to edit them by a script file.
I saw that we could modify certain parameter :

timeout
username
password
comment
commentlineNN

but is there a method for another ? (like title or all the Test specific properties)

thank you in advance
Nicoulaïe
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Sorry, this is impossible
I think you may edit import file and then reimport new settings

Regards
Alex
Guest

Post by Guest »

ok thanks you

and by the way we can't reimport settings . Because when the soft recognizes a known test title, it doesn't try to read the specifique parameters and goes to the next test

Nikoo
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You may use "ImportMode = Modify" option:
; -- Special commands (added in version 4.40) --

; ImportMode
; this parameter may be set to one of the following values:

; ImportMode = Add
; - in this mode HostMonitor adds new tests to the
; list; prompts for confirmation when the test with specified name already
; exists within the list (in any folder). This mode is used by default as it
; conforms with the behavior of previous versions of HostMonitor (version
; 4.30 or earlier);

; ImportMode = Modify
; - in this mode application adds new test if
; the test with specified name doesn't exist in the folder. Otherwise,
; HostMonitor replaces the test settings by those provided in the imported
; file. Statistical information (dead ratio, alive ratio, etc) is kept intact;

; ImportMode = Replace
; - adds new test if the test with provided name
; doesn't exist in the specified folder. Otherwise, HostMonitor replaces
; the test settings with the settings that are specified in the imported
; file and resets all statistical information (similar to the effect of
; complete removing of an old test and then creating the new one instead.
Regards
Alex
Guest

Post by Guest »

oh ok thank you very much !!
:lol:

see you
mallhoc

Post by mallhoc »

hey me again !! :lol:

just a last question.
Can we delete a test by a script ? or we can just disable it.

thanks
Nikoo
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

There is "DeleteTest <testname>" command. But this is undocumented command, so I cannot guarantee it will be supported in future versions

Regards
Alex
Post Reply