msgbox WpfWindow("WindowID").XamDataChart("ChartID").GetDataPointCount(0)
This topic contains the following sections:
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.
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.
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.
Returning the data points’ count of the first series.
msgbox WpfWindow("WindowID").XamDataChart("ChartID").GetDataPointCount(0)
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)
Returning the data points’ count of the first series as 0.0 equals 0.
msgbox WpfWindow("WindowID").XamDataChart("ChartID").GetDataPointCount(0.0)
Returning the data points’ count of the first sub series of the StackedBarSeries.
msgbox WpfWindow("WindowID").XamDataChart("ChartID").GetDataPointCount(1.1)
Returning the data points’ count of the second sub series of the StackedBarSeries.
msgbox WpfWindow("WindowID").XamDataChart("ChartID").GetDataPointCount(1.2)
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.
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.
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
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
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) )
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.
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.
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