Custom Metrics in Test Controller

You can create custom metrics in your scripts that you can use in Eggplant Performance Test Controller and Analyzer to view specific information about your test environment. Custom metrics are created via functions placed within your script code. See the API Reference for C++, Java, and .NET for information about the recordMetric() function.

Custom metrics are collected during runtime and can be charted within Test Controller for live monitoring. To create custom metric charts in Test Controller, follow the steps below.

Step by Step: Creating Custom Metric Charts

  1. Right-click Custom metrics in the Current test run section of the left sidebar, then select Create custom metric chart to open the Create Custom Metric Chart dialog box.
    The Create Custom Metric Chart dialog box in Eggplant Performance Test Controller
  2. Enter a Title in the field. This text will be the title of the chart you create. You should title it something descriptive to its purpose.
  3. For Statistic type, select the type of chart you want to create from the drop-down list. Your choices are:
    • Average
    • Rate
    • Cumulative count

    For detailed information about the types of charts, see Understanding Charts and Events in the Eggplant Performance Analyzer section.

  4. Click the green plus (+) button to open the Custom metric name dialog box.
  5. Enter the name of the custom metric. This name will be the same as the code you entered in your script.
  6. Click OK on the Custom metric name dialog box.
  7. (Optional) To add additional metrics to the chart, repeat steps 4 through 6.
  8. Click OK on the Create Custom Metric Chart dialog box.

The new chart appears under the Custom metrics collection in the left sidebar. You can create additional custom metric charts, and you can use them for live monitoring of test runs in the same way as other metrics. For information about monitoring, see Real-Time Test Monitoring in Test Controller.

User-defined metrics are also available for post-run analysis in Eggplant Performance Analyzer.

 

This topic was last updated on August 19, 2021, at 03:30:52 PM.

Eggplant icon Eggplantsoftware.com | Documentation Home | User Forums | Support | Copyright © 2022 Eggplant