Studio
2024.10
False
Guide de l’utilisateur de Studio
Last updated 28 juin 2024

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:
ParamètreDescription
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.

Exemple

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"
        }
    ]
}
  • Exemple

Cette page vous a-t-elle été utile ?

Obtenez l'aide dont vous avez besoin
Formation RPA - Cours d'automatisation
Forum de la communauté UiPath
Logo Uipath blanc
Confiance et sécurité
© 2005-2024 UiPath. All rights reserved.