View previous topic :: View next topic |
Author |
Message |
menno
Joined: 21 May 2010 Posts: 157
|
Posted: Sun Oct 15, 2023 2:14 am Post subject: best way to run tests in a row / specific order |
|
|
Hello
I have a question how to run 5 tests in a row every 5 min.
For example i have 5 tests also names 1 to 5.
I want to first run 1 then 2 then 3 then 4 then 5 on every 5 min.
Important to run there in this order.
also important here is to don't start the 2nd job before the 1st one is finisched ..and so on ... so don't start the 3rd before the 2nd has finisched etc etc
Can you help me to define such test method ?
Many thanks in advance
Menno |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12807 Location: USA
|
Posted: Sun Oct 15, 2023 1:16 pm Post subject: |
|
|
Test5 should be dependant on test4
Test4 should be dependant on test3
Test3 should be dependant on test2
Test2 should be dependant on test1
Regards
Alex |
|
Back to top |
|
|
menno
Joined: 21 May 2010 Posts: 157
|
Posted: Mon Oct 16, 2023 2:17 am Post subject: |
|
|
Thx Alex
I found the item in the test but all settings are grayed out.
Under "dependensies of this test" and "conditions" on the right side when i edit the 2nd test in this case
Am i doing something wrong here. ???
I am the admin opening this test.
Many thanks in advance
Menno[/url] |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12807 Location: USA
|
|
Back to top |
|
|
menno
Joined: 21 May 2010 Posts: 157
|
Posted: Mon Oct 16, 2023 4:01 am Post subject: |
|
|
ok thx Alex
My conclusion is that what i want is not possible.
Is there a way to schedule test1 to test5 after each other.
So use the scheduler for this ?
So for example.
test1 starts at 10:00
after test1 is done start test2
after test2 is done start test3 .. etc etc
so in this case there is no "time" schedule for test2 to test5.
many thanks for the help so far !
Menno |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12807 Location: USA
|
Posted: Mon Oct 16, 2023 4:11 am Post subject: |
|
|
Quote: | My conclusion is that what i want is not possible. |
Its possible and easy. Why you do not want to setup Master tests?
Regards
Alex |
|
Back to top |
|
|
menno
Joined: 21 May 2010 Posts: 157
|
Posted: Mon Oct 16, 2023 4:26 am Post subject: |
|
|
Quote: | Why you do not want to setup Master tests? |
Because my test doesn't have the correct status as you mentioned in the help.
Quote: | dependent test based on the status of the Master test:
- "Alive";
- "Alive" or "Unknown";
- "Dead";
- "Dead" or "Unknown". |
I prefer the schedule method , if thats possible.
..else i will search for an other solution.
thx Alex
Menno |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12807 Location: USA
|
Posted: Mon Oct 16, 2023 4:42 am Post subject: |
|
|
2nd paragraph in the manual
This test depends on expression
Instead of making test to be dependent on a list of Master tests you can define a condition to perform the test using logical expression.
This mode is more complicated than a standard list of Master tests but it is very flexible. Just several simple examples: Code: |
with expression ('%::Ping Router::SimpleStatus%'=="UP") and ('%::Ping Router::Reply%'<'800 ms') HostMonitor performs a test when the test named "Ping Router" has a good status and the reply time for the router is below 800 ms;
use expression like ('%::TestA::SimpleStatus%'=='UP') or ('%::TestB::SimpleStatus%'=='UP') to perform a test when either TestA or TestB has "good" status. |
So you may use expression that will suit your needs, e.g.
('%::Test1::Status%'<>'Unknown')
or
('%::Test1::Reply%'<>'')
...
Quote: | I prefer the schedule method , if thats possible |
You may try "Irregular schedule by expression" option and expressions like
test1: * * *:00,*:05,*:10,*:15,*:20,*:25,*:30,*:35,*:40,*:45,*:50,*:55
test2: * * *:01,*:06,*:11,*:16,*:21,*:26,*:31,*:36,*:41,*:46,*:51,*:56
...
(if 1 min is enough for each test to be checked)
Regards
Alex |
|
Back to top |
|
|
menno
Joined: 21 May 2010 Posts: 157
|
Posted: Mon Oct 16, 2023 4:49 am Post subject: |
|
|
Wonderfull ! thx for the quick reply
Menno |
|
Back to top |
|
|
|