Appium(http://appium.io)
Node.js를 사용한 전역 설치
npm으로 appium 설치하기
https://bitbucket.org/appium/appium.app/downloads/
appium / Appium.app / Downloads — Bitbucket
bitbucket.org
ㅇ JAVA 버전 확인
ㅇ JAVA_HOME 설정
1. sudo vim ~/.bash_profile
2. pw 입력
3. vim 모드 상태에서 i (insert) 입력후, 아래 내용 추가, 기존 PATH는 주석처리(#)
4. esc 클릭하고 :wq! 저장종료
5. source 로 적용되어있는지 확인하고,
6. echo 로 출력하기
ㅇ ANDROID_HOME 설정
1. Android Studio 설치
2. Android Sdk 파일 설치 위치 확인
- Android Studio 실행
- Configure > Default Project Structure
3. 폴더 위치 복사
4. sudo vim ~/.bash_profile에 위의 ANDROID_HOME 경로 추가
5. source 로 적용하고
6. 제대로 적용되었는지 echo 로 확인
XCode 설치
1. XCode 설치후, Simulator 잘 실행되는지 확인
(임의로 Appium 이라는 명칭으로 프로젝트 생성하고, 상단위에 시뮬레이터로 실행해봄)
프로그램 추가 설치 (terminal) 에서
npm install wd
appium &
appium 환경구성 확인하기 위해 doctor 다운로드
npm install -g appium-doctor
doctor로 체크
appium-doctor
Error running xcrun simctl 에러가 발생했다..
구글링해보니, XCode > Preferences > Loacation 에서 설정 변경
Command Line Tools 설정
다시 appium-doctor 수행하기
Carthage was NOT found! 에러가 발생했다.
구글링 해보니, carthage 라는것을 설치해주면 된다고 한다.
brew install carthage
==============
#20200711
>> 한달만에 appium 환경설정 재도전..
>> terminal 실행해서 appium-doctor 로 체크 해주면서 계속 미설치파일들을 설치했다.
오류 |
info AppiumDoctor ### Diagnostic for optional dependencies starting ### WARN AppiumDoctor ✖ opencv4nodejs cannot be found. WARN AppiumDoctor ✖ ffmpeg cannot be found WARN AppiumDoctor ✖ mjpeg-consumer cannot be found. WARN AppiumDoctor ✖ set-simulator-location is not installed WARN AppiumDoctor ✖ idb and idb_companion are not installed WARN AppiumDoctor ✖ applesimutils cannot be found WARN AppiumDoctor ✖ ios-deploy cannot be found WARN AppiumDoctor ✖ bundletool.jar cannot be found WARN AppiumDoctor ✖ gst-launch-1.0 and/or gst-inspect-1.0 cannot be found info AppiumDoctor ### Diagnostic for optional dependencies completed, 9 fixes possible. ### info AppiumDoctor info AppiumDoctor ### Optional Manual Fixes ### info AppiumDoctor The configuration can install optionally. Please do the following manually: WARN AppiumDoctor ➜ Why opencv4nodejs is needed and how to install it: https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/image-comparison.md WARN AppiumDoctor ➜ ffmpeg is needed to record screen features. Please read https://www.ffmpeg.org/ to install it WARN AppiumDoctor ➜ mjpeg-consumer module is required to use MJPEG-over-HTTP features. Please install it with 'npm i -g mjpeg-consumer'. WARN AppiumDoctor ➜ set-simulator-location is needed to set location for Simulator. Please read https://github.com/lyft/set-simulator-location to install it WARN AppiumDoctor ➜ Why idb is needed and how to install it: https://github.com/appium/appium-idb WARN AppiumDoctor ➜ Why applesimutils is needed and how to install it: http://appium.io/docs/en/drivers/ios-xcuitest/ WARN AppiumDoctor ➜ ios-deploy is used as a fallback command to install iOS applications to real device. Please read https://github.com/ios-control/ios-deploy/ to install it WARN AppiumDoctor ➜ bundletool.jar is used to handle Android App Bundle. Please read http://appium.io/docs/en/writing-running-appium/android/android-appbundle/ to install it WARN AppiumDoctor ➜ gst-launch-1.0 and gst-inspect-1.0 are used to stream the screen of the device under test. Please read https://appium.io/docs/en/writing-running-appium/android/android-screen-streaming/ to install them and for more details info AppiumDoctor info AppiumDoctor ### info AppiumDoctor info AppiumDoctor Bye! Run appium-doctor again when all manual fixes have been applied! info AppiumDoctor |
번역 |
info AppiumDoctor ### ###로 시작하는 선택적 종속성 진단 WARN AppiumDoctor ✖ opencv4nodejs를 찾을 수 없습니다. 경고 AppiumDoctor ✖ ffmpeg를 찾을 수 없습니다 경고 AppiumDoctor ✖ mjpeg- 소비자를 찾을 수 없습니다. WARN AppiumDoctor ✖ set-simulator-location이 설치되지 않았습니다 WARN AppiumDoctor ✖ idb 및 idb_companion이 설치되지 않았습니다 경고 AppiumDoctor ✖ applesimutils를 찾을 수 없습니다 경고 AppiumDoctor ✖ ios-deploy를 찾을 수 없습니다 WARN AppiumDoctor ✖ bundletool.jar을 찾을 수 없습니다 경고 AppiumDoctor ✖ gst-launch-1.0 및 / 또는 gst-inspect-1.0을 찾을 수 없습니다 info AppiumDoctor ### 선택적 종속성 진단이 완료되었으며 9 개의 수정이 가능합니다. ### 정보 AppiumDoctor 정보 AppiumDoctor ### 선택적 수동 수정 사항 ### info AppiumDoctor 구성은 선택적으로 설치할 수 있습니다. 다음을 수동으로 수행하십시오. WARN AppiumDoctor open opencv4nodejs가 필요한 이유 및 설치 방법 : https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/image-comparison.md 경고 화면 기능을 기록하려면 AppiumDoctor ➜ ffmpeg가 필요합니다. 설치하려면 https://www.ffmpeg.org/를 읽으십시오 MJPEG-over-HTTP 기능을 사용하려면 WARN AppiumDoctor ➜ mjpeg- 소비자 모듈이 필요합니다. 'npm i -g mjpeg-consumer'로 설치하십시오. 시뮬레이터의 위치를 설정하려면 WARN AppiumDoctor ➜ set-simulator-location이 필요합니다. 설치하려면 https://github.com/lyft/set-simulator-location을 참조하십시오 WARN AppiumDoctor ➜ idb가 필요한 이유 및 설치 방법 : https://github.com/appium/appium-idb WARN AppiumDoctor apple applesimutils가 필요한 이유 및 설치 방법 : http://appium.io/docs/en/drivers/ios-xcuitest/ WARN AppiumDoctor io ios-deploy는 iOS 응용 프로그램을 실제 장치에 설치하기위한 대체 명령으로 사용됩니다. https://github.com/ios-control/ios-deploy/를 읽고 설치하십시오 WARtool AppiumDoctor ➜ bundletool.jar은 Android 앱 번들을 처리하는 데 사용됩니다. http://appium.io/docs/en/writing-running-appium/android/android-appbundle/를 읽고 설치하십시오 WARN AppiumDoctor ➜ gst-launch-1.0 및 gst-inspect-1.0은 테스트중인 장치의 화면을 스트리밍하는 데 사용됩니다. https://appium.io/docs/en/writing-running-appium/android/android-screen-streaming/을 읽고 설치 및 자세한 내용을 참조하십시오 정보 AppiumDoctor 정보 AppiumDoctor ### 정보 AppiumDoctor 정보 AppiumDoctor 안녕! 모든 수동 수정 사항이 적용되면 appium-doctor를 다시 실행하십시오! 정보 AppiumDoctor |
대부분 위 링크대로 참조해서 따라하면 되지만..
bundletool.jar cannot be found 요 에러는 실행하기 너무 힘들어서 아래 블로그 참조해서 간신히 설치
https://juancid.com/2019/10/22/appium-error-bundletool-jar-cannot-be-found/
드디어 설치 완성
'IT' 카테고리의 다른 글
[EAI] vs [ESB] (0) | 2023.06.03 |
---|---|
[Nginx] (0) | 2023.06.02 |
[Solr] (0) | 2023.06.02 |
AI 체험 (0) | 2021.02.04 |