La traducción de esta página está obsoleta. Haga clic aquí para ver la última versión en inglés.
Marco de pruebas para apps
Es posible usar el marco de prueba de aplicaciones de MATLAB® para probar aplicaciones de App Designer, o aplicaciones creadas de forma programática mediante el uso de la función uifigure
. El marco de pruebas para apps le permite crear una clase de prueba que realiza un gesto de forma programática en un componente de la IU, como presionar un botón o arrastrar un control deslizante, y verifica el comportamiento de la aplicación.
Para comenzar, consulte Overview of App Testing Framework.
Funciones
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 |
hover | Perform hover gesture on UI component |
chooseContextMenu | Perform choose gesture on context menu item |
dismissAlertDialog | Close frontmost alert dialog box in figure window |
matlab.uitest.unlock | Unlock figure locked by app testing framework |
matlab.uitest.TestCase.forInteractiveUse | Create a TestCase object for interactive use |
Clases
matlab.uitest.TestCase |
TestCase to write tests with app testing framework |
Temas
- 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 Tests for an App
This example shows how to test an app programmatically and qualify the results.
- Write Tests That Use App Testing and Mocking Frameworks
This example shows how to write tests that use the app testing framework and the mocking framework.