KTSync APP과 KDC 스캐너간 연결 테스트 자동화
아래의 스텝과 같이 UI Automation 동작을 수행함
- KDC 스캐너 연결
- 바코드 스캔 1회
- KDC 스캐너 연결 제해
- VirtualBox 홈페이지(https://www.virtualbox.org/wiki/Downloads )에 접속
- platform packages와 Extension Pack을 다운로드 & 설치
![enter image description here](https://camo.githubusercontent.com/b236082dfd1e9953ec6a7c551d2d3075e9c5141272fae819634efca3e0773c38/68747470733a2f2f692e696d6775722e636f6d2f794168535141432e6a7067)
- VirtualBox 이미지 다운로드
다운로드1 : https://drive.google.com/file/d/1vWRoxXmR4BBe5UkHwdXfV5b6wgxtRw9e/view?usp=sharing
다운로드2 : https://drive.google.com/file/d/1ctAurbVctcUSypXrMcTqLd0d2RCbIg8V/view?usp=sharing
- VirtualBox 실행
- 다운로드한 VM 추가
- 추가 클릭
![enter image description here](https://camo.githubusercontent.com/c6f1e5fa910de5ca92fa79308a34495e26f37187382cd21aaef66dcacf4591a1/68747470733a2f2f692e696d6775722e636f6d2f617833307443562e6a7067)
- 다운로드한 Appium.vbox 파일 선택
![enter image description here](https://camo.githubusercontent.com/f964051a76fe89177f4ad640592f9bd6acabe9c4795cc633f9861ad53d2ae141/68747470733a2f2f692e696d6775722e636f6d2f62477577425a672e6a7067)
- Host PC에 안드로이드 폰(삼성폰) 연결
- VM의 USB 설정
- 추가된 VM 클릭
- 설정 클릭
![enter image description here](https://camo.githubusercontent.com/74e61a6b32782ee8b6d01302febaf8df4298b26fb1cbc8ae660c0820292ffe50/68747470733a2f2f692e696d6775722e636f6d2f494164394274452e6a7067)
- USB 클릭
![enter image description here](https://camo.githubusercontent.com/99d4b33170c5484a0550ce29afb29856252b6b7c4e98e496b1453f93e5692a6d/68747470733a2f2f692e696d6775722e636f6d2f57436974576f702e6a7067)
- 설정창 오른쪽의 + 클릭
![enter image description here](https://camo.githubusercontent.com/a2e1cb83f72fbafbeca57d5776ea15e37b8d7a7ae6a6ad4db95ed4b76ce77d0a/68747470733a2f2f692e696d6775722e636f6d2f3743774638316e2e6a7067)
- 장치 목록에서 VM에 연결할 폰 선택
![enter image description here](https://camo.githubusercontent.com/e74aa2a2c8a2473f46277be60a26aaca7cde1346ec54fd70dca82513f3bac521/68747470733a2f2f692e696d6775722e636f6d2f4830564e5067512e6a7067)
- 설정 > 휴대전화 정보 > 소프트웨어 정보 > 빌드번호를 연타하여 개발자 모드 활성화
![enter image description here](https://camo.githubusercontent.com/eaedd9c209df828b5ef36a914cbeb1b7000fa2198314cf14bd63d374ca267add/68747470733a2f2f692e696d6775722e636f6d2f793431535074312e6a7067)
- USB 디버깅 활성화
![enter image description here](https://camo.githubusercontent.com/71473cbda45096ee45ff113e9bc2fab393a40c240bc322bc8819b7692315e401/68747470733a2f2f692e696d6775722e636f6d2f327a37596446732e6a7067)
- 화면 켜짐상태 유지 활성화
![enter image description here](https://camo.githubusercontent.com/6c08dc2eca1342780b5f1b8c3236a6a9982604766b0f953b3367522b657cf5af/68747470733a2f2f692e696d6775722e636f6d2f796931786572432e6a7067)
- VM 시작
- 바탕화면의 PyCharm 실행
- Get From VCS 선택
![enter image description here](https://camo.githubusercontent.com/3de1695dca205671ef6e07600da4db933b2dd1a6449ece1f6d35b47387867252/68747470733a2f2f692e696d6775722e636f6d2f71677a586351562e6a7067)
- Git 설치
![enter image description here](https://camo.githubusercontent.com/8590660db03ecd78d793b772a3bcfbb995aafc6f80ea432880a93d9c21d4f3c2/68747470733a2f2f692e696d6775722e636f6d2f37546b57436b792e6a7067)
- git 주소를 입력 후 clone
![enter image description here](https://camo.githubusercontent.com/9285f0aa7bcabaa600bc1cdcac92910b0542961791994c5863c7e2d645b9ef15/68747470733a2f2f692e696d6775722e636f6d2f6d5734306949462e6a7067)
- 스크립트 clone 완료된 모습
![enter image description here](https://camo.githubusercontent.com/05baa0c31334fd2b366e4750841d8121ff9db9207ffccf7c40a757326bf594f7/68747470733a2f2f692e696d6775722e636f6d2f4353734361424f2e6a7067)
- 스크립트 편집
- platformVersion, deviceName정보를Appium 실행할 폰에 맞게 편집
- CMD 실행 > adb devices 명령 실행
![enter image description here](https://camo.githubusercontent.com/da996c76e69edb4fbe90a62d686593f7c2a93c40501fb042a2a12f1901ccd1af/68747470733a2f2f692e696d6775722e636f6d2f3833595841544f2e6a7067)
- 폰의 USB 디버깅 권한을 허용(항상 허용 체크)
![enter image description here](https://camo.githubusercontent.com/6984cab8c4dfe1cba34347c0808a2ebee66e19a68e39516e2bcef3c568cf94d9/68747470733a2f2f692e696d6775722e636f6d2f376770594f52552e6a7067)
- 실행 결과 출력되는 장치 id를 스크립트 udid에 입력
![enter image description here](https://camo.githubusercontent.com/d6abe37343a801b071c144dffe812ee0ac0ce103b1e0aaf0b4c9d9c843e88efa/68747470733a2f2f692e696d6775722e636f6d2f466e596a356c302e6a7067)
- 테스트할 바코드의 데이터를 bar_da 변수에 선언
![enter image description here](https://camo.githubusercontent.com/96779b42ef9bb30065a04b260388c5b72306ab61d117079ac1788ab3b6c5bf8e/68747470733a2f2f692e696d6775722e636f6d2f556c51663676682e6a7067)
- Interpreter 선택
- Pycharm 우측 하단 No Interpreter 클릭
![enter image description here](https://camo.githubusercontent.com/c3aca3ab870b53121a30e214e8c65b492ab983159feca1b028a36735030f7db0/68747470733a2f2f692e696d6775722e636f6d2f4737456e6f79692e6a7067)
- Python 3.10 클릭
![enter image description here](https://camo.githubusercontent.com/606a7ac085b4bf29181d19c9923c3c4cf78e588e3e249fc1d5e8a5f4b3c5dbc8/68747470733a2f2f692e696d6775722e636f6d2f4f79456f4766652e6a7067)
- Run Configuration 설정
- Add Configuration 클릭
![enter image description here](https://camo.githubusercontent.com/3c5f4c994d94156b58134b828200ad61b93ba63b50bc9fd48ab5170deb39a981/68747470733a2f2f692e696d6775722e636f6d2f4e63726d4a77632e6a7067)
- ** Add New Configuration** 클릭
![enter image description here](https://camo.githubusercontent.com/e138a7a69fe2ba6bb201117fbb7f0da195faefb88b78527165d0a5432c8b20c3/68747470733a2f2f692e696d6775722e636f6d2f74346837365a352e6a7067)
- Python 클릭
![enter image description here](https://camo.githubusercontent.com/4cb5c0467fd65f44a8a0d6e01569386c0748631c3b51256b14b9a6e03201c4c6/68747470733a2f2f692e696d6775722e636f6d2f3063685835307a2e6a7067)
- Script Path > 폴더 클릭
![enter image description here](https://camo.githubusercontent.com/627e97b4a8e088ea2126590292b0463e304af71b3073211e1e81cead3ecc501e/68747470733a2f2f692e696d6775722e636f6d2f726769683947652e6a7067)
- main.py 선택 > OK 클릭
![enter image description here](https://camo.githubusercontent.com/3ec912059bca54507d63875930f5f01e519398eba6c2ed7c1c6b48a659e4f02d/68747470733a2f2f692e696d6775722e636f6d2f306b387246766d2e6a7067)
- OK클릭
![enter image description here](https://camo.githubusercontent.com/7902861696883dc3468663c3b8fc6940291c99097ed7f5f68017f41400419499/68747470733a2f2f692e696d6775722e636f6d2f3653653732724d2e6a7067)
- Appium Server GUI 실행
- Start Server 클릭
![enter image description here](https://camo.githubusercontent.com/b42502c75e7d8fd511bd535a831932c49b59c131fc9f1c487e9c9a395ce039bb/68747470733a2f2f692e696d6775722e636f6d2f475253523241382e6a7067)
- PyCharm > RUN 클릭
![enter image description here](https://camo.githubusercontent.com/bc0cbb5241e7d64be2aa6474bf1b459dbf496624ba011fe7c93713da5fb2c1db/68747470733a2f2f692e696d6775722e636f6d2f4d724c427842442e6a7067)