Generating 2D and 3D chart data

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:

  1. Open a test case in the test case editor and select a Check block.
  2. Click the Activate Chart (Activate Chart button) button. This activates chart data generation for the current Check block.
  3. Under Chart Configuration, click the Edit link to select the variables that you want to include in the chart. The Chart Configuration window opens.
  4. 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.
  5. Click Add Curve (Add Curve button) to generate the data for one of the checked variables from the test case, select a variable in the list, and click OK.
  6. Edit the variable data with the following parameters.
    1. In the Name column, type a name that will be displayed in the chart on the corresponding axis.
    2. 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.
    3. 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.
  7. Repeat steps 5 and 6 for all the variables that you want to use to generate the chart data.
  8. Click Close.

What to do next

After running the test, you can open the chart in the chart viewer.
Feedback