Test your app  

您所在的位置:网站首页 手机app测试项目 Test your app  

Test your app  

2024-07-10 11:44| 来源: 网络整理| 查看: 265

Test in Android Studio

For basic testing needs, Android Studio includes features that help you create, run, and view results of tests all from the IDE. Using Android Studio, you can point and click in the app source code to create and run tests for specific classes or methods, use menus to configure multiple test devices, and interact with the Test Matrix tool window to visualize test results. For more information on how to use Android Studio to create and manage your tests, see Test in Android Studio.

Run tests from the command line

For more fine-grained control, you can run tests from the command line. Command-line testing provides a straightforward way to target modules or build variants individually or in combinations. Running tests through the Android Debug Bridge (adb) shell allows for the most customization in terms of which tests you want to run.

Running tests from the command line is also useful on a continuous integration system.

For more information, see Test from the command line.

Advanced testing

For advanced testing needs, you may want to override default settings, configure Gradle options, or refactor your code so that tests are separated in their own module. For more information about how to set up your test configurations for special use cases, see Advanced test setup.

To test how your app behaves when your user interacts with it, you can use tools such as Espresso Test Recorder, App Crawler, UI Automator, or Monkey testing.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3