Appearance
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
Name | Mandatory | Description | Example |
---|---|---|---|
commonProperties | yes | see description here: Common properties | |
allureConfig | yes | see description here: Allure TestOps properties | |
azureConfig.endpoint | yes | Azure base url | |
azureConfig.username | yes | Azure username | |
azureConfig.password | yes | Azure personal access token Go to ../3P%20TMS%20Migration%20script%20e3b8373fb8764ab5834cbd8344708970.md | |
azureConfig.apiVersion | yes | Azure api version | AI |
azureConfig.organizationName | yes | Azure organization name | AI |
azureConfig.projectName | yes | Azure project name | AI |
azureConfig.testPlanIds | no | A 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.testCaseIds | no | A 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.fieldsMapping | no | A 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.statusMapping | no | The 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" }, |