View previous topic :: View next topic |
Author |
Message |
thomasschmeidl
Joined: 15 Apr 2006 Posts: 166 Location: Germany, Bavaria
|
Posted: Tue Jan 22, 2008 3:17 am Post subject: HMScript does not write to Comment Line after upgrade to 7.x |
|
|
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 |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Tue Jan 22, 2008 3:55 am Post subject: Re: HMScript does not write to Comment Line after upgrade to |
|
|
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). |
Sorry, we cannot reproduce the problem. Please, verify start up settings for this particular "Execute HMScript" action.
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?
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? | Do not think the problem is related to upgrade. We changed nothing in this part.
Regards,
Max |
|
Back to top |
|
|
thomasschmeidl
Joined: 15 Apr 2006 Posts: 166 Location: Germany, Bavaria
|
Posted: Tue Jan 22, 2008 11:07 am Post subject: |
|
|
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 |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Tue Jan 22, 2008 11:14 am Post subject: |
|
|
Hm. Strange. Could you export one of the "old" tests, that does not work properly, and send it to support@ks-soft.net? What version of HostMonitor did you utilize before upgrade?
Regards,
Max |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12806 Location: USA
|
Posted: Tue Jan 22, 2008 11:50 am Post subject: |
|
|
Please provide your script as well.
Do you use commands like SetCurrentFolder or IncludeSubfolders?
Regards
Alex |
|
Back to top |
|
|
thomasschmeidl
Joined: 15 Apr 2006 Posts: 166 Location: Germany, Bavaria
|
Posted: Tue Jan 22, 2008 4:03 pm Post subject: |
|
|
I will send the file export.txt with an 'old' test and
the file test.hms with the script.
Your questions:
- I don't use SetCurrentFolder or IncludeSubfolders
- we upgraded from 6.84
Regards
Thomas |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12806 Location: USA
|
Posted: Tue Jan 22, 2008 5:56 pm Post subject: |
|
|
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
Last edited by KS-Soft on Thu Jan 24, 2008 9:32 am; edited 1 time in total |
|
Back to top |
|
|
thomasschmeidl
Joined: 15 Apr 2006 Posts: 166 Location: Germany, Bavaria
|
Posted: Wed Jan 23, 2008 3:55 pm Post subject: |
|
|
Thanks - now it works as it did before
Thomas |
|
Back to top |
|
|
|