Object SearchTimeout : General Questions

Object SearchTimeout

Ask general questions here.

Object SearchTimeout

Postby jainaakash » Wed Nov 03, 2010 11:17 am

Hi Team,

I am facing a typical problem with search timeout. I have an application form (root folder in repository). I look for the form if that exsists and proceed. It used to wait for the default time or searchtimeout (if specified) and then proceed further. But lately, at few ocassions it seems to wait for the form indefinitely.

I am not able to figure out what could be the reason for this inconsistency. Please help.

Repository items:
ItemName - Application_Error (This is the application root folder)
Path - /form[@title='Application Error']

Code
==============
Recording1.repo.Application_Error.SearchTimeout = msSearchTimeout
If Recording1.repo.Application_Error.SelfInfo.Exists Then
==============

The test run gets stuck and the tool seems to be waiting indefinitely for the 'Application_Error' form.

Thanks and Regards,
Aakash
jainaakash
 
Posts: 48
Joined: Thu Jun 10, 2010 1:06 pm

Re: Object SearchTimeout

Postby Support Team » Wed Nov 03, 2010 4:03 pm

hi,

we've tried to reproduce the problem but we weren't able to do so.
So can you please send us a sample application, or rather the source code of the application where the problem occurs to support@ranorex.com.
This will make it much easier to solve the issue.

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

Re: Object SearchTimeout

Postby sdaly » Wed Nov 03, 2010 4:18 pm

I think I have experienced this same issue before too. We use PrimoPDF when printing and we use to use tryfindsingle to check for the PrimoPDF form which pops up. Occasionally Ranorex would simply hang at the line before the tryfindsingle. We eventually just used a try catch to determine the forms attendance and put a static delay beforehand which seems to work ok. We have no idea why it does so and could not pinpoint the issue.....
User avatar
sdaly
 
Posts: 213
Joined: Mon May 10, 2010 12:04 pm
Location: Dundee, Scotland

Re: Object SearchTimeout

Postby artur_gadomski » Thu Nov 04, 2010 9:41 am

I think I had the same issue:
ranorex-hanging-on-looking-for-non-existent-forms-t1551.html

It seemed to resolve itself for me. Last post I've made says:
I have changed a couple of things since hanging:
Moved to VisualStudio 2008.
Upgraded to Ranorex 2.3.3
Changed target .Net Framework from 1.0 to 3.5

I haven's seen hanging problems since.
User avatar
artur_gadomski
 
Posts: 125
Joined: Mon Jul 19, 2010 7:55 am
Location: Copenhagen, Denmark

Re: Object SearchTimeout

Postby sdaly » Thu Nov 04, 2010 5:12 pm

Thanks artur, we have changed to 3.5 and have not seen the issue since:) Hopefully I have not spoken too soon!
User avatar
sdaly
 
Posts: 213
Joined: Mon May 10, 2010 12:04 pm
Location: Dundee, Scotland


Return to General Questions

Who is online

Users browsing this forum: No registered users and 1 guest