Documentation

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 theuifigurefunction. 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, seeOverview of App Testing Framework.

Functions

press Perform press gesture on UI component
choose Perform choose gesture on UI component
drag Perform drag gesture on UI component
type Type in UI component
matlab.uitest.unlock Unlock figure locked by app testing framework
matlab.uitest.TestCase.forInteractiveUse Create 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 theuifigurefunction.

Write Test for App

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

编写测试,使用应用程序测试和模拟框架works

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

Related Information

Was this topic helpful?