Hello All-
I'm a brand new user and was wondering what was the best way to execute an external test program, then check for specific text within the logfile that the external program creates. I see that I can execute a program from within HostMonitor, and that I can also check a text file for strings, but how can I do both as a single test?
Thanks in advance!
Run external program then check resulting log file as a sing
I see 3 solutions:
1) create another external program to check log file (created by 1st external program) and return ErrorLevel code to HostMonitor.
2) create some script (VBScript, or JScript, etc) that will execute external program and check its log file. Use "Script" test to execute that script
3) create 2 tests. 1st test will execute external program and start simple HMScript with single command "RefreshTest name_of_test_#2" (use "Execute HMScript" action), this command will perform 2nd test. 2nd test that will check log, should have longer time interval than 1st test (to avoid unnecessary execution).
Regards
Alex
1) create another external program to check log file (created by 1st external program) and return ErrorLevel code to HostMonitor.
2) create some script (VBScript, or JScript, etc) that will execute external program and check its log file. Use "Script" test to execute that script
3) create 2 tests. 1st test will execute external program and start simple HMScript with single command "RefreshTest name_of_test_#2" (use "Execute HMScript" action), this command will perform 2nd test. 2nd test that will check log, should have longer time interval than 1st test (to avoid unnecessary execution).
Regards
Alex