테스트 자동화

4. Appium Inspector 연결

cwchoiit 2024. 4. 17. 11:51
728x90
반응형
SMALL

이제 Appium Inspector를 사용해서 UI 테스트를 하고자하는 App과 연결해보자.

 

UiAutomator2 Driver 설치

실행 하기전 "UiAutomator2" Driver를 설치해야 한다.

appium driver install uiautomator2

성공적으로 설치가 되면 다음과 같은 화면이 나오면 된다.

Appim Server 실행

이제 appium을 실행한다.

appium

이러한 화면이 나오면 성공!

Appium Inspector 실행

이제 Appium Inspector를 실행한다.

 

  • Remote Host: 0.0.0.0
  • Remote Port: 4723
  • Remote Path: /
  • Capability Builder
    • appium:udid: 연결할 Device udid
    • platformName: Android
    • appium:automationName: UiAutomator2
    • appium:skipUnlock: false
    • appium:autoGrantPermissions: true

여기서 Capability Builder 옵션은 그때그때 다를 수 있다. 나는 이렇게 해도 무방하기에 이렇게 설정했다.

이 옵션들이 어떤 내용인지 더 자세히 알고 싶다면 다음 링크를 참조하자.

 

GitHub - appium/appium-uiautomator2-driver: Appium driver for Android UIAutomator2

Appium driver for Android UIAutomator2. Contribute to appium/appium-uiautomator2-driver development by creating an account on GitHub.

github.com

 

우측 하단 Start Session 버튼을 클릭하면 연결된다.

이렇게 내가 연결한 Device의 화면을 캡쳐해서 각 요소들에 대한 정보들을 뽑아낼 수 있다.

 

728x90
반응형
LIST

'테스트 자동화' 카테고리의 다른 글

6. Appium과 Cucumber를 이용해 UI Automation Testing  (0) 2024.04.17
5. 프로젝트 환경 설정  (2) 2024.04.17
3. APK 설치  (0) 2024.04.17
2. Appium  (0) 2024.04.17
1. BDD, Gherkin, Cucumber  (0) 2024.04.17