Problem with multiple Xpaths for Qt-Application
Posted: Mon Feb 21, 2011 12:38 pm
Hello,
i am evaluating Ranorex for automated tests of Qt-application under Windows XP.
The accessibilty plugin works fine, but every control (buttons, ipnut fields, ...) is recognized under multiple paths.
So i can see, at least, 4 different paths to the same control. I tried to create one repository with the shortest path of all controls. When i use the recorder, it creates its own elements with long paths. Looks like its using 'depth first search' in the object tree (as it appears in the spy), and returns the first found path to the element, which is not the shortest. So i have to replace all the paths by hand, and this takes hours and therefore is not suitable for us.
Is it possible to let the recorder search for the shortest path (like 'breadth first search') of the element in the objecttree, or to force the recorder to use the paths that are already defined in the repository?
i am evaluating Ranorex for automated tests of Qt-application under Windows XP.
The accessibilty plugin works fine, but every control (buttons, ipnut fields, ...) is recognized under multiple paths.
So i can see, at least, 4 different paths to the same control. I tried to create one repository with the shortest path of all controls. When i use the recorder, it creates its own elements with long paths. Looks like its using 'depth first search' in the object tree (as it appears in the spy), and returns the first found path to the element, which is not the shortest. So i have to replace all the paths by hand, and this takes hours and therefore is not suitable for us.
Is it possible to let the recorder search for the shortest path (like 'breadth first search') of the element in the objecttree, or to force the recorder to use the paths that are already defined in the repository?