| ||||||||||||||||||||
rsTesterCreate a test suite. SyntaxsuiteId = rsTester(modelFilename) suiteId = rsTester(modelFilename,rsiFilename) suiteId = rsTester(modelFilename,rsiFilename,suiteFilename) suiteId = rsTester(modelFilename,rsiFilename,suiteFilename,extraParameters) suiteId = rsTester(modelFilename,rsiFilename,suiteFilename,extraParameters, reportFilename) suiteId = rsTester(modelFilename,rsiFilename,suiteFilename,extraParameters, reportFilename,reportConfig) Description
Any parameter except modelFilename may be omitted by passing in an empty matrix instead. The return value suiteId is a scalar integer valued double that identifies the generated test suite for use with other API functions. The test suite should be closed when no longer needed by calling rsSuiteClose. If no test suite file name was given in the rsTester call, the test suite should be saved by calling rsSuiteSave before closing it, otherwise the test data contained in the suite will be deleted. After the rsTester call finishes, coverage information may be obtained by calling rsGetCoverageMetrics. ExamplessuiteId = rsTester('cruise.slx','cruise.rsi','cruiseTestSuite.rst');Generate a test suite for model cruise.slx using settings in cruise.rsi and save the resulting test suite to cruiseTestSuite.rst. See AlsorsTesterStart, rsSuiteSave, rsSuiteClose, rsReportConfig, rsGetCoverageMetricsrsTesterStartInitiate the asynchronous creation of a test suite. SyntaxtesterId = rsTesterStart(modelFilename) testerId = rsTesterStart(modelFilename,rsiFilename) testerId = rsTesterStart(modelFilename,rsiFilename,suiteFilename) testerId = rsTesterStart(modelFilename,rsiFilename,suiteFilename,extraParameters) testerId = rsTesterStart(modelFilename,rsiFilename,suiteFilename,extraParameters, reportFilename) testerId = rsTesterStart(modelFilename,rsiFilename,suiteFilename,extraParameters, reportFilename,reportConfig) DescriptionThe invocation of rsTesterStart works exactly as that of rsTester, but instead of only returning after test suite creation completes, rsTesterStart returns immediately and test suite creation continues asynchronously. The return value testerId is a scalar integer valued double that can be used to communicate with the test generation process using other API functions:
Examples>> tid = rsTesterStart('cruise.slx','cruise.rsi'); >> rsTesterIsRunning(tid) ans = 1 >> rsTesterGetProgress(tid) ans = 20.4000 >> rsTesterGetStatus(tid) ans = Targeted phase See AlsorsTesterIsRunning, rsTesterGetProgress, rsTesterGetStatus, rsTesterGetSuite, rsTesterStop, rsTesterClose, rsTester, rsSuiteSave, rsSuiteClose, rsReportConfigrsTesterStopStop running asynchronous test suite creation. SyntaxrsTesterStop(testerId) Description
ExamplesrsTesterStop(tid); See AlsorsTesterStart, rsTesterIsRunning, rsTesterGetProgress rsTesterGetSuite, rsTesterClosersTesterCloseClose a Reactis Tester session. SyntaxrsTesterClose(testerId) Description
See AlsorsTesterStartrsTesterIsRunningTrue if test suite creation is still ongoing. Syntaxrunning = rsTesterIsRunning(testerId) Description
See AlsorsTesterStart, rsTesterGetStatus, rsTesterGetProgress rsTesterStop, rsTesterGetSuite, rsTesterClosersTesterGetNumStepsTakenGet test suite generation progress. SyntaxrsTesterGetNumStepsTaken(testerId) Description
See AlsorsTesterStart, rsTesterIsRunning, rsTesterGetStatus, rsTesterStop, rsTesterGetSuite, rsTesterClose, rsTesterGetProgressrsTesterGetProgressGet test suite generation progress. SyntaxpercentComplete = rsTesterGetProgress(testerId) Description
Examples>> tid = rsTesterStart('cruise.slx','cruise.rsi') tid = 1 >> rsTesterGetProgress(tid) ans = 20.4000 See AlsorsTesterStart, rsTesterIsRunning, rsTesterGetStatus rsTesterStop, rsTesterGetSuite, rsTesterClosersTesterGetStatusGet test suite generation status. Syntaxstatus = rsTesterGetStatus(testerId) Description
Examples>> tid = rsTesterStart('cruise.slx','cruise.rsi') tid = 1 >> status = rsTesterGetStatus(tid) status = Targeted phase See AlsorsTesterStart, rsTesterIsRunning, rsTesterGetProgress rsTesterStop, rsTesterGetSuite, rsTesterClosersTesterGetSuiteGet test suite after generation is finished. SyntaxsuiteId = rsTesterGetSuite(testerId) Description
See AlsorsTesterStart, rsTesterIsRunning, rsTesterGetStatus rsTesterStop, rsTesterGetSuite, rsTesterClose, rsSuiteClose, rsSuiteSave | ||||||||||||||||||||