Object identification for title bar in an application.
Posted: Thu May 25, 2017 7:06 pm
Hello,
In my solution, i am creating recordings for title bar menu items in my application.
The application runs fine, if the title bar does not change.
However, this title bar also contains the version number of my application Format -( Title bar name - Version number ).
Now, the solution runs fine for testing of this software version of my application.
However, if i happen to update my application to a newer version, the version number changes, and the changed version number is also reflected in the title bar Format- ( Title bar name - Version number (new))
This fails all my recordings which are recording the menu items located on the menu bar.
Eg: File, View, etc.
So if my recording starts a mouse event from selecting file menu in my title bar of my application, the recording fails.
This is because, the ranorex creates object repository for a recording with a particular name associated with the underlying gui.
I also introduced a code module, that can track only the title name and used that for creating recordings.
However, i wanted to explore more feasible options that can help my recordings to be robust and flexible, even if the name or numbers within the title bars change, i am able to implement my file, view menus successfully.
Any help will be appreciated.
Thanks!
In my solution, i am creating recordings for title bar menu items in my application.
The application runs fine, if the title bar does not change.
However, this title bar also contains the version number of my application Format -( Title bar name - Version number ).
Now, the solution runs fine for testing of this software version of my application.
However, if i happen to update my application to a newer version, the version number changes, and the changed version number is also reflected in the title bar Format- ( Title bar name - Version number (new))
This fails all my recordings which are recording the menu items located on the menu bar.
Eg: File, View, etc.
So if my recording starts a mouse event from selecting file menu in my title bar of my application, the recording fails.
This is because, the ranorex creates object repository for a recording with a particular name associated with the underlying gui.
I also introduced a code module, that can track only the title name and used that for creating recordings.
However, i wanted to explore more feasible options that can help my recordings to be robust and flexible, even if the name or numbers within the title bars change, i am able to implement my file, view menus successfully.
Any help will be appreciated.
Thanks!