
Is there a way to compare 2 tests by their reply?
Is there a way to compare 2 tests by their reply?
Ive been wondering if you can set up a specific folder variable that can pass the REPLY from a formatted string of a TextLog test, and to use this variable as a string to use in another test. Is this possible, or does it sounds a bit hectic? Or should i look in another type of tests? 

-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Not sure, I understand what do you want..
However, you may access Reply value of different test from action or another test item.
This can be done, by using variable like the following:
%::TESTNAME::Reply%, %::TESTNAME::SimpleStatus%, etc.
These variables can be used with advanced action expressions or with "Use Warning status if", "Use Nornal status if" expressions.
Please check for details at:
http://www.ks-soft.net/hostmon.eng/mfra ... #specmacro
However, you may access Reply value of different test from action or another test item.
This can be done, by using variable like the following:
%::TESTNAME::Reply%, %::TESTNAME::SimpleStatus%, etc.
These variables can be used with advanced action expressions or with "Use Warning status if", "Use Nornal status if" expressions.
Please check for details at:
http://www.ks-soft.net/hostmon.eng/mfra ... #specmacro
Yeah, thats the first part i already had done. However my case is like this:
Im planning to use 2 different TextLog tests, however i need to use the reply from one of my TextLog tests and pass this reply as a variable. Once i have this variable, i want to use it as the string or expression in another TextLog test, because im formatting a specific value from the first one (im capturing the time, specifically). Once i have this time value, i want to capture the string that contains it in this other test. Because the time string is not static, im trying to make this work... Can i use a folder variable? or do i have to set up a Global Variable, and i wonder if this will work somehow?
Im planning to use 2 different TextLog tests, however i need to use the reply from one of my TextLog tests and pass this reply as a variable. Once i have this variable, i want to use it as the string or expression in another TextLog test, because im formatting a specific value from the first one (im capturing the time, specifically). Once i have this time value, i want to capture the string that contains it in this other test. Because the time string is not static, im trying to make this work... Can i use a folder variable? or do i have to set up a Global Variable, and i wonder if this will work somehow?

-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Now I understand.
Yes, this can be done.
Global user defined variables (%udv_...%) can be used in "Look for" expressin of Text log test method.
UDV variable value can be set by HMS Script action.
Scenario may look like the following:
1. Create UDV variable (using menu Profiles -> Global macro variables) with default value. Let's call it %udv_textlogreply%
2. Create HMS script file (e.g. udv_script.hms)
3. udv_script.hms file shoud contain the following HMS command:
SetUserVariable udv_textlogreply %Reply%
4. Create Action profile with Bad "Run HMS action" and point it to udv_script.hms ("Repeat until status changes" option should be checked)
5. Setup TEXTLOG_1 test and assign Action profile to this test item
6. Setup TEXTLOG_2 test and use %udv_textlogreply% variable in "Look for expression" field. (e.g. '%udv_textlogreply%')
Yes, this can be done.
Global user defined variables (%udv_...%) can be used in "Look for" expressin of Text log test method.
UDV variable value can be set by HMS Script action.
Scenario may look like the following:
1. Create UDV variable (using menu Profiles -> Global macro variables) with default value. Let's call it %udv_textlogreply%
2. Create HMS script file (e.g. udv_script.hms)
3. udv_script.hms file shoud contain the following HMS command:
SetUserVariable udv_textlogreply %Reply%
4. Create Action profile with Bad "Run HMS action" and point it to udv_script.hms ("Repeat until status changes" option should be checked)
5. Setup TEXTLOG_1 test and assign Action profile to this test item
6. Setup TEXTLOG_2 test and use %udv_textlogreply% variable in "Look for expression" field. (e.g. '%udv_textlogreply%')
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact: