Studio
2024.10
False
Studio 用户指南
Last updated 2024年6月28日

About the testCases.json file

testCases.json is a file automatically generated when packaging as a NUPKG a project of type Process, that contains test cases. The file contains metadata regarding your RPA testing project.
In the NUPKG file of the project, you can find the testCases.json file in the .tmh directory.
The parameters contained in the testCases.json file are described in the following table:
参数描述
PackageNameName of the package.
PackageVersionVersion of the package.
ProjectIdUnique identifier of the project.
RpaPackageNameName of the RPA package created.
RpaPackageVersionVersion of the RPA package.
TestCasesArray that lists the test cases for the given process. For each test case, the following information is included:
  • AutomationId: Unique identifier for the automation.
  • RpaPackageEntryPoints: This is an array listing entry points for the RPA package, including the ID and workflow name.
  • TestCaseName: The name of the test case.
TypeType of project, which is always Process.
WorkflowsArray that lists the workflows related to the test cases, including the ID for the entry point, the name, and the type of workflow.

示例

The following is an example of the contents of a testCases.json file included in a project packaged from Studio.
{
    "PackageName": "Testsuite_Tests",
    "PackageVersion": "1.0.162152358",
    "ProjectId": "<projectid>",
    "RpaPackageName": "Testsuite",
    "RpaPackageVersion": "1.0.162145743",
    "TestCases": [
        {
            "AutomationId": "<id>",
            "RpaPackageEntryPoints": [
                {
                    "Id": "<id>",
                    "WorkflowName": "Main.xaml"
                }
            ],
            "RpaWorkflows": [
            ],
            "TestCaseName": "TestCase.xaml"
        }
    ],
    "Type": "Process",
    "Workflows": [
        {
            "EntryPointId": "<entrypointid>",
            "Name": "Main.xaml",
            "Type": "EntryPoint"
        }
    ]
}{
    "PackageName": "Testsuite_Tests",
    "PackageVersion": "1.0.162152358",
    "ProjectId": "<projectid>",
    "RpaPackageName": "Testsuite",
    "RpaPackageVersion": "1.0.162145743",
    "TestCases": [
        {
            "AutomationId": "<id>",
            "RpaPackageEntryPoints": [
                {
                    "Id": "<id>",
                    "WorkflowName": "Main.xaml"
                }
            ],
            "RpaWorkflows": [
            ],
            "TestCaseName": "TestCase.xaml"
        }
    ],
    "Type": "Process",
    "Workflows": [
        {
            "EntryPointId": "<entrypointid>",
            "Name": "Main.xaml",
            "Type": "EntryPoint"
        }
    ]
}
  • 示例

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.