Description
HCL OneTest API, is an integration testing and virtualization tool that includes capabilities to automate and run tests earlier and more often to find problems sooner in the development cycle.
HCL OneTest API, is an integration testing and virtualization tool that includes capabilities to automate and run tests earlier and more often to find problems sooner in the development cycle.
The HCL OneTest API plugin provides an integration with HCL OneTest API. This plugin imports test result data from a MySQL DB and saves the data as metrics in HCL Accelerate insights.
This plugin requires HCL Accelerate version 2.2.2 or later.
HCL OneTest API 10.1.3 or later is supported.
The following table describes the changes made in each plugin version.
Version | Description |
---|---|
0.0.15 | User Access Key Related Changes. |
0.0.2 | Initial release |
To use the HCL OneTest API plugin, the plugin must be loaded and an instance created before you can configure the plugin integration. Configuration properties are defined using the product user interface or a JSON file. After the integration is complete, to invoke the plugin send an HTTP Post request to the plugin endpoint.
The HCL OneTest API plugin supports endpoint integration which are listed in the following table.
Name | Path | Method |
---|---|---|
OneTest API | onetest-api/callback | Post |
To import data from the HCL OneTest API server, send an HTTP POST request to your endpoint such as the following sample.
https://<pluginEndpoint>/onetest-api/callback
The payload for the POST is shown below.
{
"project": "<Project Name>",
"startDate": "<Start Date>" // Optional - Format is "YYYY-MM-DD"
}
There are two methods to integrate the plugin:
The JSON file contains the information for creating a value stream and integrating with the HCL OneTest API server. The following table describes the information for the creating a HCL Accelerate value stream map.
The following tables describe the properties used to configure the integration. Each table contains the field name when using the user interface and the property name when using a JSON file.
properties
configuration property.Some properties might not be displayed in the user interface, to see all properties enable the Hidden field.
Name | Description | Required | Property Name |
---|---|---|---|
NA | The version of the plugin that you want to use. To view available versions, click the Version History tab. If a value is not specified, the version named latest is used. | No | image |
Integration Name | An assigned name to the value stream. | Yes | name |
Logging Level | The level of Log4j messages to display in the log file. Valid values are: all, debug, info, warn, error, fatal, off, and trace. | No | loggingLevel |
NA | List of plugin configuration properties used to connect and communicate with the HCL OneTest API server. Enclose the properties within braces. | Yes | properties |
The name of the tenant. | Yes | tenant_id | |
NA | Unique identifier assigned to the plugin. The value for the HCL OneTest API plugin is ucv-ext-onetest-api |
Yes | type |
Name | Type | Description | Required | Property Name |
---|---|---|---|---|
User Access Key | Secure | The user access key to authenticate with the HCL Accelerate server. | Yes | ucvAccessKey |
HCL OneTest Database Hostname | String | The hostname of the HCL OneTest Database. | Yes | oneTestDBUrl |
HCL OneTest Database | String | The name of HCL OneTest Database. | Yes | oneTestDB |
HCL OneTest Database Username | String | The user name to authenticate with the HCL OneTest Database. | Yes | oneTestDBUsername |
HCL OneTest Database Password | Secure | The password to authenticate with the HCL OneTest Database. | Yes | oneTestDBPassword |
The following cURL command can be used as an example to send a HTTP POST request to the endpoint.
curl --insecure --request POST --url "https://localhost/reporting-consumer/pluginEndpoint/5fbe581479d90350dd187e67/onetest-api/callback" --header "Content-Type: application/json" --data-raw "{ \"project\": \"Onetest\", \"startDate\": \"2020-09-30\" }"
Uploaded: 04-Apr-2024 06:59
docker pull hclcr.io/accelerate/ucv-ext-onetest-api:0.0.21
Uploaded: 14-Nov-2022 12:07
docker pull hclcr.io/accelerate/ucv-ext-onetest-api:0.0.19
Uploaded: 28-Jan-2022 13:54
docker pull hclcr.io/accelerate/ucv-ext-onetest-api:0.0.15
Uploaded: 10-Feb-2021 14:03