Hi,
Does anyone know whether it is possible to use HMS to loop through tests in all subfolders?
I want to write the following logic:
If Test name starts with {ThisTestNameStart} then set Interval = {NewInterval}
any help would be appreciated.
HMS to loop through all tests in currently active HML
We know everything
No, its not possible to perform such operation using script. Script allows you to change test interval for specific type of test (e.g. Ping tests) or tests with specific status (e.g. tests with Bad status) or test with specific name.
Please check the manual or visit our web site for details:
http://www.ks-soft.net/hostmon.eng/mfra ... #actScript
However you may perform such operation using GUI and Views: just setup View using [Select items using expression 'ThisTestNameStart' in '%TestName%'] option, mark all selected items, click Edit button and set test interval.
Truth to say its not exactly what you need. This expression will select items with 'ThisTestNameStart' in the name (regardless of substring position) but I think its easy to sort selected items by name and remove selection from several items if necessary.
Regards
Alex

No, its not possible to perform such operation using script. Script allows you to change test interval for specific type of test (e.g. Ping tests) or tests with specific status (e.g. tests with Bad status) or test with specific name.
Please check the manual or visit our web site for details:
http://www.ks-soft.net/hostmon.eng/mfra ... #actScript
However you may perform such operation using GUI and Views: just setup View using [Select items using expression 'ThisTestNameStart' in '%TestName%'] option, mark all selected items, click Edit button and set test interval.
Truth to say its not exactly what you need. This expression will select items with 'ThisTestNameStart' in the name (regardless of substring position) but I think its easy to sort selected items by name and remove selection from several items if necessary.
Regards
Alex