Chart
These are the actions associated with the Chart step type.
Description
Performs a mouse click on a clickable area of the chart. PTF recognizes the following HTML ID properties:
|
HTML ID Property |
Usage |
|---|---|
|
tag |
Returns an HTML SVG tag for the target clickable area. The tags are:
|
|
fill |
Returns RGB values of an HTML obejct. It is recorded if the tag attribute has no unique identifier. |
|
index |
Returns the specific HTML object based on the HTML source. It returns a number value. It is recorded when multiple elements are present with same attributes. |
Example
|
Type |
Action |
Recognition |
Parameters |
Value |
|---|---|---|---|---|
|
Chart |
ChartClick |
tag=polygon|fill=rgb(83,110,209)|index=2 |
Description
Gets the property value
of an HTML object and assign to the prop=value parameter. Also stores it to the variable in ret=&variable.
Different business charts like Charts, Status Meter Gauges, LEG Gauge, Rating Gauge, and Spark Charts support different properties, for example Charts support the following properties:
FootNote
GroupCount
MainTitle
SeriesCount
SubTitle
Type
XAxisTitle
YAxisTitle
Note: Get_Property on a Charts business chart does not support object oriented properties of a chart such as series and so on.
See Get_Property.
Example
The example is for Get_Property action for JET Chart type.
|
Type |
Action |
Recognition |
Parameters |
Value |
|---|---|---|---|---|
|
Chart |
Get_Property |
chart=2DBar |
idx=0;prop=XAxisTitle;ret=&xtitle |
Description
Compares the value in the browser to the expected value, and adds a pass or fail log entry for the validation.
When you drag the Verify icon and drop it on a chart on the browser page, the chart is highlighted and the Chart.Verify dialog box opens.
Image: Chart.Verify dialog box
Chart.Verify dialog box appears where you enter the required properties of the chart.

|
Field or Control |
Definition |
|---|---|
| Chart Type |
Populated from the HTML tag. |
| Index |
Populated from the HTML tag. It is the index value of a chart object when there are more than one chart on the same page. |
| Property |
Select from the available properties for a particular Chart Type. |
| Expected |
Displays the value to be verified which depends on the Property field. It is populated when a property is selected. The field in some instances may remain blank if there is no value to be verified. |
Example
The table illustrates the Verify action for Chart step type.
|
Type |
Action |
Recognition |
Parameters |
Value |
|---|---|---|---|---|
|
Chart |
Verify |
chart=2DBar |
idx=0;prop=MainTitle |
National Parks |
|
Chart |
Verify |
chart=2DBar |
idx=0;prop=ReferenceArea(1).Description |
Reference Area2 |
|
Chart |
Verify |
chart=2DBar |
idx=0;prop=DateSeries(1) |
GLACIER |