1 / 4

UI testing Android apps

UI testing Android apps. Using the Espresso testing framework. Unit testing vs UI testing. Unit testing. UI testing. Tests an application Or a part of an application Black box The tester does not need access to the source code How

gsilva
Download Presentation

UI testing Android apps

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. UI testing Android apps Using the Espresso testing framework UI testing Android apps

  2. Unit testing vs UI testing Unit testing UI testing Tests an application Or a part of an application Black box The tester does not needaccess to the source code How Interacts with the UI and make assertions about the state of the UI • Tests a single unit (class) • Usually the methods of a single class • White box • The tester has access to the source code • How • Calls the methods and makeassertationsabout the result UI testing Android apps

  3. Espresso testing framework • Manyframeworks to do UI testing and Android apps • Espresso is a popular framework • https://developer.android.com/training/testing/espresso/ • Example: CollectWords + uitesting (intents) • Test cases canbe • Programmed or • Recorded from userinteraction • Run -> Record Espresso Test • https://developer.android.com/studio/test/espresso-test-recorder • Execution • The test is executed on a device or emulator UI testing Android apps

  4. Gradle Stuff + Test UI testing Android apps

More Related