we have some serious problems with our test solutions after the transition of our project from Qt4.x to Qt5. None of the tests, which use elements of Qt, is working anymore.
The items seem to have different paths now and that's why the suites don't find them. Here are some examples of buttons and other elements in the repository:
Is there a (simple, fast, automatic) way to "fix" these paths, so the suites will find the items again in Qt5? Editing the paths manually, moving the items to another base or record them from scratch works of course, but would actually take too much time.Qt4: /form[@title~'^OurCompany\ OurProject\ -\ 14\.5\.0']/container[@controlid='59648']//?/container[@accessiblerole='Client']//button[@accessiblerole='ButtonMenu']/button[@accessiblerole='ButtonMenu']
Qt5: /form[@title~'^OurCompany\ OurProject\ -\ 14\.5\.0']/container[@controlid='59648']//container[@accessiblerole='Client']/container[@accessiblerole='Client']/separator/button[1]
Qt4: /form[@title='OurProjectShortName']/?/?/menuitem[@accessiblename='Mitarbeiter']
Qt5: /form[@title='OurProjectFullName']/?/?/menuitem[@accessiblename='Mitarbeiter']
Qt4: /form[@title~'^OurCompany\ OurProject\ -\ 14\.5\.0']//form[@accessiblerole='Application']/toolbar[@accessiblename='Suche']/button[@accessiblename='Suche ausführen']
Qt5: /form[@title~'^OurCompany\ OurProject\ -\ 14\.5\.0']/container[@controlid='59648']//toolbar[@accessiblename='Suche']/button[@accessiblename='Suche ausführen']
Qt4: /form[@title~'^OurCompany\ OurProject\ -\ 14\.5\.0']/container[@controlid='59648']//form[@accessiblerole='Application']//table[@accessiblerole='Table']/row[8]/cell[@accessiblename='Testmitarbeiter05']
Qt5: /form[@title~'^OurCompany\ OurProject\ -\ 14\.5\.0']/container[@controlid='59648']//button[@accessiblerole='SplitButton']/table[@accessiblerole='Table']/cell[@accessiblename='Testmitarbeiter05']
Qt4: /form[@title~'^OurCompany\ OurProject\ -\ 14\.5\.0']/container[@controlid='59648']//form[@accessiblerole='Application']/?/?/button[@accessiblerole='SplitButton']/container[@accessiblehelp~'^<html><head/><body><p>Die']/table[@accessiblerole='Table']/?/?/cell[@accessiblename='Testkunde02']
Qt5: /form[@title~'^OurCompany\ OurProject\ -\ 14\.5\.0']/container[@controlid='59648']//button[@accessiblerole='SplitButton']/table[@accessiblerole='Table']/cell[@accessiblename='Testkunde02']
Qt4: /form[@title='OurProjectShortName']/?/?/menuitem[@accessiblename='Kunde öffnen']
Qt5: /form[@title='OurProjectFullName']/?/?/menuitem[@accessiblename='Kunde öffnen']
Unfortunately I couldn't get one of our developers to check this yet.
Thanks in advance!