Probar 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 |
scroll | Perform scroll gesture on UI component (Desde R2024a) |
type | Type in UI component |
hover | Perform hover gesture on UI component |
chooseContextMenu | Perform choose gesture on context menu item |
chooseDialog | Select option in frontmost dialog box in figure window (Desde R2024b) |
dismissDialog | Dismiss frontmost dialog box in figure window (Desde R2024b) |
matlab.uitest.unlock | Unlock figure locked by app testing framework |
matlab.uitest.TestCase.forInteractiveUse | Create test case for interactive use |
Clases
matlab.uitest.TestCase | Class for writing 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
uifigurefunction. - Write Tests for an App
Test an app programmatically by using the app testing framework and the unit testing framework.
- Write Tests That Use App Testing and Mocking Frameworks
Create fully automated tests for an app by using the app testing framework and the mocking framework.