Mac?°????????Appium????
???????????? ???????[ 2015/6/17 14:03:02 ] ??????????????????
????????С???????о?appium?ü??????
??????????????????????????Mac?μ??????http://www.cnblogs.com/tangdongchu/p/4432808.html
?????????????????ж??????npm install?????????????????appium??dmg????????appium.app??????????????????????????????????е???appium??????????????????????а?appium????????
????????????????????????????????????
????> brew install node # get node.js
????> npm install -g appium # get appium
????> npm install wd # get appium client
????> appium & # start appium
????> node your-appium-test.js
???????????????????????????????п????????????????
????brew install node ?????Ч???????????homebrew???У????????????????????????????homebrew
???????????????brew -v ???????汾??????????????
????~ brew -v
????Homebrew 0.9.5
?????????????brew install node ?????node.js ????????????????node -v???????????????????汾????????????
????~ node -v
????v0.10.35
?????????????npm uninstall appium -g???????????2??????????????VPN??????2?????~
??????????????????????????????2???????????ó??????????????????????
????npm --registry http://registry.cnpmjs.org install -g appium
????????????????????http://testerhome.com/topics/1827
???????taobao??npm???????????????????????
????npm --registry http://registry.npm.taobao.org install -g appium
????npm ????? Appium ??????????????? appium-doctor??????????????????????????ó??
????~ appium-doctor
????Running iOS Checks
????Xcode is installed at /Applications/Xcode.app/Contents/Developer
????Xcode Command Line Tools are installed.
????DevToolsSecurity is enabled.
????The Authorization DB is set up properly.
????Node binary found at /usr/local/bin/node
????iOS Checks were successful.
????Running Android Checks
????ANDROID_HOME is set to "/Applications/adt-bundle-mac-x86_64-20131030/sdk"
????JAVA_HOME is set to "/System/Library/Frameworks/JavaVM.framework/Home."
????ADB exists at /Applications/adt-bundle-mac-x86_64-20131030/sdk/platform-tools/adb
????Android exists at /Applications/adt-bundle-mac-x86_64-20131030/sdk/tools/android
????Emulator exists at /Applications/adt-bundle-mac-x86_64-20131030/sdk/tools/emulator
????Android Checks were successful.
????npm install wd ???????????????????????????????????????????
????????????? appium& ???????appium???????????????????? appium ????????appium???????&???????appium??pid???????????????
????~ appium&
????[2] 3679
????~ warn: Appium support for versions of node < 0.12 has been deprecated and will be removed in a future version. Please upgrade!
????info: Welcome to Appium v1.4.3 (REV a357c7fa73222315dd85c3d2dd8334767cca1b0d)
????info: Appium REST http interface listener started on 0.0.0.0:4723
????info: Console LogLevel: debug
?????????????appium??????????????????????????У??????error
????~ appium
????warn: Appium support for versions of node < 0.12 has been deprecated and will be removed in a future version. Please upgrade!
????error: Couldn't start Appium REST http interface listener. Requested port is already in use. Please make sure there's no other instance of Appium running already.
???????????node???????????????????node
????~ pkill node
????[2] 3679 exit 143 appium
?????????????????????
?????????????4723??????PID?????kill -9 PID
????mac&linux?2???????????????
????mac : lsof -i:8080
????linux : neststat -anltp | grep 8080
????~ lsof -i:4723
????COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
????node 3679 XXXXX 12u IPv4 0xaecf7b4424b87de7 0t0 TCP *:4723 (LISTEN)
??????
???·???
??????????????????
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