I was unable to get my iOS tests running with 1.0 beta 1 but works with 0.17.6

168 views
Skip to first unread message

Brent LaVelle

unread,
Apr 18, 2014, 6:47:45 PM4/18/14
to appium-...@googlegroups.com
I put appium 1.0 beta-1 on a new OSX 10.9.2 VM and it would not run my iOS tests.  The application will load but getting a driver fails with: Selenium::WebDriver::Error::NoSuchDriverError when I get the new driver like this:
          driver = Selenium::WebDriver.for(:remote, :desired_capabilities => capabilities, :url => server_url)

The app doesn't crash in the simulator when I am not running appium so I loaded appium 0.17.6 and the tests started working again.  This is OS X 10.9.2 running in a Fusion VM.

Stdout-stderr from the Ruby test:

An error occurred in an after hook

  EOFError: end of file reached

  occurred at /Users/jenkins/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/net/protocol.rb:153:in `read_nonblock'

Failures:

 1) MobileTest::Welcome_controller a user can navigate to the sign in page

     Failure/Error: HAmvc::Driver.instance.new_driver

     Selenium::WebDriver::Error::NoSuchDriverError:

     # ./lib/hamvc/configuration.rb:80:in `new_driver'

     # ./spec/welcome_spec.rb:5:in `block (2 levels) in <top (required)>'

This is what I saw in the Appium log while this was going on:

info: Using local app from desired caps: /Users/jenkins/HAIntStage.app

info: Creating new appium session de30cb06-1aac-4135-8dce-ddedeee7c077

info: Removing any remaining instruments sockets

info: Cleaned up instruments socket /tmp/instruments_sock

info: Cleaning up any tracedirs

info: Cleaned up /usr/local/lib/node_modules/appium/instrumentscli0.trace

info: Setting Xcode folder

info: Setting Xcode version

info: Setting iOS SDK Version

info: iOS SDK Version set to 7.1

info: Detecting automation tracetemplate

info: Not auto-detecting udid, running on sim

info: Parsed app Localizable.strings

info: Setting locale with command /usr/local/lib/node_modules/appium/build/ios-sim-locale -sdk 6.1 -language en -locale en_US

info: Setting locale with command /usr/local/lib/node_modules/appium/build/ios-sim-locale -sdk 7.1 -language en -locale en_US

info: Setting locale with command /usr/local/lib/node_modules/appium/build/ios-sim-locale -sdk 7.1-64 -language en -locale en_US

info: Locale was set

debug: Creating instruments

info: No iOS / app preferences to set

info: Starting iOS 7.* simulator log capture

info: Killing the simulator process

info: Killing any other simulator daemons

info: [INST] 2014-04-17 21:10:38 +0000 Fail: The target application appears to have died

       

debug: Checking whether instruments supports our device string

info: Getting list of devices instruments supports

info: Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments

info: [INST] Instruments Trace Complete (Duration : 22.418308s; Output : /usr/local/lib/node_modules/appium/instrumentscli0.trace)

       

info: [INSTSERVER] Instruments exited with code 0

info: Cleaning up after instruments exit

Jonathan Lipps

unread,
Apr 18, 2014, 8:41:05 PM4/18/14
to Brent LaVelle, appium-...@googlegroups.com
Did you update your tests to use the 1.0 capabilities and methods?

--
http://appium.io
---
You received this message because you are subscribed to the Google Groups "Appium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-discus...@googlegroups.com.
Visit this group at http://groups.google.com/group/appium-discuss.
For more options, visit https://groups.google.com/d/optout.

Brent LaVelle

unread,
Apr 21, 2014, 2:02:58 PM4/21/14
to appium-...@googlegroups.com
New I think just redid the capabilities when I saw they changed here: https://github.com/appium/appium/blob/master/docs/en/caps.md

      capabilities = {
          'browserName'       => '',
          'platform'          => 'Mac',
          'newCommandTimeout' => 9999,
          'launch'            => true,
      }
      capabilities['app'] = local_build_path if local_build_path
      case config[:os]
      when 'ios'
        capabilities.merge!(
            'version'                    => '7.1',
            'device'                     => 'iPhone Simulator',
            'device'                     => 'iPhone',
            'deviceName'                 => 'iPhone Retina (3.5-inch)',
            #'deviceName'                 => 'iPhone Retina (4-inch 64-bit)',
            #'locationServicesAuthorized' => true,
            'language'                   => 'en',
            'locale'                     => config[:locale],
            #'autoAcceptAlerts'           => true,
            'nativeInstrumentsLib'       => true,
            'keepKeyChains'              => true

        )
Reply all
Reply to author
Forward
0 new messages