Page 1 of 1

Ranorex Test cases move too fast

Posted: Tue Jan 14, 2014 9:00 pm
by jonesj
When I run one test case using code modules, it executes fine. When I decided to run the test case several times using the test driven test in the data source option, it moves too fast to the next test case before the previous test case completed. Do anyone have any solutions beside trying to use sleep method and waitfordocument() loaded method.

Re: Ranorex Test cases move too fast

Posted: Wed Jan 15, 2014 2:56 pm
by krstcs
First, could you post your solution and a snapshot of your system-under-test (SUT)? Without seeing your solution and application, it will be hard for us to know exactly what the issue is.

See the following page for information about making snapshots: http://www.ranorex.com/support/user-gui ... files.html


Second, you need to understand that Ranorex will go as fast as it possibly can to get through the test. This is one of the reasons we use automation, it speeds up the execution of tests. You must realize that as a human, we go much slower, so we often don't realize that we are waiting for a page to load, while a computer will just push right ahead. You will need to account for this by adding waits or delays in your tests as necessary to make sure Ranorex does not "over-run" your SUT.

Re: Ranorex Test cases move too fast

Posted: Wed Jan 15, 2014 5:53 pm
by jonesj
I started to add some sleeps in the code. When I run it once, it works fine. It fails to find objects when I use the test driven option and want to run the test multiple times. I think the ranorex is moving to fast for it to find the objects when the page is loading. I have waitfordocument to load in there but that seems not to work. So in rxtst AUT, it moves to the next .cs file before the page has completed. I will add some waits to see if that works.

Re: Ranorex Test cases move too fast

Posted: Tue Feb 11, 2014 4:06 pm
by Support Team
Hi,

Were you able to solve the issue by adding the some waits?

Regards,
Markus