This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

App Testing Framework

Write automated tests for App Designer apps

You can use the MATLAB® app testing framework to test App Designer apps, or apps built programmatically using the uifigure function. The app testing framework lets you author a test class that programmatically performs a gesture on a UI component, such as pressing a button or dragging a slider, and verifies the behavior of the app.

To get started, see Overview of App Testing Framework.

Functions

pressPerform press gesture on UI component
choosePerform choose gesture on UI component
dragPerform drag gesture on UI component
typeType in UI component
hoverPerform hover gesture on UI component
matlab.uitest.unlockUnlock figure locked by app testing framework
matlab.uitest.TestCase.forInteractiveUseCreate a TestCase object for interactive use

Classes

matlab.uitest.TestCase TestCase to write tests with app testing framework

Topics

Overview of App Testing Framework

Use the app testing framework to write tests for App Designer apps, or apps built programmatically using the uifigure function.

Write Test for App

This example shows how to test an app programmatically and qualify the results.

Write Test That Uses App Testing and Mocking Frameworks

This example shows how to write a test that uses the app testing framework and the mocking framework.