Skip to content

Command Line

Purpose

Rapise test scripts can be run from the command line.

Usage

Using play.bat

The simplest way to run a test directly is:

"C:\Program Files (x86)\Inflectra\Rapise\Engine\play.bat" <path_to_sstest_file>

If you want to pass additional parameters as JSON, then:

"C:\Program Files (x86)\Inflectra\Rapise\Engine\play.bat" <path_to_sstest_file> -config:LastConfig.json.user

In this case, the LastConfig.json.user file, stored in the framework root, contains values from the last execution by Rapise itself. It includes framework parameter values, such as:

{
  "Browser": "Selenium - Chrome",
  "Mode": "Staging"
}

You may customize this JSON file and specify it, for example:

"C:\Program Files (x86)\Inflectra\Rapise\Engine\play.bat" <path_to_sstest_file> -config:CustomParams.json

It is also possible to specify a test case folder rather than a Test.sstest file, for example:

"C:\Program Files (x86)\Inflectra\Rapise\Engine\play.bat" "TestCases\Author Management\Create New Author" -config:LastConfig.json.user

Using SeSExecutor.js

The form of the command is:

%windir%\syswow64\cscript.exe "C:\Program Files (x86)\Inflectra\Rapise\Engine\SeSExecutor.js" <path_to_sstest_file> [evals*]

where

path_to_sstest_file is a path to an sstest file, e.g., "C:\Program Files\Inflectra\Rapise\Samples\SmarteATM\SmarteATM.sstest"

evals (optional) is a statement like this:

-eval:*varname1=*value1;varname2=value2;...

varname is a global variable associated with an option in the Settings Dialog. Global variables are prefixed with g_. The global variables under the Execution and Recording headings can be found by clicking on the corresponding option in the Settings Dialog (see below):

commandline evals

Other variables include:

  • g_scriptPath

  • g_reportPath

  • g_objectsPath

  • g_configPath

  • any global variable defined in the JavaScript or RVL.

Exit Code: * 0 indicates a pass * 1 indicates failure

See Also