Object not recognized when starting TestSuite

Ask general questions here.
riccardo
Posts: 30
Joined: Wed Apr 28, 2010 10:37 pm

Object not recognized when starting TestSuite

Post by riccardo » Sat Mar 19, 2011 1:43 pm

I do have a recording which runs fine when starting the recording itself. All objects will be well recognized. As soon as I add this recording to a testcase in the rxtst, there are elements which will not be recognized anymore. Any idea what that could be?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Object not recognized when starting TestSuite

Post by Support Team » Mon Mar 21, 2011 9:41 am

Hi,
riccardo wrote: Any idea what that could be?
Have you checked if the RxPath is really correct?
Could it be, that there a some "instance" or "auto-generated ID's" attributes in your application, which changes if you restart your AUT and therefore they are too inside the RxPath?
If you replay the recording using the test suite, have you tried to use the "Open in Spy" functionality inside the Report to check if the RxPath is correct?
Have you created a variable inside your repository and entered a wrong default value?

Regards,
Peter
Ranorex Team

riccardo
Posts: 30
Joined: Wed Apr 28, 2010 10:37 pm

Re: Object not recognized when starting TestSuite

Post by riccardo » Mon Mar 21, 2011 10:12 am

Hi Peter

The AUT will not be restarted and there are no changing ID's. I can run the Recording by the "Play" Button and everything works fine, if I run it under the Test Suite the Item will not be found. I do have variables, but their default value are all correct and those variables will be used later in the test.

It is a sub menu which can only be tracked with the instant tracking, so the "Open in Spy" reports that no element was found.

What is the difference from starting the recording with the "Play" button on the recording itself then starting the testsuite with only this recording inside?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Object not recognized when starting TestSuite

Post by Support Team » Mon Mar 21, 2011 11:13 am

Hi,

I tried to reproduce this, but it is always working as expected. Please check the RxPaths in your repository, using the highlight method, if Ranorex is able to find the elements you are searching for.
riccardo wrote:What is the difference from starting the recording with the "Play" button on the recording itself then starting the testsuite with only this recording inside?
There should be no difference, because both codes will be compiled and then executed.

Regards,
Peter
Ranorex Team

riccardo
Posts: 30
Joined: Wed Apr 28, 2010 10:37 pm

Re: Object not recognized when starting TestSuite

Post by riccardo » Mon Mar 21, 2011 11:25 am

As it is a sub-menu item the element is only visible when open the menu on the toolbar, so the ranorex path will never be found. I just get the Path when using the instant tracking with the spy (CTRL-L-WIN). There the Menu entry will be normally recognized.

If you want I could provide a TeamViewer session!?

Regards
Riccardo

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Object not recognized when starting TestSuite

Post by Support Team » Mon Mar 21, 2011 11:33 am

Hi,

Can you please post me the exact error message you get when you start the recording via the test suite?
A Ranorex Snapshot and your repository would also be useful.

Thanks in advance.

Regards,
Peter
Ranorex Team

riccardo
Posts: 30
Joined: Wed Apr 28, 2010 10:37 pm

Re: Object not recognized when starting TestSuite

Post by riccardo » Mon Mar 21, 2011 11:40 am

Sure I have sent the information on the support email

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Object not recognized when starting TestSuite

Post by Support Team » Tue Mar 22, 2011 11:12 am

Hi,

It seems to be a problem with Infragisitc controls and .Net 4.0 Client Framework.
Please remove the line
<supportedRuntime version="v4.0"/>
from the app.config file. This should solve the issue. Another possible solution could be to install the "Extended .Net 4.0 Framework".

Regards,
Peter
Ranorex Team

mats
Certified Professional
Certified Professional
Posts: 27
Joined: Tue May 18, 2010 12:58 pm

Re: Object not recognized when starting TestSuite

Post by mats » Mon Mar 28, 2011 9:21 am

Remove this line has solved the problem.