Rapise includes an utility called SeSExecutor. It can run single Rapise tests and test sets.

Running a Single Test

Running a single test is described in this article and is slightly different on 32-bit and 64-bit systems.

For passing parameters via SeSExecutor please refer to to Passing Parameters to a Rapise script through the command line.

Running a Test Set

SeSExecutor understands test sets defined in JS files. Here is the example:

/**
 * This is a an example test set for Rapise.
 */
 
var testSet = 
{
    description: "This is an example test set Rapise.",
    
        // test files, path is relative to the working folder
    _: ["CloseBrowser/CloseBrowser.sstest",
        "CompareJsonObjects/CompareJsonObjects.sstest",
        "ConfigJson/ConfigJson.sstest",
        "FileObject/FileObject.sstest",
        "FindInFiles/FindInFiles.sstest",
        "FormatAndParseDate/FormatAndParseDate.sstest",
        "SelectBrowserProfile/MasterTest/MasterTest.sstest",
        "SeleniumScreenshots/SeleniumScreenshots.sstest"
        ],
    
    // Verbose Level
    verboseLevel: 1,
    
    // Number of tests to run. -1 - all tests.
    testCount: -1
}

Let's assume we saved this file with name TestSet.js in the folder that contains all the listed tests. 

To run test sets create a CMD file, e.g. RunTestSet.cmd and place it near TestSet.js.

If /I "%Processor_Architecture%" NEQ "x86" (
%SystemRoot%\SysWoW64\cmd.exe /C %0
goto :eof
)

pushd %~dp0
cscript "C:\Program Files (x86)\Inflectra\Rapise\Engine\SeSExecutor.js" %1
popd

First parameter to this CMD file is the path to a test set. To run our example test set execute the command line

RunTestSet.cmd TestSet.js

Parameter passing for a test set works exactly like for a single test