Page 1 of 1
Object not recognized when starting TestSuite
Posted: Sat Mar 19, 2011 1:43 pm
by riccardo
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?
Re: Object not recognized when starting TestSuite
Posted: Mon Mar 21, 2011 9:41 am
by Support Team
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
Re: Object not recognized when starting TestSuite
Posted: Mon Mar 21, 2011 10:12 am
by riccardo
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?
Re: Object not recognized when starting TestSuite
Posted: Mon Mar 21, 2011 11:13 am
by Support Team
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
Re: Object not recognized when starting TestSuite
Posted: Mon Mar 21, 2011 11:25 am
by riccardo
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
Re: Object not recognized when starting TestSuite
Posted: Mon Mar 21, 2011 11:33 am
by Support Team
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
Re: Object not recognized when starting TestSuite
Posted: Mon Mar 21, 2011 11:40 am
by riccardo
Sure I have sent the information on the support email
Re: Object not recognized when starting TestSuite
Posted: Tue Mar 22, 2011 11:12 am
by Support Team
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
Re: Object not recognized when starting TestSuite
Posted: Mon Mar 28, 2011 9:21 am
by mats
Remove this line has solved the problem.