You can use test data (initial values, expected values
and obtained values) to generate various types of 2D and 3D graphs
and charts in the chart viewer. This representation of test data is
particularly valuable associated with a data pool to generate test
patterns
Before you begin
To generate a chart, you must activate the chart feature
and select the variables that you want to display before running the
test. You can display the chart in the chart viewer after the run.
Charts are more relevant when variables are associated with series
of values that produce a pattern. Therefore, they work best when you
use data pools and initial expressions with series or multiple expressions.
Procedure
To configure a test to generate a graph or chart:
- Open a test case in the test case editor and select a Check
block.
- Click the Activate Chart (
) button. This activates chart
data generation for the current Check block.
- Under Chart Configuration, click the Edit link to select the variables that you want to include in the chart. The Chart Configuration window opens.
- In Chart Type, select a type of chart:
- Line chart: Use this type of chart to display test data as
a series of curves created from single data points relative to each
other.
- XY line chart: Use this type of chart to display test data
on a 2 dimensional plane. This requires at least 2 data patterns for
the X and Y axis.
- 3D chart: Use this type of chart to display test data in a
3 dimensional space. This requires at least 3 data patterns for the
X, Y, and Z axis.
- Click Add Curve (
) to generate the data for one of the checked
variables from the test case, select a variable in the list, and click OK.
- Edit the variable data with the following parameters.
- In the Name column, type a name that will be displayed
in the chart on the corresponding axis.
- In the Axis column, specify the X, Y or Z axis on which
the variable will be drawn. Ensure that the axis values
match the type of chart. If you select an axis that is not available
in an Line or XY chart, then the variable data will be displayed on
an available axis.
- In the Source column, select whether the curve uses
initial values, expected values or obtained values (with a min and
max option) to create the curve.
Note: These settings define how the variable data is recorded
during the test run. You can modify the way the data is displayed
in the chart viewer after the run.
- Repeat steps 5 and 6 for all the variables that you want
to use to generate the chart data.
- Click Close.
What to do next
After running the test, you can open the chart in the chart
viewer.