天天看點

ios自動化測試資料

http://my.oschina.net/u/147181/blog/164960

https://testerhome.com/topics

官方文檔

http://appium.io/slate/cn/v1.1.0/?ruby#ios依賴

http://blog.csdn.net/close_marty/article/details/34527821

ios助手開發資料

http://blog.csdn.net/u011740603/article/details/12746469

指令行啟動instruments

http://stackoverflow.com/questions/4191945/can-the-ui-automation-instrument-be-run-from-the-command-line

安裝 app 到 ios 模拟器的腳本

https://gist.github.com/HamGuy/24f1fb9db9ac8a5167dc

使用指令安裝

ideviceinstaller -u udid -i myapp.ipa

指令行啟動指令行安裝app 到模拟器或者真機

for xcode >= 4.5

instruments -t

/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/\

AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate \

<full_path_to_application> -e UIASCRIPT <path_to_script.js> \

-e UIARESULTSPATH <output_results_path>

for xcode >= 6.1

instruments -w <device ID> -t \

/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/\

AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate \

<full_path_to_application> -e UIASCRIPT <path_to_script.js> \

-e UIARESULTSPATH <output_results_path>

安裝nodejs、npm

到官網http://nodejs.org,下載下傳pkg、dmg檔案,然後安裝,安裝完後下面指令測試是否正常安裝

node -v

npm -v

ios monkey test

https://testerhome.com/topics/2523

Appium 自動化測試示範

https://testerhome.com/topics/201

證書問題

http://blog.csdn.net/phunxm/article/details/42685597

導出秘鑰:

鑰匙串通路-》證書助理-》從證書頒發機構請求證書,此時彈出證書助理,填入郵箱等,選擇存儲到磁盤即可。

ios8 模拟器路徑 

IOS 8.0 之前的路徑如下:

/Users/TESTUSER/Library/Application Support/iPhone Simulator

iOS 8.0 後的路徑如下:

/Users/TESTUSER/Library/Developer/CoreSimulator/Devices/8978B626-387E-40AF-AE99-6DEE931C5FA4/data/Containers/Data/Application

采用釋出證書或者是企業證書打包的應用無法用以真機測試。

-------------------------------------------

# Appium在真機上

Appium已經初步支援真機測試。

如果要在真機上執行測試,你将要做如下準備:

1.一個蘋果的開發者ID和有效的開發者對應的配置檔案和簽名檔案

2.一台iPad或者iPhone

3. 你要測試的應用的源碼

4. 一台安裝了XCode和XCode Command Line Developer Tools的Mac機器 

詳細的可以檢視appium的文檔

代理:

PROXY 10.255.100.148:3128

PROXY 10.12.0.45:3128

PROXY 10.255.255.193:3128