Ranorex Test cases move too fast

Ranorex Spy, Recorder, and Studio.
jonesj
Posts: 7
Joined: Wed Sep 25, 2013 4:02 pm

Ranorex Test cases move too fast

Post by jonesj » Tue Jan 14, 2014 9:00 pm

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.

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Ranorex Test cases move too fast

Post by krstcs » Wed Jan 15, 2014 2:56 pm

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.
Shortcuts usually aren't...

jonesj
Posts: 7
Joined: Wed Sep 25, 2013 4:02 pm

Re: Ranorex Test cases move too fast

Post by jonesj » Wed Jan 15, 2014 5:53 pm

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.
Attachments
DropDownSelection.cs
(2.96 KiB) Downloaded 127 times
DrillDown.cs
(22.26 KiB) Downloaded 128 times
application.rxsnp
web app
(365.83 KiB) Downloaded 132 times

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

Re: Ranorex Test cases move too fast

Post by Support Team » Tue Feb 11, 2014 4:06 pm

Hi,

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

Regards,
Markus
.
Image