appium/ruby_lib

Update test cases

KazuCocoa opened this issue · 2 comments

based on newer ruby_lib_core

Perhaps below symbol access for opts and caps will need the update

android_tests/lib/android/specs/driver.rb:    apk_name = File.basename parsed[:caps][:app]
android_tests/lib/android/specs/driver.rb:      apk_name = File.basename driver_attributes[:caps][:app]
android_tests/lib/android/specs/driver.rb:      # actual[:caps].to_json send to Appium server
android_tests/lib/android/specs/driver.rb:      caps_with_json = JSON.parse(actual[:caps].to_json)
android_tests/lib/android/specs/driver.rb:      actual[:caps][:platformName].must_equal 'android'
android_tests/lib/android/specs/driver.rb:      actual[:caps][:app].must_equal expected_app
android_tests/lib/android/specs/driver.rb:      actual[:caps][:appPackage].must_equal 'io.appium.android.apis'
android_tests/lib/android/specs/driver.rb:      actual[:caps][:appActivity].must_equal 'io.appium.android.apis.ApiDemos'
android_tests/lib/android/specs/driver.rb:      actual[:caps][:deviceName].must_equal 'Nexus 7'
android_tests/lib/android/specs/driver.rb:      actual[:caps][:some_capability].must_equal 'some_capability'
android_tests/lib/android/specs/driver.rb:      dup_actual.delete(:caps)
ios_tests/lib/ios/specs/driver.rb:    actual   = File.basename opts[:caps][:app] if opts && opts[:caps]
ios_tests/lib/ios/specs/driver.rb:      caps_app_for_teardown = actual[:caps][:app]
ios_tests/lib/ios/specs/driver.rb:      # actual[:caps].to_json send to Appium server
ios_tests/lib/ios/specs/driver.rb:      caps_with_json = JSON.parse(actual[:caps].to_json)
ios_tests/lib/ios/specs/driver.rb:      actual[:caps][:platformName].must_equal 'ios'
ios_tests/lib/ios/specs/driver.rb:      actual[:caps][:platformVersion].must_equal '14.2'
ios_tests/lib/ios/specs/driver.rb:      actual[:caps][:app].must_equal expected_app
ios_tests/lib/ios/specs/driver.rb:      actual[:caps][:automationName].must_equal 'XCUITest'
ios_tests/lib/ios/specs/driver.rb:      actual[:caps][:deviceName].must_equal 'iPhone 11'
ios_tests/lib/ios/specs/driver.rb:      actual[:caps][:someCapability].must_equal 'some_capability'
ios_tests/lib/ios/specs/driver.rb:      dup_actual.delete(:caps)
ios_tests/lib/ios/specs/driver.rb:      actual_selenium_caps = actual[:caps][:automationName]
ios_tests/lib/ios/specs/driver.rb:      actual[:caps][:app] = caps_app_for_teardown
ios_tests/lib/ios/specs/driver.rb:    t 'verify attribute of :caps are not immutable becuse it depends on Selenium' do
ios_tests/lib/ios/specs/driver.rb:      for_clean_up                   = driver_attributes[:caps][:app].dup
ios_tests/lib/ios/specs/driver.rb:      driver_attributes[:caps][:app] = 'fake'
ios_tests/lib/ios/specs/driver.rb:      driver_attributes[:caps][:app].must_equal expected
ios_tests/lib/ios/specs/driver.rb:      driver_attributes[:caps][:app] = for_clean_up
ios_tests/lib/ios/specs/driver.rb:      apk_name = File.basename driver_attributes[:caps][:app]