Package: matlab.uitest
Superclasses: matlab.unittest.TestCase
TestCase
to write tests with app testing framework
Use the matlab.uitest.TestCase
class to write tests that use the app testing framework. The matlab.uitest.TestCase
derives from the matlab.unittest.TestCase
class.
To avoid user interference with the app during testing, the framework locks new figure instances. The components of locked figures only respond to programmatic gestures via TestCase
methods such as press
and choose
.
The testing framework constructs the matlab.uitest.TestCase
instances.
choose | Perform choose gesture on UI component |
chooseContextMenu | Perform choose gesture on context menu item |
drag | Perform drag gesture on UI component |
forInteractiveUse | Create a TestCase object for interactive use |
hover | Perform hover gesture on UI component |
press | Perform press gesture on UI component |
type | Type in UI component |
addTeardown | Dynamically add teardown routine to TestCase instance |
applyFixture | Use fixture with TestCase |
forInteractiveUse | Create TestCase for interactive use |
getSharedTestFixtures | Provide access to shared test fixtures |
log | Record diagnostic information during test execution |
onFailure | Dynamically add diagnostics for test failures |
run | Run TestCase test |
Also, the TestCase
class inherits methods from these classes:
matlab.unittest.qualifications.Assertable | Qualification to validate preconditions of a test |
matlab.unittest.qualifications.Assumable | Qualification to filter test content |
matlab.unittest.qualifications.FatalAssertable | Qualification to abort test execution |
matlab.unittest.qualifications.Verifiable | Qualification to produce soft failure conditions |
Abstract | true |
HandleCompatibile | true |
For information on class attributes, see Class Attributes.
Handle. To learn how handle classes affect copy operations, see Copying Objects.