LineageGlue Rule Winforms caused an exception : General Questions

LineageGlue Rule Winforms caused an exception

Ask general questions here.

LineageGlue Rule Winforms caused an exception

Postby vengaishiva » Tue Sep 06, 2011 9:56 am

Hi,
I am using Ranorex 3.0.1. I am trying to automate a WinForms Application through Visual Studio by including Ranorex dlls. Am getting the following error message sometimes.

"LineageGlueRule Winforms caused an exception on Execute method. Method Alert in type ****.MAINFORM from assembly **** version 5.14.1.10 culture - neutral Public KeyToken = null does not have an implementation".

Here **** represents my application name which is being automated.
Am getting the error message when the code tries to find the following rx path "/form[@controlname='MainForm']/element[@controlname='standaloneBarControl']/element/button[@accessiblename='New Trade |']"
Am using Host.Local.TryFindSingle to find this path in my code.

Please note that, this error message does not show up all the times. It appears sometimes and fails my automation.

Can you please explain me about this behaviour :roll:

Regards,
Siva R S
vengaishiva
 
Posts: 62
Joined: Wed Mar 09, 2011 5:40 pm

Re: LineageGlue Rule Winforms caused an exception

Postby vengaishiva » Tue Sep 06, 2011 3:56 pm

Hi Support Team,
Can you please reply soon. :cry:

Regards,
Siva R S
vengaishiva
 
Posts: 62
Joined: Wed Mar 09, 2011 5:40 pm

Re: LineageGlue Rule Winforms caused an exception

Postby Support Team » Tue Sep 06, 2011 4:34 pm

Hi,

Can you please describe the occurence of the problem more detailed?
Are there any other circumstances leading to this error?
Have you found any marginal conditions when getting this exception?

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

Re: LineageGlue Rule Winforms caused an exception

Postby vengaishiva » Tue Sep 06, 2011 6:22 pm

Hi,
Thanks for your reply.

So far the problem has occurred only for the rxpath path that i mentioned above. While this error occurs in a specific run, identification of other UI controls are done successfully by ranorex

Also I cannot point out to any circumstance leading to this exception. When i run the same automation code again after the error, it didn't show any such messages and works fine.

Kindly Help :?

Thanks,
Siva R S
vengaishiva
 
Posts: 62
Joined: Wed Mar 09, 2011 5:40 pm

Re: LineageGlue Rule Winforms caused an exception

Postby Support Team » Wed Sep 07, 2011 12:44 pm

Hi,

Please send us a Ranorex Snapshot file of your application, and please send us some more information about your test machine and your AUT(OS, .NET Version, technologies used, ...).
You can also update to our new Ranorex 3.1 version. You can download the new version from the following link.

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

Re: LineageGlue Rule Winforms caused an exception

Postby vengaishiva » Wed Sep 07, 2011 12:52 pm

Hi Marcus,
Thanks for the reply. The code and the application is in secured location. So i can't post the snapshot. But i can give you the information about the environment.

OS used : Windows 7
.NET Framework : 3.5
Application under test : .NET 3.5 WPF/Winforms mixed
Am accessing my machine via Remote Desktop

Can you please explain me about this behaviour. Why this error message occurs sometimes and what is the maning of the error message?

Thanks,
Siva R S
vengaishiva
 
Posts: 62
Joined: Wed Mar 09, 2011 5:40 pm

Re: LineageGlue Rule Winforms caused an exception

Postby Support Team » Wed Sep 07, 2011 1:33 pm

Hi,

That's a very difficult questions, and we would need your application and the test scripts to reproduce and locate the issue/error.
You can try to update to the new Ranorex 3.1 version, maybe the error won't appear any more.
The link to the new version.

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

Re: LineageGlue Rule Winforms caused an exception

Postby vengaishiva » Wed Sep 07, 2011 2:27 pm

Thanks,
I will try to get 3.1 :D

Siva R S
vengaishiva
 
Posts: 62
Joined: Wed Mar 09, 2011 5:40 pm

Re: LineageGlue Rule Winforms caused an exception

Postby Paul » Wed Mar 21, 2012 4:42 pm

Hi,

I am seeing a very similar issue with Ranorex version 3.2.2. Can you please share any additional information learned since this issue was reported?

I am also seeing this error when testing a WinForms application and using TryFindSingle().

Thanks,
Paul
Paul
 
Posts: 2
Joined: Wed Mar 21, 2012 3:14 pm

Re: LineageGlue Rule Winforms caused an exception

Postby Support Team » Thu Mar 22, 2012 1:29 pm

Hi,
Paul wrote:I am seeing a very similar issue with Ranorex version 3.2.2. Can you please share any additional information learned since this issue was reported?

Would it be possible to post us the LineageGlueRule exception you get?

Thanks in advance.

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

Re: LineageGlue Rule Winforms caused an exception

Postby Paul » Fri Apr 13, 2012 5:56 pm

Hi, sorry I had to work on some higher priority stuff, but would like to get back to this and understand what may be causing the following error:

"LineageGlueRule 'winforms' caused TypeLoadException on Execute. Could not load type '<application class library name>' from assembly '<assembly name>, Version...."

Any insight into what could be causing this would be appreciated. At the point during execution that this occurs, it prevents the next Ranorex command from succeeding. I've tried changing up the test steps at this point and it hasn't made a difference. Everything fails and test run has to be killed.

Thanks,
Paul
Paul
 
Posts: 2
Joined: Wed Mar 21, 2012 3:14 pm

Re: LineageGlue Rule Winforms caused an exception

Postby Support Team » Mon Apr 16, 2012 5:09 pm

Hi,
Paul wrote:"LineageGlueRule 'winforms' caused TypeLoadException on Execute. Could not load type '<application class library name>' from assembly '<assembly name>, Version...."

Please could you post the full LineageGlueRule exception including the details? Would it be also possible to post us your Ranorex Report when the exception occurs? Did you try to re-install Ranorex on this machine?

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


Return to General Questions

Who is online

Users browsing this forum: No registered users and 0 guests