To be able to Subsitute Application Title : RanorexSpy

To be able to Subsitute Application Title

Ask questions about RanorexSpy

To be able to Subsitute Application Title

Postby atom » Fri Jun 05, 2009 10:54 am

Hiya,

I have an application with a main window with title "My Application v1.0". The application has a child form, with title "My Form".

In Ranorex Spy I locate "My Form" and add it to a repository.
The problem is now that the RxPath used to find all the form controls includes text "My Application v1.0"

This is a problem as now for version 1.1, the main application window will have a different title, so none of our repository items will work, meaning a total re-record.

To avoid this what would be good is for the generated code to set "My Application v1.0" as a constant string, that can be easily changed.

Hope thats clear.
Regards,
atom
 
Posts: 199
Joined: Mon Dec 08, 2008 12:14 am
Location: Dublin, Ireland

Postby Support Team » Fri Jun 05, 2009 1:27 pm

Why not just edit the repository folder that contains the "My Application v1.X" string and change it to "v1.1"? Or even better to a regular expression? If you edit the path of the application/rooted folder, the paths of all elements underneath the folder are automatically updated.

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

Postby atom » Fri Jun 05, 2009 4:15 pm

Ok... i wasnt aware of how Repository folders work
So the way they work is that a folder has an associated xpath,
and child elements in the folder inherit the path from the folder, and extend it with their own path?
atom
 
Posts: 199
Joined: Mon Dec 08, 2008 12:14 am
Location: Dublin, Ireland

Postby Support Team » Fri Jun 05, 2009 4:20 pm

atom wrote:So the way they work is that a folder has an associated xpath, and child elements in the folder inherit the path from the folder, and extend it with their own path?

Right, the paths of items in a folder are relative paths in respect to the folder (parent). So the actual path of a repository item in a folder is the folder's path concatenated with the item's path.

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


Return to RanorexSpy

Who is online

Users browsing this forum: No registered users and 0 guests