Reactive Systems logo
February 18, 2020
Reactis API
 
Spacer

API - Reactis: MATLAB Bindings - Reactis Test Suites


rsSuiteOpenOpen an existing Reactis test suite file.
rsSuiteCloseClose a test suite file.
rsSuiteSaveSave changes to a test suite.
rsSuiteGetNumTestsGet number of tests in a test suite.
rsSuiteGetTestsGet information about tests in test suite.
rsSuiteGetReactisVersionGet Reactis version of test suite.


rsSuiteOpen

Open an existing Reactis test suite file.

Syntax

suiteId = rsSuiteOpen(suiteFilename)

Description

suiteId = rsSuiteOpen(suiteFilename) opens Reactis test suite file suiteFilename, which must be an .rst file created by Reactis.

suiteId is a scalar integer valued double that identifies the test suite for use with other API functions.

Examples


ts = rsSuiteOpen('cruise.rst')

See Also

rsSuiteClose, rsSuiteSave, rsSimRunSuite


rsSuiteClose

Close a test suite file.

Syntax

rsSuiteClose(suiteId)

Description

rsSuiteClose(suiteId) closes the test suite identified by suiteId. Any changes since the last call to rsSuiteSave will be discarded.

See Also

rsSuiteOpen, rsSuiteSave


rsSuiteSave

Save changes to a test suite.

Syntax

rsSuiteSave(suiteId)
rsSuiteSave(suiteId, suiteFilename)

Description

rsSuiteSave(suiteId) writes any changes made to the test suite to disk, using the same file name as used in the rsSuiteOpen call that opened the file. Raises an error if the test suite was created by rsSimImportSuite or rsTester (i.e. has no given filename).

rsSuiteSave(suiteId, suiteFilename) writes any changes made to the test suite to disk into a file named suiteFilename.

See Also

rsSuiteOpen, rsSuiteClose


rsSuiteGetNumTests

Get number of tests in a test suite.

Syntax

numTests = rsSuiteGetNumTests(suiteId)

Description

numTests = rsSuiteGetNumTests(suiteId) returns the number of tests in the suite identified by suiteId.

See Also

rsSuiteOpen, rsSuiteGetTests


rsSuiteGetTests

Get information about tests in test suite.

Syntax

testArray = rsSuiteGetTests(suiteId)

Description

testArray = rsSuiteGetTests(suiteId) returns the name of and number of steps in each test in the suite identified by suiteId. testArray is a structure array with fields name and numSteps containing one element for each test in the suite identified by suiteId .

Examples

>> ts = rsSuiteOpen('cruise.rst')
>> testA = rsSuiteGetTests(ts)
>> testA(1) = 
ans =
      name: 'Test 1'
  numSteps: 17
>> testA(1).numSteps
ans = 
  17

See Also

rsSuiteOpen, rsSuiteGetNumTests


rsSuiteGetReactisVersion

Get Reactis version of test suite.

Syntax

versionString = rsSuiteGetReactisVersion(suiteId)

Description

versionString = rsSuiteGetReactisVersion(suiteId) returns a string versionString identifying the version of Reactis that was used to create the test suite identified by suiteId.

See Also

rsSuiteOpen



Spacer