View previous topic :: View next topic |
Author |
Message |
nieaicai
Joined: 03 Aug 2012 Posts: 73
|
Posted: Wed Aug 31, 2016 1:43 pm Post subject: how to set test c depend on test a and test b? |
|
|
hello,if i setup test A test B and then setup TEST C
IF test A and test B is bad
i want to test C reply bad . how to set?
it may simple,but please still tell me how to ? tks so much |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12798 Location: USA
|
|
Back to top |
|
|
nieaicai
Joined: 03 Aug 2012 Posts: 73
|
Posted: Wed Aug 31, 2016 2:11 pm Post subject: |
|
|
i write expression:
('%::testA::status%'==bad ) and ('%::testB::status%'==bad )
or
('%::testA::status%'==bad and '%::testB::status%'==bad )
not work
tks |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12798 Location: USA
|
Posted: Wed Aug 31, 2016 2:25 pm Post subject: |
|
|
1) you missed quotation marks ('%::testA::status%'=='Bad')...
2) you replaced 'OR' with 'AND'
Regards
Alex |
|
Back to top |
|
|
nieaicai
Joined: 03 Aug 2012 Posts: 73
|
Posted: Wed Aug 31, 2016 2:30 pm Post subject: |
|
|
KS-Soft wrote: | http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#Master
Set the following options for testC
This test depends on expression
Perform test if ('%::TestA::SimpleStatus%'=='UP') or ('%::TestB::SimpleStatus%'=='UP')
OtherwiseStatus: Bad
Regards
Alex |
just tried!
work fine! thank you very much! |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12798 Location: USA
|
Posted: Wed Aug 31, 2016 3:01 pm Post subject: |
|
|
You are welcome
Regards
Alex |
|
Back to top |
|
|
|