[논문 리뷰] Chatting with GPT-3 for Zero-Shot Human-Like Mobile Automated GUI Testing
GPTDroid는 모바일 GUI 테스트를 Q&A 태스크로 다루며, GUI 설명으로부터 테스트 스크립트를 생성하기 위해 GPT-3를 사용한 다음 이를 디코딩하고 실행한다. 이로써 Google Play 앱에서 baselines보다 더 높은 커버리지와 버그 탐지를 달성한다.
Mobile apps are indispensable for people's daily life, and automated GUI (Graphical User Interface) testing is widely used for app quality assurance. There is a growing interest in using learning-based techniques for automated GUI testing which aims at generating human-like actions and interactions. However, the limitations such as low testing coverage, weak generalization, and heavy reliance on training data, make an urgent need for a more effective approach to generate human-like actions to thoroughly test mobile apps. Inspired by the success of the Large Language Model (LLM), e.g., GPT-3 and ChatGPT, in natural language understanding and question answering, we formulate the mobile GUI testing problem as a Q&A task. We propose GPTDroid, asking LLM to chat with the mobile apps by passing the GUI page information to LLM to elicit testing scripts, and executing them to keep passing the app feedback to LLM, iterating the whole process. Within it, we extract the static context of the GUI page and the dynamic context of the iterative testing process, design prompts for inputting this information to LLM, and develop a neural matching network to decode the LLM's output into actionable steps to execute the app. We evaluate GPTDroid on 86 apps from Google Play, and its activity coverage is 71%, with 32% higher than the best baseline, and can detect 36% more bugs with faster speed than the best baseline. GPTDroid also detects 48 new bugs on the Google Play with 25 of them being confirmed/fixed. We further summarize the capabilities of GPTDroid behind the superior performance, including semantic text input, compound action, long meaningful test trace, and test case prioritization.
연구 동기 및 목표
- 대규모 언어 모델(LLM)을 사용하여 자동화된 모바일 GUI 테스트를 Q&A 문제로 공식화한다.
- 정적 및 동적 컨텍스트 추출을 통해 LLM에 GUI 페이지를 의미적으로 설명한다.
- 신경 매칭 네트워크를 사용하여 LLM 출력물을 실행 가능한 GUI 작업으로 디코딩한다.
- 실세계 Android 앱에서 GPTDroid를 평가하여 커버리지와 버그 탐지을 평가한다.
- 의미적 입력과 테스트 트레이스 품질을 포함하여 LLM 주도 테스트의 효과성에 대한 원인에 대한 통찰을 제공한다.
제안 방법
- AndroidManifest 및 뷰 계층 파일에서 정적 컨텍스트(앱 정보, 현재 GUI 페이지, 위젯)를 추출한다.
- 연산자 메모라이저를 통해 동적 컨텍스트(반복적 테스트 진행)를 추출한다.
- 정적 및 동적 컨텍스트를 사용하여 LLM 입력용 언어 프롬프트 패턴을 설계하고 프롬트를 생성한다.
- LLM이 보고한 단계들을 실행 가능한 GUI 위젯으로 매핑하기 위해 신경 매칭 네트워크를 사용한다.
- 포지티브/네거티브 예제로 신경 매처를 초기화하기 위해 휴리스틱 기반 학습 데이터 생성을 활용한다.
- UIAutomator 및 ADB를 사용하여 Android-x86에 GPTDroid를 구현하고, LLM으로 GPT-3를 사용하며 디코딩 및 매칭에 PyTorch 기반 구성요소를 사용한다.

실험 결과
연구 질문
- RQ1GPTDroid가 GUI 테스트 활동 커버리지를 증가시키는 데 얼마나 효과적인가?
- RQ2GPTDroid가 더 많은 버그를 탐지하고 베이스라인 GUI 테스트 도구보다 더 빠르게 탐지할 수 있는가?
- RQ3신경 매칭 네트워크가 LLM 프롬프트를 유효한 GUI 동작으로 얼마나 잘 변환하는가?
- RQ4이 설정에서 LLM 주도 GUI 테스트의 성공을 설명하는 요인은 무엇인가?
주요 결과
- GPTDroid는 71% 활동 커버리지를 달성했으며, 이는 최상의 베이스라인보다 32% 더 높다.
- GPTDroid는 최고의 베이스라인보다 더 빠른 속도로 36% 더 많은 버그를 탐지한다.
- GPTDroid는 Google Play에서 48개의 새로운 크래시 버그를 탐지했으며, 개발자에 의해 25건이 확인/수정되었다.
- 평가에는 86개의 앱과 129개의 버그가 사용되었으며, 9개의 베이스라인과 비교하였다.
- 정성적 분석은 성능 뒤의 요인으로 의미적 텍스트 입력, 복합 동작, 긴 테스트 트레이스, 테스트 케이스 우선순위를 식별한다.

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.