UiPath Documentation
test-manager
latest
false
Test Manager user guide

Preparing the TMH file

Prepare a TMH file for import by specifying objects in JSON files and organizing them with attachments in the required folder structure.

When you are preparing your TMH files for import, use a file size that does not exceed 2GB. Keeping the file size within this limit avoids the import process being aborted midway.

Specify all objects that you want to import into JSON files, following the sample schemas inside each subfolder.

Example: To specify a Test Case, use the sample schema below:

{
  "testCases": [
    {
      "id": "string (100)",
      "version": "string (100)",
      "name": "string (100)",
      "inputParams": "string",
      "description": "string",
      "automationId": "string (100)",
      "automationTestCaseName": "string (100)",
      "automationProjectName": "string (100)",
      "foreignRef": "string",
      "connectorTestCaseId": "string"
    }
  ]
}
{
  "testCases": [
    {
      "id": "string (100)",
      "version": "string (100)",
      "name": "string (100)",
      "inputParams": "string",
      "description": "string",
      "automationId": "string (100)",
      "automationTestCaseName": "string (100)",
      "automationProjectName": "string (100)",
      "foreignRef": "string",
      "connectorTestCaseId": "string"
    }
  ]
}

Make sure to change the data between parentheses with the data corresponding to your Test Case.

Steps​

  1. After creating JSON files for each object from a project, add them to the corresponding subfolder in the objects folder. You can name the JSON files however you want, but the names of the subfolders must stay the same. Example: Add the JSON files that contain data about Test Cases to the testcases subfolder.
    Important:

    If you have a large number of objects to import, split them into multiple files, such as testcases-1.json, and testcases-2.json. Add a maximum of 500 files per subfolder.

  2. Add the attachment files associated with the objects under the attachments folder, using the following folder hierarchy: /attachments/object-id/file name.
    • object-id - replace this with the ID of the associated object.
    • file name - replace this with the name of the attachment.
  • Steps​

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated