Skip to content

Azure migration

WARNING

MIGRATION AVAILABLE FOR ALLURE TESTOPS VERSION > 4.26.0

Configuration file example

Create the json file with content like:

elm
{
  "type": "azure",
  "debug": true,
  "allureConfig": {
    "endpoint": "https://demo.testops.cloud/",
    "token": "bf012aac-f2ca-4bdd-a30c-9f427901e239",
    "projectId": 23,
    "migrationTagPrefix": "azure",
    "folderCfPrefix": "Suite"
  },
  "azureConfig": {
    "endpoint": "https://dev.azure.com",
    "username": "azure@user.com",
    "password": "ximmeavteiqqkh6gmbneho437fxkastq4wv2xresy2akdzvuhdea",
    "apiVersion": "5.1",
    "organizationName": "orgName",
    "projectName": "Allure-TO-integration",
    "statusMapping": {
      "Closed": "Outdated",
      "Ready":"Active",
      "Design": "Draft"
    },
    "fieldsMapping": [
      {
        "sourceName": "Microsoft.VSTS.TCM.AutomationStatus",
        "targetName": "AutomationStatus"
      },
      {
        "sourceName": "Custom.Release",
        "targetName": "Release",
        "defaultValue": "1.0"
      }
    ]
  }
}

Configuration parameters

NameMandatoryDescriptionExample
commonPropertiesyessee description here:
Common properties
allureConfigyessee description here:
Allure TestOps properties
azureConfig.endpointyesAzure base url
azureConfig.usernameyesAzure username
azureConfig.passwordyesAzure personal access token
Go to ../3P%20TMS%20Migration%20script%20e3b8373fb8764ab5834cbd8344708970.md
azureConfig.apiVersionyesAzure api versionAI
azureConfig.organizationNameyesAzure organization nameAI
azureConfig.projectNameyesAzure project nameAI
azureConfig.testPlanIdsnoA list of specific plans for migration can be specified. Without this parameter the migration will be done for all plans in the project[1,2,45,333]
azureConfig.testCaseIdsnoA list of specific cases for migration can be specified. Without this parameter the migration will be done for all cases in the project

If you use this option you should also set up the options like:
azureConfig.testPlanId
azureConfig.testSuiteId
azureConfig.fieldsMappingnoA list of cf values which need to be migrate to allure as custom fields

{ "sourceName": "Microsoft.VSTS.TCM.AutomationStatus", // the name in Azure system "targetName": "AS", // the custom field name in TestOps system "defaultValue": "NR", // default value if no mapping exists },
see above
azureConfig.statusMappingnoThe mapping for statuses. The default mapping looks like in example. if you want use it - don’t add this config into file. All other different statuses will mapped to “Draft” if you not specified other rule for it."statusMapping": { "Closed": "Outdated", "Ready":"Active", "Design": "Draft" },

Last updated: