Execute Test

The Execute-Test command executes Caristix Test Scenario suites. The syntax is as follows:

$ Execute-Test C:\myScenarioSuite.cxs

The command takes one argument, which is the full path to the Scenario Suite source file.

Flags

You can also provide the following optional flags:

-ReportingEnabled

Abbreviated as -r. Output an Excel report file or not. Accepted values are y (yes) or n (no). Default is n.

$ Execute-Test C:\myScenarioSuite.cxs -r y

-ReportPath

Abbreviated as -rp. Excel report file path. Default is ‘.\report.xlsx’.

$ Execute-Test C:\myScenarioSuite.cxs -r y -rp C:\resultingReport.xlsx

-LogExecutionEnabled

Abbreviated as -e. Save execution result or not. Accepted values are y (yes) or n (no). Default is n.

$ Execute-Test C:\myScenarioSuite.cxs -e y

-LogExecutionPath

Abbreviated as -ep. Execution result path. Default is ‘.\result.xml’.

$ Execute-Test C:\myScenarioSuite.cxs -e y -ep "C:\ProgramData\Caristix\Caristix Test\Execution logs\"

-PathsToRun

Abbreviated as -run. List of scenarios, actions and tasks to run in the scenario suite. Accepted values are the paths to those scenarios, actions or tasks within the Scenario Suite. Cannot be used with -skip.

$ Execute-Test C:\myScenarioSuite.cxs -run "scenario 1/action 1" "scenario 2/Action 1/task 1"

-PathsToSkip

Abbreviated as -skip. List of scenarios, actions and tasks to skip in the scenario suite. Accepted values are the paths to those scenarios, actions or tasks within the Scenario Suite. Cannot be used with -run.

$ Execute-Test C:\myScenarioSuite.cxs -skip "scenario 1/action 1" "scenario 2/Action 1/task 1"

-LogsFilePath

Abbreviated as -lp. Logs file path. Default is ‘TestConsole.log’.

$ Execute-Test C:\myScenarioSuite.cxs -lp "C:\customLogPath.log"

-EditVariables

Abbreviated as -var. List of scenario suite variables to edit while running the suite. Click here for more information on the EditVariables flag.

$ Execute-Test C:\myScenarioSuite.cxs -var "${MyVariable}[0].LimitationMax=5" "${MyVariable}.LimitationMin=2"