Appium-iOS Mac??????
???????????? ???????[ 2015/8/14 13:43:04 ] ??????????????????
????1. iOS???????????
????1.1?????
????MacOS X 10.7 or higher?? 10.9.2 recommended
????1.2 xcode???
????xcode6.0??Appium 1.3???? xcode5.0??Appium1.2??
????1.3 Apple Developer Tools (iPhone simulator SDK?? command line tools)
???????ios SDK??command line tools
????2. Node js???
????????1. ??http://nodejs.org/???Node js
????????2. homebrew install node.js
????????????????????
????Node -v ??????Node js ?汾??
????npm -v ???npm ?汾??
????3. Appium???
????1.???PATH????/usr/local/bin
????$PATH?????????? /usr/local/bin
????2.???
?????м???????? sudo npm install -g appium ???
????cd /usr/local
????sudo chown -Rf <??????>:staff /usr/local
????npm install -g appium
????npm install appium@?汾
????3. ???譎????????????′???
????npm ERR! fetch failed https://registry.npmjs.org/appium/-/appium-0.12.1.tgz
???????npm ?????npm config set registry http://registry.npmjs.org
?????????ù???????
????npm --registry http://registry.cnpmjs.org install -g appium
????npm --registry https://registry.npm.taobao.org install -g appium
????appium -v ????汾??????
????4. Webdriver ???
????npm install wd
????5. Appium???????
????sudo authorize_ios
????6. Appium???????
????node appium-doctor
????7. Appium??
????????Appium
????Appium-a 192.168.9.63 -p 4723
??????????????????Grid hub ???????п???hub??????????hub
????????grid hub??????--nodeconfig /abs/path/to/nodeconfig.json
?????????????????????????£?
????https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/server-args.md
nodeConfig.json
{
"capabilities":
[
{
"browserName": "Safari(or iPhone...)"??
"version":"7.1"??
"maxInstances": 1??
"platform":"Mac"??
"platformName":"iOS"??
"platformVersion":"7.1"
}
]??
"configuration":
{
"cleanUpCycle":2000??
"timeout":30000??
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy"??
"url":"http://192.168.9.63:4723/wd/hub"??
"maxSession": 1??
"port": 4723??
"host": "192.168.9.63"??
"register": true??
"registerCycle": 5000??
"hubPort": 4444??
"hubHost": "192.168.9.60"
}
}
?????????????
???????????????????????http://192.168.9.63:4723/
???????That URL did not map to a valid JSONWP resource
?????????????
????????grid hub ?????hub ????? ??? 192.168.9.60:4444/grid/console/
??????ios Appium?????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11