Viewing test results data in Grafana
After you install and configure HCL OneTest™ Server Results Data plugin in Grafana, you can retrieve the test log data that is generated in HCL OneTest™ Server and view the test results data in Grafana. You can use queries to display graphs, statistics, or tables. You can also view the details in a Grafana dashboard.
Before you begin
You must have completed the following tasks:
- Ran tests to get test logs results in HCL OneTest™ Server. For more information about the procedure, refer to Test logs.
- Installed the HCL OneTest™ Server Results Data plug-in and created an instance of data source for HCL OneTest™ Server Results Data. See Installing and configuring HCL OneTest Server Results Data.
- Opened Grafana with one of these ports: http://localhost:3000 or http://localhost:8080.
Procedure
-
Click Explore in the Toggle menu
in Grafana.
The Data query page with the default data source is displayed.
- Select HCL OneTest™ Server Results Data from the list of data sources.
-
Select the type of query by performing any of the following actions when you
want to view statistics, events, or activities from the test data:
To view Actions The variation of a metric over time. Perform the following steps: - Click the time-series statistics tab icon .
- Go to Step 4.
The values of the metric computed over the entire time range. Perform the following steps: - Click the overall statistics tab icon .
- Go to Step 4.
The events recorded in the test log. Perform the following steps: - Click the Events tab.
- Go to Step 4.
The activities recorded for all events in the test log. Perform the following steps: - Click the Activities tab.
- Go to Step 4.
-
Define the scope for the query by performing the actions indicated in the
following table:
Options Actions If you want to use the data from the team space Note: You can select the team space as the scope for your query only if you want to view the time-series statistics or overall statistics.Perform the following steps:- Select the Team Space option.
- Select the team space from the list of team spaces that are listed.
- Select either Service, if you want to use Resource Monitoring data or Stubs, if you want to use the virtual service data in the query.
- Go to Step 5.
If you want to use the data from your project Note: You can select the project as the scope for your query if you want to view any of the supported query types.Perform the following steps:- Select the Project option.
- Select the project from the list of projects that are listed.
- Select the Result option.
- Select the result from the list of results that are displayed. Alternatively, you can also enter text for the name or ID of the result in the Search field, and then select the result from the listed items.
- Go to Step 5, if you selected the query type as time-series statistics or overall statistics, or go to Step 6, if you selected the query type as Events or Activities.
-
Perform the following steps to select metrics for your query:
-
Perform the following steps for the Events or
Activities query type:
- Click Add query if you want to combine queries from different projects, results ids, or with different properties in the query filters.
- Click Run query.