在 appium server 啟動時,設定以下幾個參數:
- -p appium port
- -U device id
- -bp appium bootstrp port (device port)
第 2 個 Android 裝置的設置往上 +10,也就是 appium port = 4733, device port = 4735。
步驟:
1. 開啟 2 個 Android emulator
步驟:
1. 開啟 2 個 Android emulator
2. 啟動 2 個 appium server
> appium -p 4723 -bp 4725 -U 192.168.56.101:5555
> appium -p 4733 -bp 4735 -U 192.168.56.102:5555
> appium -p 4733 -bp 4735 -U 192.168.56.102:5555
3. 執行測試 (RobotFramework)
*** Settings *** Library AppiumLibrary *** Test Cases *** 00 test Open Application http://localhost:4723/wd/hub alias=Settings platformName=android platformVersion=5.0.0 deviceName=192.168.56.101:5555 appActivity=Settings ... appPackage=com.android.settings Open Application http://localhost:4733/wd/hub alias=Settings2 platformName=android platformVersion=4.4.4 deviceName=192.168.56.102:5555 appActivity=Settings ... appPackage=com.android.settings
沒有留言:
張貼留言