Version

What’s New in 2012 Volume 2

Topic Overview

In this topic

This topic contains the following sections:

What’s New in 2012 Volume 2

Features Overview

The following table summarizes the new features of the Test Automation for Micro Focus WPF 2012 Volume 2. Additional details are available following the summary table.

Control Feature Description

Introduces action methods that allow runtime data manipulation of OlapViewModel’s supported controls.

Provides support for recording mouse actions, on subitems, for a list of supported controls.

Introduces changes in the xamDataChart control’s properties and methods.

Introduces support for the xamGantt control’s properties and methods.

Introduces changes in the xamNetworkNode control’s properties and methods.

Introduces improvements in the xamPivotGrid control’s proxy.

Sets the cell value property to the supplied value.

Returns the value property of the supplied column.

Introduces support for the XamSyntaxEditor control properties and methods.

OlapViewModel Controls

OlapViewModel control proxy

The release of 2012 volume 2 adds OlapViewModelProxy for the controls that use OlapViewModel such as xamPivotGrid and xamPivotDataSelector , with the release of 2012 volume 2. This proxy contains user recordable actions with the ability to replay, via script or User Interface (UI) for testing, the featured areas, and inspecting and manipulating runtime data while recording the actions such as moving, removing and filtering items of the XamPivotDataSelector and XamPivotGrid controls.

xamDataChart

Property Changes

The changes introduced by xamDataChart control include TableVerify, DataPoints properties and GetDataPointCount method, which now support StackedSeriesBase and HighDensityScatterSeries data series objects.

If the xamDataChart contains 2 series objects, of which the second one is a StackedBarSeries , then the StackedBarSeries sub series will have indices 1.1, 1.2, and so on.

Consider the following examples that use the GetDataPointCount method, which returns the data points’ count for each of the StackedSeries’ sub series.

  1. Returning the data points’ count of the first series.

msgbox WpfWindow("WindowID").XamDataChart("ChartID").GetDataPointCount(0)
  1. Returning the data points’ count of the second series. Since the second series is a StackedBarSeries, it returns the sum of the data points’ count of all sub series within the StackedBarSeries.

msgbox WpfWindow("WindowID").XamDataChart("ChartID").GetDataPointCount(1)
  1. Returning the data points’ count of the first series as 0.0 equals 0.

msgbox WpfWindow("WindowID").XamDataChart("ChartID").GetDataPointCount(0.0)
  1. Returning the data points’ count of the first sub series of the StackedBarSeries.

msgbox WpfWindow("WindowID").XamDataChart("ChartID").GetDataPointCount(1.1)
  1. Returning the data points’ count of the second sub series of the StackedBarSeries.

msgbox WpfWindow("WindowID").XamDataChart("ChartID").GetDataPointCount(1.2)
Note
Note:

Since -0 equals 0, indices of -0, -0.1,-0.2 and so on equate to their absolute values (|-0|, |-0.1| and |-0.2|). All other negative indices such as -1, -1.1,-2 and so on throw an, “index out of range exception.”

Note
Note

If a series does not exist, the default return value is -1.

xamGantt

xamGantt control proxy

The release of 2012 volume 2 adds support to the xamGantt control. This proxy contains user recordable actions with the ability to replay, via either script or User Interface (UI), to test and inspect the control’s featured areas of the xamGantt.

xamNetworkNode

Changes in xamNetworkNode control proxy

Enhancements to the XamNetworkNodeProxy include more user recordable actions and the ability to replay, via script or User Interface (UI), for testing and inspecting various control items and areas.

xamPivotGrid

Improvements in xamPivotGrid control proxy

Included improvements to the XamPivotGridProxy are the reintroduction of features that previously existed in earlier versions of Infragistics xamPivotGrid control.

Recording operation

  • Records actions by triggering the CellEdited events on a control inside of a cell matching the column Type with the corresponding column of the cell

Replaying operation

  • The replay action first validates oCellArg argument, then activates the cell by putting it in edit mode, and finally sets the editor’s text field to the value of oValue parameter, prior to exiting the edit mode

SetCellData method

The following example demonstrates, with a script, how to use the SetCellData method to set a cell’s value in the third data row of the second data column to a value of 4.

XamPivotGrid("xamPivotGrid1").SetCellData ARRAY(2,1), 4

GetCellData method

The following example demonstrates, with a script, how to use the GetCellData to retrieve the value from a cell in the third data row of the second data column, and displaying it to the screen with a message box:

msgbox WpfWindow("Test Automation Samples").XamPivotGrid("xamPivotGrid1").GetCellData (ARRAY(2, 1) )

xamSyntaxEditor

xamSyntaxEditor control proxy

The release of 2012 volume 2 adds support to the xamSyntaxEditor control. This proxy contains user recordable actions, with the ability to replay, via either script or User Interface (UI), to test and inspect the control’s featured areas of the syntax editor.

Breaking Changes in 2012 Volume 2

Overview

The names for some of the Infragistics controls` subitems have changed in 2012 volume 2. The following table lists the controls with their former subitem names along with their corresponding new names.

Note
Note:

Recording and Replaying use the new subitems, by default. However, you are allowed to use the string equivalents of the old names for reference.

Example:

For XamRibbon, to replay a ClickSubItem method on a RibbonGroup with a header named “Text Style” under tab “Format,” you can use either of the following two Quick Time Profssional™ (QTP) methods:

1 . XamRibbon("myRibbon").ClickSubItem rbnGroup, ARRAY("RibbonGroup", "Format", "Text Style"), igAt, 1,2

2 . XamRibbon("myRibbon").ClickSubItem “RibbonGroup”, ARRAY("RibbonGroup", "Format", "Text Style"), igAt, 1,2

Controls Former subitem name New subitem name .8

XamRibbon

RibbonGroup

rbnGroup

RibbonTool

rbnTool

ApplicationMenuLeftArea

rbnAppMenuLeft

ApplicationMenuRecentItems

rbnAppMenuRecent

ApplicationMenuFooterToolbar

rbnAppMenuFooter

QuickAccessToolbar

rbnQAT

QuickCustomizeMenuPanel

rbnQuickCustMenu

RibbonTabItem

rbnTabItem

XamMenu .2

MenuItem .2

menuItem

XamContextMenu

XamOutlookBar

OutlookBarGroup

obarGroup

SelectedGroupHeader

obarGroupHeader

SelectedGroupContent

obarGroupContent

OverflowArea

obarOverflowArea

XamTreeMap

TreemapNode

tmapNode

XamDockManager

PaneContent

dockPaneContent

PaneTab

dockPaneTab

PaneHeader