Running tests at a specific time

Asked by Fox88

I created a testing framework with Java so that when I start the program I can choose which test(s) to run that i created with the sikuli IDE.
This is to create multiple testruns that can be run after each other.

Now I want to able to let these testruns run at a specific time (not run the test after +1hour).
Does anyone know with what I could realize this?

Eg. I start the program, then I select the tests I want to run and then I want to give time when the first test is supposed to start.

Sorry in advance if this may not be the right place to ask but I was hoping someone already had some experience in this :)

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Depends on the method you are running the scripts.

Normally, one would solve the scheduling in the framework (observing timer events).

If this is not suitable, you can hand over some parameter to the script and the script then waits for a specific time or duration, before running the workflow (use the respective Python modules time, date, date time, ...).

But waiting 1h could simply be:
wait(3600)
at the beginning of the script (internally solved using Java Thread.sleep())

Can you help with this problem?

Provide an answer of your own, or ask Fox88 for more information if necessary.

To post a message you must log in.