2014年4月2日水曜日

appiumでiphone実機のテストをする方法(How to use appium by iphone real device)

appiumのinstall
git clone https://github.com/appium/appium.git
rubyとrvmの準備
  curl -sSL https://get.rvm.io
  rvm use 2.1.1
  rvm gemset create appium
  rvm gemset use appium
  gem uninstall -aIx appium_lib ;\
  gem uninstall -aIx appium_console ;\
  gem install --no-rdoc --no-ri appium_console
node.jsのインストール http://nodejs.org/download/
 cd appium
appiumの起動 -U で実機のidentifierを指定
identifierをXcode → Window → Organizerをで確認
node . -U 03923e8c696326912be875cf64e653208****

 
Xcodeを利用してアプリを実機にインストールする
gitのtrainingをclone
  
git clone https://github.com/appium/tutorial.git
cd projects/ruby_ios
appium.txtを開いてBundle IdentifierをAPP_PATHにいれる。
Xcodeでアプリを選択してGeneralタブを選択して確認できます。
  vi appium.txt
DEVICE="ios"
APP_PATH="自分のBundle Identifier"
require=["./appium/ios/pages", "./appium/ios/common.rb"]
  arc

サンプルにあるUICatalogは、そのままでは実機で動きませんでした。
シミュレータのみです。
実機で動かす際には、自分で作成したアプリで動かしました。

0 件のコメント: