I am trying to pass arguments to a test set using the UiPath CLI. It took some effort to get the correct format for the JSON as the CLI kept complaining that I had it wrong. I eventually landed on:
[
{
"name": "ENVIRONMENT",
"value": "https://my.website.com",
"type": "String"
}
]
this doesn’t throw any errors however once the tests start they fail almost immediately and the results show no input arguments:
<testcase assertions="0" classname="My.Test.Test" name="Test.xaml" status="Failed" time="0.197">
<error message="A fault occurred while executing job 198714642 for Test.xaml." type="Fault" />
<system-out>Test case Test.xaml (v1.0.131382808-alpha) executed as job 198714642 and took
197ms.
InputArguments {} OutputArguments {}
</system-out>
</testcase>
The command I’m running is the following, using the UiPath CLI Devops Script:
- zz.\scripts\uipcli.ps1 test run "https://cloud.uipath.com" ${UIPATH_TENANT_NAME} -A ${UIPATH_ACCOUNT_NAME} -I ${UIPATH_APPLICATION_ID} -S ${UIPATH_APPLICATION_SECRET} -o ${UIPATH_FOLDER} -P "path\to\project.json" -i ${UIPATH_INPUT_PATH} --applicationScope "OR.Monitoring OR.Folders OR.BackgroundTasks OR.TestSets OR.TestSetExecutions OR.TestSetSchedules OR.Settings OR.Robots OR.Machines OR.Execution OR.Assets OR.Users OR.Jobs" -r ./result.json
The ‘-i’ argument is where I’m passing in a json that looks like the above block.
Appreciate any comments on where I may be going wrong,
thank you!