Appium setup

2022. 1. 24. 00:17Test Automation/Mobile Automation

Introduction

Appium은 가장 많이 쓰이는 Mobile Test Automation Framework 중 하나입니다. 

 

우선은 간단히 Appium 자동화 셋업 부터 실제 코드에서 어떻게 작동하는 지 까지 깃헙 코드 링크를 첨부해서 기록을 남겨보려고 합니다. 

 

저도 공부하는 단계라서, 모르는 부분이 너무나 많습니다. 피드백은 언제나 환영이며, 수정할 부분은 최대한 빨리 수정하도록 해보겠습니다. 


How to Install Appium

우선, Appium은 두 가지 방법으로 인스톨 할 수있는데요. 첫번째는 npm 통해서, 두번째는 appium desktop을 인스톨하는 방식입니다. 

 

터미널 윈도우에 아래 코드를 run 해주세요.

npm install -g appium
저는 개인적으로 npm으로 인스톨하시는 걸 추천드려요. 

Appium 1.x 버전에서는 appium desktop으로 1. 서버를 동작시키고, 2. UI element 찾는 기능을 모두 지원했습니다. 
2.x 버전 부터  Appium Inspector를 이용해야만 UI element를 찾을 수가 있어서, Appium desktop은 쓸 일이 없습니다. 
Appium Inspector 인스톨 방법은 아래에 설명해 드리겠습니다.

 

 

Appium 시작하기

터미널에서 'Appium'을 입력하고 Run 해주시면 됩니다.

Appium

 

Appium이 정상적으로 인스톨 되었다면, 아래처럼 Appium 서버가 작동을 시작하게됩니다. 

Run Appium in terminal

 

 

Appium Official Page: https://appium.io/

 

Appium: Mobile App Automation Made Awesome.

Appium Philosophy Appium is built on the idea that testing native apps shouldn't require including an SDK or recompiling your app. And that you should be able to use your preferred test practices, frameworks, and tools. Appium is an open source project and

appium.io

Getting Started Document: https://appium.io/docs/en/about-appium/getting-started/?lang=en 

 

Getting Started - Appium

From here you can search these documents. Enter your search terms below.

appium.io

Appium Inspector Install: https://github.com/appium/appium-inspector

 

GitHub - appium/appium-inspector: A GUI inspector for mobile apps and more, powered by a (separately installed) Appium server

A GUI inspector for mobile apps and more, powered by a (separately installed) Appium server - GitHub - appium/appium-inspector: A GUI inspector for mobile apps and more, powered by a (separately in...

github.com