Hi,
I Wonder how to use the right macros to have a test dependency for another test like this:
All of our server HM monitoring folders contain a test called: "%host%: Connection"
I want to create tests depending on that first test and be able to copy it so it will work automatically in every test folder
can I use that to build something that would ressemble that:
"%host%: Connection": %SimpleStatus% is "OK"
If my server is named example DatabaseServer1
That would translate to: this test depends on a positive result of the test named: "DatabaseServer1: Connection"
I just need a quick guidance on that.
Thanks
Is it possibloe to use Macro in "this test depends on:
-
- Posts: 229
- Joined: Tue Jun 20, 2006 1:20 pm
- Location: Montreal, Quebec
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
You may use "This test depends on Expression" option, located on Test properties dialog.
Configuration steps:
1. Create folder-variable, e.g. %fvar_host% and provide appropriate host/IP of target system.
2. Create Ping test with name like: PING - %fvar_host%
3. For all test items inside folder set "This test depends on Expression" option and provide "Perform test if" expression:
'%::PING - %fvar_host%::SimpleStatus%' == 'UP'
With these settings you may copy folder an change %fvar_host% variable for that folder.
All other test items may also be configured using %fvar_host% as target host.
Configuration steps:
1. Create folder-variable, e.g. %fvar_host% and provide appropriate host/IP of target system.
2. Create Ping test with name like: PING - %fvar_host%
3. For all test items inside folder set "This test depends on Expression" option and provide "Perform test if" expression:
'%::PING - %fvar_host%::SimpleStatus%' == 'UP'
With these settings you may copy folder an change %fvar_host% variable for that folder.
All other test items may also be configured using %fvar_host% as target host.
-
- Posts: 229
- Joined: Tue Jun 20, 2006 1:20 pm
- Location: Montreal, Quebec