Create or modify test file
files that can contain test suites and test cases.
obj = sltest.testmanager.TestFile(
sltest.testmanager.TestFile object with a default
test suite and test case as children of the test file. The default
test case type is a baseline test case. If the test file exists in
the Test Manager, then a new test file is not created.
filePath— File name and path
The file name and path of the test file, specified as a character vector. The specified file name determines the name of the test file as seen in the Test Manager.
mode— Override existing test files
Indicate if you want to override a test file with the same
file name and path, specified as either
Description— Test file description
Test file description text, specified as a character vector.
Dirty— Unsaved changes indicator
Indicates if the test file has unsaved changes,
no unsaved changes, and
1 if there are
Enabled— Test file execution indicator
Indicates if test cases that are children of the test file will
execute, specified as a logical value
FilePath— File path and name
File path and name of the test file, returned as a character vector.
Name— Test file name
Name of the test file without the file path and file extension, returned as a character vector.
Releases— Releases available for testing
This property is read-only.
Releases available for testing, returned as a string array. Add releases using
ReasonForDisabling— Disabled description
Description text for why the test file was disabled, specified
as a character vector. This property is visible only when the
is set to
Requirements— Test file requirements
The requirements that are attached at the test-file level, returned as a structure.
|close||Close test file in Test Manager|
|convertTestType||Convert test from one type to another|
|createTestForSubsystem||Create test case for subsystem|
|createTestSuite||Create new test suite|
|getCoverageSettings||Get coverage settings|
|getOptions||Get and set test file options|
|getProperty||Get test file property|
|getTestSuiteByName||Get test suite object by name|
|getTestSuites||Get test suites at first level of test file|
|run||Run test cases in test file|
|saveToFile||Save test file|
|setProperty||Set test file property|
Create a new test file and return the test file object.
testfile = sltest.testmanager.TestFile('C:\MATLAB\test_file.mldatx')
testfile = TestFile with properties: Name: 'test_file' FilePath: 'C:\MATLAB\test_file.mldatx' Dirty: 1 Requirements: [0x1 struct] Description: '' Enabled: 1