Files
Kazuaki Matsuo 974a8c3891 chore: Update sample in Ruby (#15062)
* docs: tweak platform-support in readme and platform-support page

* add you.i and flutter

* add section, tweak gecko, review

* test: update ruby sample

* fix android

* update readme

* remove unused gem
2021-01-27 17:45:04 +09:00

33 lines
701 B
Ruby

# require 'test/unit'
# extend Test::Unit::Assertions
ANDROID_PACKAGE = 'io.appium.android.apis'
def android_caps
{
caps: {
platformName: 'Android',
platformVersion: ENV['ANDROID_PLATFORM_VERSION'] || '10',
deviceName: 'Android',
app: '../apps/ApiDemos-debug.apk',
automationName: 'UIAutomator2',
},
appium_lib: {
wait: 60
}
}
end
def ios_caps
{
caps: {
platformName: 'iOS',
platformVersion: ENV["IOS_PLATFORM_VERSION"] || '14.2',
deviceName: ENV["IOS_DEVICE_NAME"] || 'iPhone 12',
app: '../apps/TestApp.app.zip',
automationName: 'XCUITest',
},
appium_lib: {
wait: 60
}
}
end