Answered question

Can We Run a Test/Action at a Specific Time?

Hi

Can we run a test at a specific time? We have an odd test use case where we want to do one of two options:

EITHER
1. Don't start the entire test until a specific time (ie 05:00am)
OR
2. Start a test earlier, but then wait mid test (kind of like a rendevous point) to run specific actions at a specific time (ie 05:00am).

We are running NeoLoad v7.1.0 on a local machine.

Thanks!

Gordon G.
Gordon G.

Gordon G.

Level
0
49 / 100
points
Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

Yes, I was answering this...
1. Don't start the entire test until a specific time (ie 05:00am)
For the other use case, I would probably just use a piece of Javascript and a while loop mid test. the Javascript checks the time, is it 5am, no, do nothing, delay 1, 5 or 10 seconds (depending on how exact you want to be), loop, run the Javascript again. If it is 5am, set a flag to false, drop out of the while loop and off you go

Did you find this useful ?

No (0)

Yes (0)

0% of users found this answer useful

Other answers

Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

Yes, the scenario advanced properties has a scheduler but my suggestion is just have Windows Task Scheduler kick off the Neoload command line

Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

https://www.neotys.com/documents/doc/neoload/latest/en/ht...

Left of the screenshot, under the scenario box

Gordon G.
Gordon G.

Gordon G.

Level
0
49 / 100
points

To expand upon our use case Neil, there is a specific part of the process that we want to kick off at a specific time. The ideal scenario would be this:

1. Login 50 Virtual Users (so that we secure authenticated sessions and can gain access to a specific function that we want to test)
2. Wait until a specific time (ie 05:00am)
3. All 50 Virtual Users hit a specific function at that time

I know how to set a rendezvous point and I know how to add in a delay between actions. But ideally I want to pre-authenticate my virtual users and then run a specific action at a specific time. If I schedule the whole scenario then I can't guarantee that the 50 VUs will all hit the specific function at the exactly required time.

Does that requirement make sense?