Reactive Systems logo
Reactis for C API V2019

API - Reactis for C: MATLAB Bindings - Reactis Test Suites

rcSuiteOpenOpen an existing Reactis test suite file.
rcSuiteCloseClose a test suite file.
rcSuiteSaveSave changes to a .rsh file.
rcSuiteGetNumTestsGet number of tests in a test suite.
rcSuiteGetTestsGet information about tests in test suite.
rcSuiteGetReactisVersionGet Reactis version of test suite.


rcSuiteOpen

Open an existing Reactis test suite file.

Syntax

suiteId = rcSuiteOpen(suiteFileName)

Description

suiteId = rcSuiteOpen(suiteFileName) opens file suiteFileName. suiteFileName must be an .rst file created with Reactis.

suiteId is a scalar integer valued double that identifies the test suite file when calling other rcSuite* or rcSimRunSuite API functions.

Examples


rsh = rcSuiteOpen('cruise.rst');

See Also

rcSuiteClose, rcSuiteSave, rcSimRunSuite


rcSuiteClose

Close a test suite file.

Syntax

rcSuiteClose(suiteId)

Description

rcSuiteClose(suiteId) closes the file identified by suiteId. Any changes since the last call to rcSuiteSave will be discarded.

See Also

rcSuiteOpen, rcSuiteSave


rcSuiteSave

Save changes to a .rsh file.

Syntax

rcSuiteSave(suiteId)
rcSuiteSave(suiteId, fileName)

Description

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

rcSuiteSave(suiteId, fileName) writes any changes made to the test suite to disk, using file name fileName.

See Also

rcSuiteOpen, rcSuiteClose


rcSuiteGetNumTests

Get number of tests in a test suite.

Syntax

num = rcSuiteGetNumTests(suiteId)

Description

num = rcSuiteGetNumTests(suiteId) returns the number of tests in the test suite identified by suiteId.

See Also

rcSuiteOpen, rcSuiteGetTests


rcSuiteGetTests

Get information about tests in test suite.

Syntax

tests = rcSuiteGetTests(suiteId)

Description

tests = rcSuiteGetTests(suiteId) returns the name and number of steps of each test in the test suite identified by suiteId.

tests is a structure array with fields name and numSteps containing one element for each test in test suite suiteId .

See Also

rcSuiteOpen, rcSuiteGetNumTests


rcSuiteGetReactisVersion

Get Reactis version of test suite.

Syntax

res = rcSuiteGetReactisVersion(suiteId)

Description

res = rcSuiteGetReactisVersion(suiteId) returns a string identifying the version of Reactis that was used to create the test suite.

See Also

rcSuiteOpen