Version

Accessing the Sample Test Applications and Scripts

Topic Overview

Purpose

This topic provides information about the sample WPF test applications and scripts provided for Ultimate UI for WPF controls.

Sample Applications and Scripts Overview


Introduction

The sample test applications and scripts of Test Automation for Micro Focus WPF provide a quick overview of the important user actions that can be automated and reproduced. The tests invoke the corresponding WPF application to perform the automated test.

The tests are installed by default in the Samples folder. Their default location is C:\Users\Public\Documents\InfragisticsTest Automation for Micro Focus WPF UFT 21.1\Samples\CLR4.0\Scripts\.

Each script is set up to automatically load its sample application from the Samples\Bin folder prior to running.


Samples overview chart

The table below briefly explains the samples available with the Test Automation for Micro Focus WPF.

Test script Application Description

xamDataChartCLR4

xamDataChartCLR4.exe

The script tests the following actions:

  • click on a control

  • right mouse click

Check point is added for:

  • chart data points

  • chart series count

Related Topic

xamDataGridCLR4

xamDataGridCLR4.exe

The script tests the following actions:

  • sorting

  • filtering

  • cell editing

  • cell selection

  • record selection

  • summaries

  • grouping

Check points are added for:

  • active cell

  • active record

  • activefield

  • selected content

  • selected content type

Related Topic

xamDataTreeCLR4

xamDataTreeCLR4.exe

The script tests the following actions:

  • activation/selection of a node

  • checking/unchecking a node checkbox

  • editing the node text

  • expanding/collapsing parent nodes

Check points are added for:

  • active node

  • root nodes

Related Topic

xamEditorsCLR4

xamEditorsCLR4.exe

The script tests setting value to the following editors:

  • text editors

  • numeric editors

  • mask editors

  • check editors

Check points are added for:

  • display text

  • editor value

  • selected text

Related Topic

xamMonthCalendarCLR4

xamMonthCalendarCLR4.exe

The script tests the following actions:

  • scrolling to specified date

  • changing dates selection

  • clicking on a calendar item

  • zooming in and out the calendar

Check points are added for:

  • active date

  • selected dates

Related Topic

xamOutlookBarCLR4

xamOutlookBarCLR4.exe

The script tests the following actions:

  • selecting a group

  • maximizing/minimizing the outlook bar

  • resizing of the outlook bar

  • showing/hiding the overflow menu

Check points are added for:

  • the state of the outlook bar (minimized or not)

  • the count of different areas groups

  • the headers of different areas groups

Related Topic

xamTabControlCLR4

xamTabControlCLR4.exe

The script tests selecting the tab item.

Related Topic


Running the Sample Scripts


Prerequisites

To be able to perform the procedure, you need the following:

  • .NET and WPF extensions enabled on the Micro Focus Unified Functional Testing software

  • The version of Test Automation must match the version of Infragistics


Overview

With the Micro Focus Unified Functional Testing software running, open and run the script to open the sample application, and perform a test on the application’s interface.


Steps

To run a script:

  1. Start the Micro Focus Unified Functional Testing application

  2. Run the test.

    1. Open the test. In the application, from the File* *menu*, choose* *Open* and then browse the folders structure to open the test’s QuickTest file. The test script loads in the Micro Focus Unified Functional Testing Expert View editor.

    2. Start the test. In the test’s interface, click the Run button to start the execution of the automated test. The execution of the automated test begins.

  1. Verify the result. After successful execution of the test, check the result in the UFT Run Results Viewer .

Note: The tests reside in the following folder: C:\Users\Public\Documents\InfragisticsTest Automation for Micro Focus WPF UFT 21.1\Samples\CLR4.0\Scripts\

Topics

The table below lists other topics you may find useful.

Topic Purpose

This topic describes the supported environment and product versions supported by Test Automation for Micro Focus WPF.

This section explains the installing, configuring and removing the Test Automation for Micro Focus WPF product.

This topic explains the available options for getting help with your Infragistics product and how to prepare for contacting technical support.