HM 7.07 run as service on W2003 SP2
We use an Action Profile with the Action "Execute HMScript"
The script contains the line:
SetTestParam %Testname% CommentLine4 Fehler am %dd%.%mm%.%yy% um %hh%:%nn%
This script worked well, but now (after upgrade to 7.06 / 7.07 ) we realize, that it does not work any more with the existing tests (=nothing is written to the comment line).
There are no errors in the system log.
However when you create a new test and assign the action profile to this test, it works.
Is it possible that the format of the test list was changed when upgrading to HM 7.x so that HMScript cannot write to the comment lines?
Regards
Thomas
HMScript does not write to Comment Line after upgrade to 7.x
-
- Posts: 166
- Joined: Sat Apr 15, 2006 2:14 pm
- Location: Germany, Bavaria
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Re: HMScript does not write to Comment Line after upgrade to
Sorry, we cannot reproduce the problem. Please, verify start up settings for this particular "Execute HMScript" action.thomasschmeidl wrote:This script worked well, but now (after upgrade to 7.06 / 7.07 ) we realize, that it does not work any more with the existing tests (=nothing is written to the comment line).
Any info in "System Log"? If "Record info about successful actions" and "Record info about failed actions" options are enabled in "Options" -> "System Log" tab, HostMonitor will write a record into "System Log" about every performed action, whatever successful or failed. Probably, you have enabled "Time Restriction" option ofr this action?
Do not think the problem is related to upgrade. We changed nothing in this part.thomasschmeidl wrote:Is it possible that the format of the test list was changed when upgrading to HM 7.x so that HMScript cannot write to the comment lines?
Regards,
Max
-
- Posts: 166
- Joined: Sat Apr 15, 2006 2:14 pm
- Location: Germany, Bavaria
Thanks for your prompt reply, Max
In our system the problem is reproducable.
There are two tests:
Test A is "old" (set up some months ago)
Test B is newly created
Both tests are assigned to the same Action Profile containing one single action (=run HMS script)
In both tests Quick log says "Execute HMS script" and "Done"
But only in Test B the CommentLine is changed
I tried several "old" tests and it's all the same with them. The script only works with the new ones.
??
Thomas
In our system the problem is reproducable.
There are two tests:
Test A is "old" (set up some months ago)
Test B is newly created
Both tests are assigned to the same Action Profile containing one single action (=run HMS script)
In both tests Quick log says "Execute HMS script" and "Done"
But only in Test B the CommentLine is changed
I tried several "old" tests and it's all the same with them. The script only works with the new ones.
??
Thomas
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
-
- Posts: 166
- Joined: Sat Apr 15, 2006 2:14 pm
- Location: Germany, Bavaria
Your script does not work because test name contains space and you use %TestName% variable without quotation marks.
Simply add "": SetTestParam "%Testname%" ...
Old version of HostMonitor should not accept your script either, but it works somehow...
Regards
Alex
Simply add "": SetTestParam "%Testname%" ...
Old version of HostMonitor should not accept your script either, but it works somehow...
Regards
Alex
Last edited by KS-Soft on Thu Jan 24, 2008 9:32 am, edited 1 time in total.
-
- Posts: 166
- Joined: Sat Apr 15, 2006 2:14 pm
- Location: Germany, Bavaria