Knowledgebase

Search:     Advanced search

QA Wizard Pro Recognizes Multiple Controls as the Same Control

Article ID: 826  |  Last updated: 26 Jun, 2017

Note: The following information only applies to controls that use the Standard search method.

Problem

Multiple controls are not added to the QA Wizard Pro application repository during recording when multiple instances of the same control are used in the test application.

Scripts may also interact with the incorrect instance of a control during playback or errors may occur if QA Wizard Pro cannot locate a control instance in the repository.

Cause

Each application window and control has a set of properties that are captured by QA Wizard Pro during recording and saved in the repository. These properties are used as search criteria to find controls during playback and uniquely identify controls in the repository so duplicates are not added during subsequent recordings.

If an application has multiple instances of the same control, QA Wizard Pro may only add one instance to the repository. For example, a web page uses an image link with the same href, text, and image filename in multiple places. The href, text, and image filename are properties of the image link that are used as default search criteria. QA Wizard Pro cannot uniquely identify each instance of the image link because the values of the properties used as search criteria are identical for each control.

Solution

Perform the following steps to capture additional instances of duplicate controls if scripts perform actions on them.

  1. Change the search criteria for the control in the application repository so it is unique from other instances of the control.
  2. Record a test script to capture another instance of the control. Review the repository changes after recording to make sure a new instance of the control will be added to the repository with a meaningful and intuitive name.
  3. Edit the search criteria for the new control so it is unique in the repository.
  4. Repeat steps 1 - 3 until each instance of the control is saved and unique in the repository.

Tip: If the application contains a large number of duplicate controls and you know unique search criteria to use for each control, you can manually duplicate the existing control in the repository and then modify the name and search criteria for the new controls to save time. You can also consider changing the default search criteria for the control type to help uniquely identify controls during recording. See Changing Default Search Criteria.

Article ID: 826  |   Last updated: 26 Jun, 2017
Tags
control properties search criteria duplicate controls

Prev   Next
QA Wizard Pro Scripts Fail in Internet Explorer 7     Running QA Wizard 4 Scripts in QA Wizard Pro