목록테스트 자동화/Appium (6)
ITGeine
https://testautomationu.applitools.com/appium-visual-testing/ Automated Visual Testing with Appium testautomationu.applitools.com setup assumptions - Node.js & NPM - Appium CLI install - Appium Android Dependencies (Android SDK, Android studio, emulators, etc) - Appium * 선택사항 - opencv install npm i -g opencv4nodejs brew install opencv@3 OPENCV4NODEJS_DISABLE_AUTOBUILD=1 npm i -g opencv4nodejs 자동..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/3BOwY/btrDe88Jjkq/NkIrWhIuPoomJ73Moexn50/img.png)
appium inspector 에서 Start session 시 오류 발생 appium guide : https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md#commyactivity-or-commyappcommyactivity-never-started inspector 세션 시작 전 capabilities 에 appWaitActivity 를 지정해주면 에러가 해결된다. adb shell dumpsys window windows 를 통해 현재 띄워진 activity 명을 직접 지정할 수도 있고, 와일드카드 (*) 로도 지정 가능하다.
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/wHHV8/btrCOqVSS6T/jvSuw9f0ptrb4keEYFsQm1/img.png)
Chapter 2.1: Finding Elements appium inspector 를 사용하는데, 기본적으로 설치가 되어있지 않아 따로 설치해주었다. 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 ..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/rU2z4/btrCPIP33iP/xtKF600lFM2uQaWiQjPlkk/img.png)
Chapter 1.5 에서는 capabilities 에 대한 설명을 진행한다. > Appium 페이지 https://appium.io/docs/en/writing-running-appium/caps/ Desired Capabilities - Appium From here you can search these documents. Enter your search terms below. appium.io package.json 에 테스트 스크립트 직접 지정하면 아래 명령어로 테스트 수행가능 npm test 테스트로 돌릴 앱 경로 수정 - path 모듈, 프로젝트 내 파일 사용 let {join} = require('path'); 'appium:app' : join(process.cwd(),'./ApiDemos..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/8yVgl/btrCQ7H2mYB/L5ItBGr0FRemdiq4VmHyb1/img.png)
[0-0] 2022-05-23T04:43:05.622Z ERROR webdriver: unknown error: An unknown server-side error occurred while processing the command. Original error: No Chromedriver found that can automate Chrome '83.0.4103'. You could also try to enable automated chromedrivers download server feature. See https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/web/chromedriver.md for more deta..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/XC94f/btrCHPAfNDm/L8WVHLI9BQnDyhXghdHciK/img.png)
TAU 강의 - Appium 자바 스크립트 강의를 들으면서 메모하려고 한다. Chapter 1.4 : Project Setup 해당 수업에서는 간단한 웹 테스트 프로젝트 생성 - 테스트 돌리는 시나리오까지 진행한다. 참고로 Chatper 1.1 ~ 1.3 으로는 사전에 필요한 환경 세팅 방법을 기술하고 있다. > node.js, jdk, android sdk, android studio 등 1. mkdir 로 workspace 생성 2. npm init -y { "name": "testapp", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && ..