Mapping unknown class

In this method, we will map the Telerik list box control to a supported TA class, list box in this example, and use the built-in action get list item count.

To map the Telerik list box control to the supported TA class, list box, follow these steps:

  1. Open a Telerik sample application with a list box control.

  2. Launch TestArchitect Client, if it is not already running.

  3. Identify the Telerik list box control by using the Interface Viewer.

    Because the Interface Viewer recognizes the Telerik list box control as an itemscontrol class, the built-in action get list item count is unable to work on it. (get list item count works only on controls of TA classes combobox, listbox, and listview.)

  4. Map the items control class to the list box class:

    1. Right-click the node ListBoxTest and select Map to Other Known Class.

    2. In the Map to Class option, select the listbox class.

    3. Click OK.

    4. Capture the control again; the RadListBox Control node has been successfully mapped to the list box class.

  5. Enter the following script in TestArchitect editor.

    Notes: 
    You must capture windows and controls in advance before using them in your test scripts.

  6. Click Execute on the toolbar to execute the test.

    The Execute Test dialog box appears.

  7. Click Execute.

    Based on the GUI of the selected Telerik AUT, TestArchitect’s result should return three for the total number of items.

    However, the total number of items is minus one which is incorrect.

To obtain the correct result, it is necessary to override the built-in action get list item count using the WPF Extensibility solution.


Copyright © 2024 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400