Ranorex prevents application from loading : Bug Reports

Ranorex prevents application from loading

Bug reports and feature requests.

Ranorex prevents application from loading

Postby taralex » Fri Dec 05, 2008 7:38 pm

I'm running a process and waiting for the application to show up.
I use a User32 API call to find the window
Code: Select all
FindWindow(String lpClassName, String lpWindowName)
But this function returns 1 immediately after the splash screen is displayed , that's why I then use Ranorex function
Code: Select all
ElementRepository.CreateAdapterForPath<Element>(Path, timeout)

to wait until the application is fully loaded, passing there the path of an element that is displayed in the application only after it is fully loaded (ribbon control), and specifying a 60 seconds timeout.

4 times out of 5 this works fine, but one time the application just stops to load and the splash screen is displayed forever until you kill the process.

I'm sure this is caused by Ranorex, because I just tried substituting the Ranorex code by simple Thread.Sleep (10000), and it worked 100 times out of 100 tries.
taralex
 
Posts: 53
Joined: Tue Nov 04, 2008 4:50 pm
Location: Michigan

Postby Support Team » Tue Dec 09, 2008 4:00 pm

What kind of application does this happen with (Win32, WinForms, Wpf, ...)?
What kind of controls does the application use (only system provided, owner-drawn, 3rd party, ...)?

Regards,
Alex
Ranorex Support Team
User avatar
Support Team
Site Admin
 
Posts: 4289
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Postby taralex » Tue Dec 16, 2008 7:13 pm

I'm sorry, I don't know how to tell winforms application from a win32. The only thing I know that the application is written in C#, and third-party and owner-drawn controls are definetely used. it also uses Microsoft office 2007 style user interface (ribbons).
taralex
 
Posts: 53
Joined: Tue Nov 04, 2008 4:50 pm
Location: Michigan

Postby Support Team » Wed Dec 17, 2008 12:10 pm

Please, inspect your application using Ranorex Spy. Click on the top element corresponding to your application (Form role) and change to the "Detail" view. In the property grid scroll down to the "General" section and post what is written under "FlavorName".

Thx!

Regards,
Alex
Ranorex Support Team
User avatar
Support Team
Site Admin
 
Posts: 4289
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests