Knowledgebase

Search:     Advanced search

Scripts Run Against Qt 4.x Applications Fail After Upgrading

Article ID: 824  |  Last updated: 23 Dec, 2014

Problem

Scripts recorded against applications built with Qt 4.x fail during playback in QA Wizard Pro 2007.3 and later.

Cause

QA Wizard Pro captures Qt MDI window and tab control data differently in version 2007.3 and later than previous versions. Scripts fail because the expected values for some window and control properties no longer match the value QA Wizard Pro captures from the application.

This occurs if the following properties are selected as search criteria for MDI windows and tab controls:

  • Class Name
  • ControlNamePath
  • Subtype

Solution

Modify the application repository to change the selected properties or expected property values used as search criteria.

If the Class Name or Subtype properties are used as search criteria:

  1. Open the window Properties dialog box.

    If you do not know the Class Name or Subtype name, right-click the window in the application repository and choose Properties.

    If you know the Class Name or Subtype name, choose Repository > Find and Replace. Enter the name in the Find field and click Find. Select a search result and click Properties.

    Note: If you recorded scripts or populated the repository for the application since you upgraded QA Wizard Pro, search for 'QWorkspaceChild' to locate the windows that need to be updated. 
  2. Clear the Class Name and Subtype check boxes if they are selected. Select the Text check box and optionally change the Expected Value.

    We recommend using the Text property to locate Qt MDI windows, but you may want to use other search criteria depending on the application.

    Note: Do not clear the check boxes if you want to continue to use the Class Name or Subtype properties as search criteria. Instead, modify the Expected Value to match the Repository Value.
  3. Click OK to save the changes.

If the ControlNamePath property is used as search criteria:

  1. Right-click the window in the application repository and choose Properties. 
  2. Add the ControlName followed by a period to the beginning of the ControlNamePath expected value.
    Use the value in the Repository Value column for the ControlName property.
  3. Click OK to save the changes.
Article ID: 824  |   Last updated: 23 Dec, 2014
Tags
Qt

Prev   Next
Scripts Fail on CheckExists Statements Set to Generate Warnings...     QA Wizard Pro Google Chrome Support