Mapping of Ranorex Spy Elements against Repository
Posted: Wed Jun 08, 2011 2:02 pm
Hi,
I am pretty new to automation and Ranorex. While evaluating some tools for my company I have installed and tried Ranorex. I generated a few recordings, most of which worked well, until I've restarted the Ranorex app, meaning that it was closed and used later on. What I'm trying to say is that after I restarted the app and tried to playback the recordings it failed at certain elements.
I started to use the Spy tool and the Repository, and noticed that I can add particular elements (including children) to Repository. I also noticed that I can add actions to my script without making any recordings. For example I tracked down in Spy an UI element with the id 173 024 216. This UI element had a child element 173 024 776 which is basically a list with 3 items. I added 173 024 216 including its list child to repository.I've also added some new actions to my recording based on clicks on this element - 173 024 776. All worked well until I've restarted the entire Ranorex app again (just to use it again later). I didn't make any changes and any intended ones were saved. When opened up app later on, the recording fails during playback when reaching the elements above that I've mentioned. When opened the Spy tool I'm seeing that the parent element is now 130 246 664 and its child 173 024 776 is now 173 484 648. The fail in log file indicates that it doesn't actually find the initial parent element 173 024 216. I will paste the error from the log below, and will also add snap shots. My questions are:
1) What has caused the initial elements to change from 173 024 216(parent) and 173 024 776(child) respectively to 130 246 664(new parent) and 173 484 648(new child) in Spy tool? Presumably, if it's changed in Spy, that's why the recording playback doesn't find them anymore.
2)I'm new to this, but am I doing something wrong here? I need to find a tool to automate our apps UI which is pretty heavy. I can't rely only on record & playback, and adding elements from Spy -> to Repository, then using them for the actions in the code seemed like a valid and quite useful solution. Eventually labeling them and cleaning/keeping a clean Repository would also be helpful. Any suggestions or advice?
3)Any other way to do this?
Thanks in Advance,
Adrian
"Failed to find item 'AuroraRepository.FormAurora_TOUCH.ElementN173024216.ListList1' within the specified timeout of 30s. The folder 'AuroraRepository.FormAurora_TOUCH.ElementN173024216' was not found within the specified timeout of 30s. No element found for path 'container/container[@controlname='WorkingArea']/container[@controlname='Enter_PlateDetails_Add']/form/element[@controlid='173024216']' within 30s. "
I am pretty new to automation and Ranorex. While evaluating some tools for my company I have installed and tried Ranorex. I generated a few recordings, most of which worked well, until I've restarted the Ranorex app, meaning that it was closed and used later on. What I'm trying to say is that after I restarted the app and tried to playback the recordings it failed at certain elements.
I started to use the Spy tool and the Repository, and noticed that I can add particular elements (including children) to Repository. I also noticed that I can add actions to my script without making any recordings. For example I tracked down in Spy an UI element with the id 173 024 216. This UI element had a child element 173 024 776 which is basically a list with 3 items. I added 173 024 216 including its list child to repository.I've also added some new actions to my recording based on clicks on this element - 173 024 776. All worked well until I've restarted the entire Ranorex app again (just to use it again later). I didn't make any changes and any intended ones were saved. When opened up app later on, the recording fails during playback when reaching the elements above that I've mentioned. When opened the Spy tool I'm seeing that the parent element is now 130 246 664 and its child 173 024 776 is now 173 484 648. The fail in log file indicates that it doesn't actually find the initial parent element 173 024 216. I will paste the error from the log below, and will also add snap shots. My questions are:
1) What has caused the initial elements to change from 173 024 216(parent) and 173 024 776(child) respectively to 130 246 664(new parent) and 173 484 648(new child) in Spy tool? Presumably, if it's changed in Spy, that's why the recording playback doesn't find them anymore.
2)I'm new to this, but am I doing something wrong here? I need to find a tool to automate our apps UI which is pretty heavy. I can't rely only on record & playback, and adding elements from Spy -> to Repository, then using them for the actions in the code seemed like a valid and quite useful solution. Eventually labeling them and cleaning/keeping a clean Repository would also be helpful. Any suggestions or advice?
3)Any other way to do this?
Thanks in Advance,
Adrian
"Failed to find item 'AuroraRepository.FormAurora_TOUCH.ElementN173024216.ListList1' within the specified timeout of 30s. The folder 'AuroraRepository.FormAurora_TOUCH.ElementN173024216' was not found within the specified timeout of 30s. No element found for path 'container/container[@controlname='WorkingArea']/container[@controlname='Enter_PlateDetails_Add']/form/element[@controlid='173024216']' within 30s. "