Object not recognized when starting TestSuite
Object not recognized when starting TestSuite
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?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Object not recognized when starting TestSuite
Hi,
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
Have you checked if the RxPath is really correct?riccardo wrote: Any idea what that could be?
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
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?
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?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Object not recognized when starting TestSuite
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.
Regards,
Peter
Ranorex Team
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.
There should be no difference, because both codes will be compiled and then executed.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?
Regards,
Peter
Ranorex Team
Re: Object not recognized when starting TestSuite
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
If you want I could provide a TeamViewer session!?
Regards
Riccardo
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Object not recognized when starting TestSuite
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
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
Sure I have sent the information on the support email
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Object not recognized when starting TestSuite
Hi,
It seems to be a problem with Infragisitc controls and .Net 4.0 Client Framework.
Please remove the line
Regards,
Peter
Ranorex Team
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
Remove this line has solved the problem.