Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Jupyter Notebook
- appium server
- ftp
- insert
- ssh
- kitura
- openpyxl
- perfect
- postgresql
- PYTHON
- mysql
- 28015
- sshpass
- STF_PortForwarding
- port forwarding
- appium
- create table
- centos
- Materials
- rethinkdb
- postgres
- nmap
- nGrinder
- 실행권한
- ubuntu
- Jupyter
- STF
- SWIFT
- GoCD
- nohup
Archives
- Today
- Total
don't stop believing
WiFi를 이용한 디바이스 연결 (Android) 본문
Appium을 이용해 많은 디바이스에서 테스트하려면 모두 USB 케이블로 연결해야 되는데 Wi-Fi를 이용해 연결하는 방법을 설명하겠습니다.
먼저 Android 입니다. 연결하려는 디바이스와 PC(Mac)이 같은 Wi-Fi (네트워크)에 있는지 확인해야 합니다.
abd devices를 이용해 현제 USB로 연결되어 있는 Android Device를 확인합니다. 만약 2대의 Device를 Wi-Fi로 연결하려면 한대씩 USB에 연결 후 작업해야 합니다
123$ adb devicesList of devices attached03157df338d1b829 device
adb tcpip를 이용해 port를 등록합니다. 저는 5551부터 사용하겠습니다.
12$ adb tcpip 5551restarting in TCP mode port: 5551
만약 아래와 같은 에러가 나온다면 UBS에 한대만 연결되어 있는지 확인합니다.
error: more than one device/emulator
현재 UBS에 연결되어 있는 Device의 IP를 확인합니다. 그런다음 UBS 연결을 제거 합니다.
이제 adb connect를 이용해 연결해 봅시다. adb connect 다은 <IP>:<port>로 연결합니다.
123$ adb connect 192.168.20.7:5551connected to 192.168.20.7:5551
USB 연결이 제거된 상태에서 adb devices를 확인해 봅니다. Device name이 아닌 IP와 Port로 연결된걸 확인할 수 있습니다.
123$ adb devicesList of devices attached192.168.20.7:5551 device
이와같은 방법으로 Port를 변경해 추가로 Device를 연결할 수 있습니다.
Wi-Fi 연결 해재는 disconnect로 해줍니다.
12$ adb disconnect 192.168.20.7:5551disconnected 192.168.20.7:5551
iOS는 아쉽게도 아직 wifi를 이용해서는 연결이 안됩니다.
'Testing Automation > Appium' 카테고리의 다른 글
Appium Android Inspector 실행 (with Emulator) (5) | 2018.07.24 |
---|---|
Appium 서버 구성 (on Windows) (4) | 2018.07.22 |
Selenium Grid를 이용한 appium 멀티 실행 (3) | 2017.11.30 |
Appium Unity App Client 실행 (OpenCV) (0) | 2017.11.29 |
appium 좌표를 찍을 수 없는 부분 (1) | 2017.11.28 |