15. appiumの実行環境のチェック(標準出力)
> 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 using which command at /Users/username/.nvm/v0.11.9/bin/node
> ✔ iOS Checks were successful.
> Running Android Checks
> ✔ ANDROID_HOME is set to "/Applications/android-sdk-macosx"
> ✔ JAVA_HOME is set to "/System/Library/Frameworks/JavaVM.framework/Home."
> ✔ ADB exists at /Applications/android-sdk-macosx/platform-tools/adb
> ✔ Android exists at /Applications/android-sdk-macosx/tools/android
> ✔ Emulator exists at /Applications/android-sdk-macosx/tools/emulator
> ✔ Android Checks were successful.
> ✔ All Checks were successful
21. サンプルシナリオの中身:
sample-ios.rb - 2 (RSpecの基本構成)
describe 'sample senario' do
before :all do
end
after :all do
end
before :each do
end
after :each do
end
# sinario
22. サンプルシナリオの中身:
sample-ios.rb - 3
describe 'sample senario' do
before :all do
@client = Selenium::WebDriver::Remote::Http::Default.new
@client.timeout = 120 # secound
@driver = Selenium::WebDriver.for(:remote,
:http_client => @client,
:desired_capabilities => IOS_CAPABILITIES,
:url => SERVER_RUL)
@driver.manage.timeouts.implicit_wait = 10 # seconds
@driver_wait = Selenium::WebDriver::Wait.new :timeout => 30
end
after :all do
@driver.quit if @driver
end
23. サンプルシナリオの中身:
sample-ios.rb - 4
before :each do
end
after :each do
end
# sinario
# 初期化
describe '' do
context '' do
it '' do
実際は、ここにシナリオを記述する
end
end
end
end