atxserver2是根據開源的雲測平台openstf,通過python重寫的一套平台
了解openstf可通過github查看安裝和使用說明
github地址:https://github.com/openstf/stf
atxserver2部署:
docker部署方式:
1.git clone https://github.com/openatx/atxserver2.git 將代碼克隆到本地
2.cd到項目目錄下
3.docker-compose up
手動部署方式:
一.rethinkdb
安裝:
rethinkdb官網安裝教程:https://rethinkdb.com/docs/install/
不使用docker安裝,使用手動安裝,如mac下安裝,直接敲brew update && brew install rethinkdb
啟動:
rethinkdb
二.atxserver2
python>=3.6
安裝:
1.git clone https://github.com/openatx/atxserver2.git 將代碼克隆到本地
2.cd到項目目錄下
3.安裝所需依賴包
pip3 install -r requirements.txt
啟動:
python3 main.py
啟動之后,打開瀏覽器http://localhost:4000
暫時還沒有設備連進來
三.安卓設備接入
python>=3.6
nodejs=8(必須)
附:node版本切換:https://blog.csdn.net/weixin_38173313/article/details/108006258
安裝:
1.git clone https://github.com/openatx/atxserver2-android-provider.git 將代碼克隆到本地
2.cd atxserver2-android-provider
3.npm install
4.pip3 install -r requirements.txt
啟動:
python3 main.py --server localhost:4000
四.IOS設備接入(只能在蘋果系統上安裝,需要先有xcode)
python>=3.6
WebDriverAgent(appium)
nodejs=8(必須)
1.安裝libimobiledevice工具包
brew uninstall --ignore-dependencies libimobiledevice
brew uninstall --ignore-dependencies usbmuxd
brew install --HEAD usbmuxd
brew unlink usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller
brew link --overwrite ideviceinstaller
2.git clone https://github.com/openatx/atxserver2-ios-provider.git 將代碼克隆到本地
3.cd atxserver2-ios-provider
4.pip3 install -r requirements.txt
5.npm install
6.brew install carthage
7.git clone https://github.com/appium/WebDriverAgent Appium-WebDriverAgent
8.cd Appium-WebDriverAgent && ./Scripts/bootstrap.sh
9.open WebDriverAgent.xcodeproj
10.xcode打開項目后,通過https://testerhome.com/topics/7220配置
11.sudo xcode-select -s /Application/Xcode.app/Contents/Developer
12.security unlock-keychain ~/Library/Keychains/login.keychain
13.SERVER_URL="http://localhost:4000"
14.WDA_DIRECTORY="./Appium-WebDriverAgent"#WDA項目地址,直接用絕對路徑也行,但一定要保證正確
啟動:
python3 main.py -s $SERVER_URL -W $WDA_DIRECTORY
安卓和IOS設備就都出來了
點擊使用