matlab.uitest.TestCase class
Package: matlab.uitest
Superclasses: matlab.unittest.TestCase
TestCase
to write tests with app testing framework
Description
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
.
Construction
The testing framework constructs the matlab.uitest.TestCase
instances.
Methods
choose | Perform choose gesture on UI component |
chooseContextMenu | Perform choose gesture on context menu item |
dismissAlertDialog | Close frontmost alert dialog box in figure window |
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 |
Inherited Methods
addTeardown | Dynamically add teardown routine to TestCase instance |
applyFixture | Use fixture with TestCase |
createTemporaryFolder | Create temporary folder |
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:
Attributes
Abstract | true |
HandleCompatibile | true |
For information on class attributes, see Class Attributes.
Copy Semantics
Handle. To learn how handle classes affect copy operations, see Copying Objects.