Test authoring
You can use HCL OneTest™ Server to author tests instead of creating the tests by using the desktop products.
HCL OneTest™ Server 10.2.2 provides you with the test authoring capability, which utilizes a containerized version of the HCL OneTest™ Studio desktop authoring tools.
Server installation | Test authoring feature |
---|---|
Ubuntu Server (using k3s) | Disabled |
Azure Kubernetes Service | Enabled |
By design, the test authoring feature provides you with the capability to author and edit tests that include writing code, executing code, and accessing the shell. The container in Kubernetes that is used by the test authoring or editing feature does not run as root and the container is not privileged. Hence, it results in providing some protection to the host and other workloads that run on the same node.
- If you administer a network policy for your server installation.
- If you do not intend to use the test authoring feature.
Prerequisites for authoring tests
- HCL OneTest™ API
- HCL OneTest™ Performance
- HCL OneTest™ UI
You must ensure that you have not disabled the test authoring feature at the time of installation of HCL OneTest™ Server or any time after installation.
You must be a Team Space Owner, Project Owner or Member with Tester role to create or edit tests.
Working with the test authoring feature
You must create a project in your team space on HCL OneTest™ Server and add a repository to your project.
You must enable the browser that you use to start an instance of HCL OneTest™ Server to trust the self-signed certificate so that the containerized product can be displayed in another tab of the same browser. See Certificate authority: Importing and extending lists.
- Create a test in a branch of the project repository.
- Edit a test in a branch of the project repository.
Test type selected | Containerized product displayed | Supported tests that you can create |
---|---|---|
API test | HCL OneTest™ API | The following test types are supported:
|
Functional test | HCL OneTest™
UI Note: This is a
shell-shared version with HCL OneTest™ Performance with which you can create both functional tests
and performance tests. |
The following test types are
supported :
|
Performance test |
Containerized product | Supported features | Supported technologies | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
HCL OneTest™ API | All features as in the desktop
product excluding the following features:
|
All technologies as in the desktop
product excluding the following technologies used as a physical
transport in tests:
|
||||||||||||||||||||||||||||||||||||||||
HCL OneTest™ UI shell-shared with HCL OneTest™ Performance | All features as in the desktop products. | All technologies as in the desktop products. |
After you create the test in the containerized product, you must save the test assets or resources to the branch in the repository of your project. You accomplish committing the assets or resources by publishing them.
- When you do not delete the ongoing session in the browser tab with the containerized product.
- When you resume the test authoring session within 8 hours of pausing the task.Important: You might not be able to continue with the test creation activities if you close the browser and delete the session with the containerized product.
After the created test assets are published to the project repository, you can run the test assets from the Execution page or the virtual services from the Resources page.
When you want to edit the created tests or other tests that are in the project repository, you can open the test in the containerized product and use the containerized product to edit the test. After you edit the test, you must publish the test assets to the repository so that the edited test asset is available for a run.
Limitations when using the test authoring feature
You can initiate only one session to either create or edit a test in the containerized product.
When you create a Performance test or Functional test for the first time in the containerized product, after the product is loaded in a new browser, the New Test From Recording window is displayed. You can ignore this message by clicking Cancel and continue with test creation in the containerized product.
- Press Shift+F10
- Keep the right mouse key pressed for a few seconds
The window size control options do not work in the HCL OneTest™ API containerized product.
The SSL certificate validation fails when you commit assets or resources to Git repositories in the containerized product. You can choose to skip the SSL validation and continue with committing assets to Git.