5. Reactis Test Suites#

5.1. rcSuiteOpen#

Open an existing Reactis test suite file.

5.1.1. Syntax#

suiteId = rcSuiteOpen(suiteFileName)

5.1.2. 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.

5.1.3. Examples#

rsh = rcSuiteOpen('cruise.rst');

5.1.4. See Also#

rcSuiteClose, rcSuiteSave, rcSimRunSuite

5.2. rcSuiteClose#

Close a test suite file.

5.2.1. Syntax#

rcSuiteClose(suiteId)

5.2.2. Description#

rcSuiteClose(suiteId)

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

5.2.3. See Also#

rcSuiteOpen, rcSuiteSave

5.3. rcSuiteSave#

Save changes to a .rsh file.

5.3.1. Syntax#

rcSuiteSave(suiteId)
rcSuiteSave(suiteId, fileName)

5.3.2. 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.

5.3.3. See Also#

rcSuiteOpen, rcSuiteClose

5.4. rcSuiteGetNumTests#

Get number of tests in a test suite.

5.4.1. Syntax#

num = rcSuiteGetNumTests(suiteId)

5.4.2. Description#

num = rcSuiteGetNumTests(suiteId)

returns the number of tests in the test suite identified by suiteId.

5.4.3. See Also#

rcSuiteOpen, rcSuiteGetTests

5.5. rcSuiteGetTests#

Get information about tests in test suite.

5.5.1. Syntax#

tests = rcSuiteGetTests(suiteId)

5.5.2. 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.

5.5.3. See Also#

rcSuiteOpen, rcSuiteGetNumTests

5.6. rcSuiteGetReactisVersion#

Get Reactis version of test suite.

5.6.1. Syntax#

res = rcSuiteGetReactisVersion(suiteId)

5.6.2. Description#

res = rcSuiteGetReactisVersion(suiteId)

returns a string identifying the version of Reactis that was used to create the test suite.

5.6.3. See Also#

rcSuiteOpen