Hello,
I am currently working on a semi-automated import process, during which the HML generating script will check a specific folder for text files (exported from AHM) and then import those tests by integrating it into the HMS file.
During this process, it would be good to be able to associate test dependencies automatically, instead of having to manually define them. Has anyone done this before? Is it possible?
v
Test Dependencies
Not sure I understand the problem. Import file allows you to specify list of Master test items.
E.g.
=====================
Method = TCP
Title = telnet server
; -- Common optional parameters --
Schedule = 7 Days, 24 Hours
Interval = 120
Alerts = Message, Sound
ReverseAlert = Yes
UnknownIsBad = No
UseCommonLog = Yes
PrivateLog =
PrivlogMode = full
CommLogMode = default
DependsOn = list
MasterTest-Alive = ping router
SyncCounters = Yes
SyncAlerts = No
; -- Specific parameters required for TCP test --
Host = 10.10.5.10
Port = 23
=====================
Regards
Alex
E.g.
=====================
Method = TCP
Title = telnet server
; -- Common optional parameters --
Schedule = 7 Days, 24 Hours
Interval = 120
Alerts = Message, Sound
ReverseAlert = Yes
UnknownIsBad = No
UseCommonLog = Yes
PrivateLog =
PrivlogMode = full
CommLogMode = default
DependsOn = list
MasterTest-Alive = ping router
SyncCounters = Yes
SyncAlerts = No
; -- Specific parameters required for TCP test --
Host = 10.10.5.10
Port = 23
=====================
Regards
Alex
[quote]Not sure I understand the problem. Import file allows you to specify list of Master test items. [/quote]
What I meant was since I have defined a set of template tests in a subfolder, once you copy those tests to another folder (this includes the master test being copied) for instance, the dependencies are still set to the original master test defined (in the folder from which I copy it).
v
What I meant was since I have defined a set of template tests in a subfolder, once you copy those tests to another folder (this includes the master test being copied) for instance, the dependencies are still set to the original master test defined (in the folder from which I copy it).
v
Sure, HostMonitor does not change master test from one item to another. This would not be logical.
If you need such "dynamic" master-dependant test relations, you need to use "Test depends on expression" option.
For example:
1) you may create master test and use %folder%-master pattern for name if this master test. This way HostMonitor will change name of the test when you copy or move it to another folder.
2) create dependant test item using "Test depends on expression" and expression like '%::%folder%-master::simplestatus%'=='UP'
Another solution - use user-defined folder-level variables for such expressions
Regards
Alex
If you need such "dynamic" master-dependant test relations, you need to use "Test depends on expression" option.
For example:
1) you may create master test and use %folder%-master pattern for name if this master test. This way HostMonitor will change name of the test when you copy or move it to another folder.
2) create dependant test item using "Test depends on expression" and expression like '%::%folder%-master::simplestatus%'=='UP'
Another solution - use user-defined folder-level variables for such expressions
Regards
Alex