Skip to content

TestIT migration

WARNING

MIGRATION AVAILABLE FOR ALLURE TESTOPS VERSION > 4.26.0

Configuration file example

Create the json file with content like:

json
{
  "type": "testit",
  "debug": true,
  "requestLog": false,
  "oneByOne": true,
  "allureConfig": {
    "endpoint": "https://demo.testops.cloud/",
    "token": "api-token",
    "sslTrustAll": true,
    "projectId": 114,
    "migrationTagPrefix": "testit",
    "folderCfPrefix": "Section"
  },
  "testItConfig": {
    "endpoint": "https://demo.testit.software/",
    "token": "api-token",
    "sslTrustAll": true,
    "projectId": 45,
    "testCaseIds": [1,2,3],
    "epFeStSections": true,
    "prePostStepsWithoutExpected": false,
    "customFields": {
      "priority": "Priority",
      "test it atribute name": "Allure cf name"
    },
		"statusMapping": {
      "NotReady": "Outdated",
      "Ready":"Active",
      "NeedsWork": "Draft"
    }
  }
}

Configuration parameters

NameMandatoryDescriptionExample
commonPropertiesyessee description here:
Common properties
allureConfigyessee description here:
Allure TestOps properties
testItConfig.endpointyesTestIt instance url
testItConfig.tokenTestIt token
testItConfig.sslTrustAllnoFlag if the host validation should take place. Example "true".true
testItConfig.projectIdyestestit project id2
testItConfig.testCaseIdsnoA list of specific cases for migration can be specified. Without this parameter, the migration will be done for all cases in the project[1,2,3]
testitConfig.epFeStSectionsnoEpic Feature Story Schema For Sections:
For Section1, a custom field value for Epic will be added in Allure
For Section2, a custom field value for Feature will be added in Allure
For Section3, a custom field value for Story will be added in Allure
false
testitConfig.prePostStepsWithoutExpectednoSet true if you need steps without expected, only actionsfalse
testitConfig.withoutTagsnoSet to true if you don’t want to migrate tags from TestItfalse
testitConfig.preconditionStepsInScenarionoSet it to true to migrate precondition steps into TestOps testcase scenariofalse
testitConfig.preconditionStepsAsTablenoIf you want to migrate precondition steps as a table. It will be a list by default.true
testitConfig.postconditionStepsInScenarionoSet it to true to migrate postcondition steps into TestOps testcase scenariofalse
testItConfig.customFieldsnoA list of custom field values to migrate to Allure as custom fields. Only the priority system field is supported for now.
To map an attribute from TestIt, specify only the attribute name (string, optional, multipleOptions types supported).
"customFields": { "Suite": "Suite", "Feature": "Feature" }
testItConfig.statusMappingnoThe mapping for statuses. The default mapping is shown in the example. To use the default, do not add this config to the file. All other statuses will map to “Draft” if not specified otherwise.
"statusMapping": { "NotReady": "Outdated", "Ready": "Active", "NeedsWork": "Draft" }
testItConf.issuesPatternnoSpecify the pattern to fetch issue keys from links. Ensure that allureConfig contains the property issueTrackerId.
"issuesPattern": "https://jira.frrfg.com/browse/(?<id>[a-zA-Z0-9-]*)"
testItConf.attributesWithIssuesnoSpecify the list of attribute names to convert to issue links.
"attributesWithIssues": ["link1", "link2"]

Last updated: