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

Ask general questions here.
Silvia
Posts: 3
Joined: Thu May 09, 2019 9:32 am

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

Post by Silvia » Thu May 09, 2019 9:43 am

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!

User avatar
N612
Posts: 103
Joined: Mon Jul 11, 2016 4:01 pm

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

Post by N612 » Thu May 09, 2019 8:57 pm

You could use a static delay of 24+ hours but may not be the best approach.
delayimage.png
delayimage.png (2.94 KiB) Viewed 126 times
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!

Silvia
Posts: 3
Joined: Thu May 09, 2019 9:32 am

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

Post by Silvia » Fri May 10, 2019 10:04 am

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!

dhale
Posts: 36
Joined: Thu Feb 27, 2014 7:33 pm

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

Post by dhale » Fri May 10, 2019 8:25 pm

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11963
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Fri May 10, 2019 8:50 pm

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
.
Image

Silvia
Posts: 3
Joined: Thu May 09, 2019 9:32 am

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

Post by Silvia » Mon May 20, 2019 9:36 am

Thank you for your help! We here with the team will study all the possibilities. Greetings!