Skip to content

HP ALM Json file Migration

  1. Export your alm test cases as json in format:
json
{
  "tests": [
    {
      "id" : "123",
      "name" : "Test name",
      "description" : "Some description",
      "severety" : "High",
      "path" : [
        "Folder name 1",
        "Folder name 2",
        "Folder name 3"
      ],
      "steps" : [
        {
          "name": "Step 1",
          "action" : "<html><body>Some action 1</body></html>",
          "expected" : "<html><body>Some expected 1</body></html>"
        },
        {
          "name": "Step 2",
          "action" : "<html><body>Some action 2</body></html>",
          "expected" : "<html><body>Some expected 2</body></html>"
        },
        ...
      ]
    }
  ]
}
  1. use this example to configure migration

Configuration file example

Create the json file with content like:

json

{
  "type": "alm-json",
  "debug": true,
  "oneByOne": false,
  "allureConfig": {
    "endpoint": "https://demo.testops.cloud/",
    "token": "1f4b4acd-418c-4d0b-8533-1d747abb7599",
    "projectId": 173,
    "migrationTagPrefix": "alm",
    "folderCfPrefix": "Folder"
  },
  "almJsonConfig": {
    "path": "/path/to/file/exampletest",
    "attachmentsPath": "/path/to/attachments",
    "withAttachmentsNamesInSteps": true
  }
}

Configuration parameters

NameMandatoryDescriptionExample
commonPropertiesyessee description here:
Common properties
allureConfigyessee description here:
Allure TestOps properties
almJsonConfig.pathyesAbsolute path to JSON file with ALM export
almJsonConfig.attachmentsPathyesAbsolute path to the folder with ALM attachments

Use file name pattern for attachments:
ALM__<almId>STEP<stepNumber>_<name>

Where:
- <almId> = ALM testcase ID
- <stepNumber> = step number; use “0” for case attachment
- <name> = attachment name
almJsonConfig.withAttachmentsNamesInStepsnoIf this flag is true, there will be attachment names in the scenario like:
Step #1: Some action [attach:<attachment_name>] with attachment
`
- <attachment_name>`

Last updated: