본문

180426(목) - Automate UI tests

Automate UI tests

- UI testing은 app이 functional requirements and user가 성공적으로 adopted achieves high standard quality를 하고 있는지 확인 가능하다.

- simply하게 human tester가 test를 수행하는 방법이 있지만, time-consuming, tedious and error-prone하다.

- 효율적인 방식은 user action이 automated way한 방법으로 UI test를 작성하는 것이다.

- automated approch를 사용하면 more quickly and reliably, repeatable 하게 test 수행 가능


- Android studio에 의해서 test folder가 자동으로 만들어지고, 여기에 automate UI test를 작성

- Android Plug-in for Gradle build test app based on test code

- test app을 target app과 같은 device에 load

- simulate user interactions를 test하기 위해서 specific usage scenarios를 testing 가능하다.


- Android app을 test하기 위해서 보통 아래와 같은 automated UI test를 작성한다.

1. UI tests span a single app

- user가 specific action or enter specific input activity일 때, app behaves가 예상대로 동작하는지 verifies

- 이 작업으로 target app이 correct UI response return인지 확인 가능

- Espresso를 사용하면 programmatically simulate user action and test complex intra-app user interactions가 가능하다.


2. UI tests span multiple apps

- 서로 다른 user app or user app과 system app 사이의 correct behavior 확인 가능

- UI Auotomator를 사용하면 cross-app interactions를 support가능하다. 


Android Testing Support Library 

Downloading the Android Testing Support Library.

공유

댓글