|
View previous topic :: View next topic |
Author |
Message |
menno
Joined: 21 May 2010 Posts: 157
|
Posted: Fri Nov 30, 2018 12:48 am Post subject: question status processing |
|
|
Hi guys
small question here
i have a check that checks if the word "true" is avail able on this test website.
when its not it gives me a "Bad contents" , so far so good
when i try to use another replay it fails
can you please tell me what am i doing wrong here ?
i use :
use "Normal" status if ("%Reply%"=="Bad contents")
see screenshot
[img=//www84.zippyshare.com/scaled/vKgAa9Kn/file.html][/img]
but this doen't look to work...
i just want the test to be "Normal" if the website cannot find the word : true
many thanks in advance
menno |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Fri Nov 30, 2018 2:23 am Post subject: |
|
|
"%Reply%"=="Bad contents"?
1) %Reply% variable is not set at this stage, %SuggestedReply% should be used
2) Why do you compare Reply to Status?? "Bad content" is test status, not reply
Expression may look like "%SuggestedStatus%"=="Bad contents"
Quote from the manual
Quote: | IMPORTANT note: HostMonitor checks logical expressions after test check is done and "reverse alert" option is processed.
I.e.
- HostMonitor performs the test;
- processes "Reverse alert" option;
- sets "suggested" macro variables (%SuggestedStatus%, %SuggestedSimpleStatus%, %SuggestedReply%, %SuggestedRecurrences% and %FailureIteration%) without touching regular counters (%Status%, %Reply%, %Recurrences%, etc);
- then HostMonitor checks "Warning" and "Normal" expressions, processes "Tune up Reply" option and finally modifies current test status and statistisc counters (Status, Reply, Alive%, Passed tests, Failed tests, etc) |
Regards
Alex |
|
Back to top |
|
|
menno
Joined: 21 May 2010 Posts: 157
|
Posted: Fri Nov 30, 2018 2:41 am Post subject: |
|
|
YESS!!! this works
many thanks Alex ! |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Fri Nov 30, 2018 2:47 am Post subject: |
|
|
You are welcome
Regards
Alex |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|