Page 1 of 1

How to automate a test case with a delay of one day

Posted: Thu May 09, 2019 9:43 am
by Silvia
Hi, good morning,
please, I need your help.
We have a test case whose design has a delay of at least one day. Does Ranorex tool some feature to be able to automate this kind of test?

Thank you so much!

Re: How to automate a test case with a delay of one day

Posted: Thu May 09, 2019 8:57 pm
by N612
You could use a static delay of 24+ hours but may not be the best approach.
delayimage.png
Perhaps you can break the test into two sections, one to the initial part, then another to run once 24 hours has passed. Are you able to provide more information on this test case? It is hard to recommend anything specific without more details.

Hope this helps!

Re: How to automate a test case with a delay of one day

Posted: Fri May 10, 2019 10:04 am
by Silvia
Hi N612,
thank you for your answer!
Yes, more information, sure.
It is a test of an application, and the project works with continuous integration, and the tests run in a virtual machine.
Waiting 24 h is not a good approach, and divide the test in two parts... I don't know if fits ok with the continuous integration...
Do you know any other feature of Ranorex to manage the delays of a test case?


Thanks!

Re: How to automate a test case with a delay of one day

Posted: Fri May 10, 2019 8:25 pm
by dhale
Just a thought:
My company also has some tests for time sensitive things that normally (like you) would need to wait X amount of minutes/hour(s) but instead we decided that we would instead have the test reach into the database with SQL and manipulate the required time values to "speed things along". so now, our tests take just a couple minutes...not hours/days.

Just something you might want to consider exploring if its possible.

Re: How to automate a test case with a delay of one day

Posted: Fri May 10, 2019 8:50 pm
by Support Team
As dhale has said, in an ideal world, being able to bypass this time delay for your AUT in your testing environment would be the best solution. If it is not possible to bypass it and a static delay is not viable, the next best option is likely to split your test into two parts. You can do timed triggers in most CI tools (example with Jenkins).

I hope this helps!

Cheers,
Ned

Re: How to automate a test case with a delay of one day

Posted: Mon May 20, 2019 9:36 am
by Silvia
Thank you for your help! We here with the team will study all the possibilities. Greetings!