Skip to content

Automated migration of Test Cases to Allure TestOps

Prerequisites

All prerequisites described below are mandatory. If you fail to comply, then the migration will fail.

  • Allure TestOps release less than 4.25.x is NOT supported.
  • To use this script for TestRail migration please update your TestOps to the 4.26.0 or newer version.
  • The migration script is to be used to migrate manual test cases only. Automated tests are created when the test results from your code is uploaded to TestOps.
  • Java 21 to be installed on the machine where you are going to execute the migration script. Use java --version to check. Java version other than 21 will cause the migration tool to fail on its start.
  • The TestOps user you are going to utilise for the migration purposes must have ROLE_ADMIN authority, otherwise the migration procedure will fail.

Migration process

  1. Prepare the config file for your migration (see the instructions in available migrations list).
    1. Descriptions of API2API migration configs are here.
    2. Descriptions of File2API migration configs are here.
  2. Unzip the archive with the migration script. There is a jar file inside.
  3. Execute the script.

Script execution command line example.

bash
java -jar allure-testops-migration-<version>.jar /path/to/config/file/config_file.json

What if Proxy is required

If you have an internal proxy, then please make sure that you’ve set proxy settings for the migration script.

bash
java -Dhttps.proxyHost=<PROXY_HOST> -Dhttps.proxyPort=<PROXY_PORT> -DproxySet=true -jar ...

If you met an exception like with the connection to some endpoint

shell
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException ...

Then make sure that on the machine where you execute migration script) there are valid certificates. See https://docs.oracle.com/javase/tutorial/security/toolsign/rstep2.html for more details.

MacOS instructions for adding certificates

You can use this instruction for MacOs: https://www.mobilefish.com/developer/j2se/j2se_quickguide_java_add_certificate_mac.html

Configuration file

The configuration file should be specified for migration. Please use appropriate examples to prepare it.

Common migration properties

Common properties

TestOps Config properties

Allure TestOps properties

API to API migrations

File to API migrations

Hints

  1. To make precondition and expected results available in the Allure Test Case view, you need to activate it on a project setting page:

Enable test cases sections

  1. After the migration you can setup the tree representation to see all Section/Folders structure like usual TMS structure. See: Trees but please remember in TestOps there are no folders – the tree is a dynamic grouping.

Last updated: