IOS8 issue

123 views
Skip to first unread message

Kaustav Saikia

unread,
Feb 17, 2015, 7:13:23 AM2/17/15
to ios-d...@googlegroups.com
Hi,

I upgaded IOS from IOS 7 to IOS 8.1 and now all my existing tests are failing. I am able to start the server but after that nothing is working. Its throwing below error:- 
38:59:658 INFO IOSServer.initDriver  
Beta features enabled (enabled by -beta flag): false
Simulator enabled : true
Inspector: http://0.0.0.0:4444/inspector/
Tests can access the server at http://0.0.0.0:4444/wd/hub
Server status: http://0.0.0.0:4444/wd/hub/status
Connected devices: http://0.0.0.0:4444/wd/hub/devices/all
Applications: http://0.0.0.0:4444/wd/hub/applications/all
Capabilities: http://0.0.0.0:4444/wd/hub/capabilities/all
Monitoring '/Users/kaustav/Documents/workspace/gecapital/applications' for new applications
Archived apps: /Users/kaustav/Documents/workspace/gecapital/applications
Build info: ios-driver 0.6.6-SNAPSHOT (built:20140515-1656,sha:)
Running on: Mac OS X 10.9.5 (x86_64)
Using java: 1.7.0_55
Using Xcode install: /Applications/Xcode.app
Using instruments: version:6.1, build: 56160
Using iOS version 8.1
iOS >= 6.0. Safari and hybrid apps are supported.

Applications :
--------------- 
    CFBundleName=Safari,CFBundleVersion=600.1.4,/Users/kaustav/.ios-driver/safariCopies/safari-8.1.app

2015-02-17 17:38:59.917:INFO::jetty-7.x.y-SNAPSHOT
2015-02-17 17:38:59.976:INFO::Started SelectChann...@0.0.0.0:4444
2015-02-17 17:38:59 INFO  iOSConfig:93 - ios server started. http://localhost:4444/wd/hub
2015-02-17 17:38:59 INFO  iOSConfig:115 - Running Test on emulator
2015-02-17 17:38:59 INFO  iOSConfig:119 - Launching iphone
2015-02-17 17:38:59 INFO  iOSConfig:149 - Launching IOSCapabilities with SIMULATOR as true
org.openqa.selenium.WebDriverException: expected 1 result for automation on instruments -s , got []
Build info: version: '2.42.0', revision: '5e824302019c86eae9c8c3ca9155e7307b410cf8', time: '2014-05-24 09:48:41'
System info: host: 'cmf-tl90.local', ip: '3.234.232.114', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.5', java.version: '1.7.0_55'
Driver info: driver.version: IOSDualDriver
    at org.uiautomation.ios.utils.ClassicCommands.getAutomationTemplate(ClassicCommands.java:113)
    at org.uiautomation.ios.server.simulator.InstrumentsApple.<init>(InstrumentsApple.java:87)
    at org.uiautomation.ios.server.services.InstrumentsFactory.getInstruments(InstrumentsFactory.java:60)
    at org.uiautomation.ios.server.InstrumentsBackedNativeIOSDriver.<init>(InstrumentsBackedNativeIOSDriver.java:33)
    at org.uiautomation.ios.server.services.IOSDualDriver.start(IOSDualDriver.java:104)
    at org.uiautomation.ios.server.ServerSideSession.start(ServerSideSession.java:235)
    at org.uiautomation.ios.server.command.uiautomation.NewSessionNHandler.safeStart(NewSessionNHandler.java:85)
    at org.uiautomation.ios.server.command.uiautomation.NewSessionNHandler.handle(NewSessionNHandler.java:52)
    at org.uiautomation.ios.server.command.BaseCommandHandler.handleAndRunDecorators(BaseCommandHandler.java:104)
    at org.uiautomation.ios.server.servlet.IOSServlet.getResponse(IOSServlet.java:151)
    at org.uiautomation.ios.server.servlet.IOSServlet.process(IOSServlet.java:82)
    at org.uiautomation.ios.server.servlet.IOSServlet.doPost(IOSServlet.java:57)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:533)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:475)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:920)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:856)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
    at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:47)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
    at org.eclipse.jetty.server.Server.handle(Server.java:352)
    at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
    at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1066)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
    at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
    at java.lang.Thread.run(Thread.java:745)

Earlier these tests were working fine with IOS 7. 

I tried executing the ios-selenium-tests project too from github but its also not working, its launching the simulator and getting the below:-
Running on: Mac OS X 10.9.5 (x86_64)
Using java: 1.7.0_55
Using Xcode install: /Applications/Xcode.app
Using instruments: version:6.1, build: 56160
Using iOS version 8.1
iOS >= 6.0. Safari and hybrid apps are supported.
Applications :
    CFBundleName=Safari,CFBundleVersion=600.1.4,/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/Applications/MobileSafari.app
2015-02-17 17:43:43.064:INFO:oejs.Server:jetty-8.1.14.v20131031
2015-02-17 17:43:43.067:INFO:oejs.AbstractConnector:Started SelectChann...@0.0.0.0:4444
44:06:912 WARNING InstrumentsCommandLine.start  instruments crashed (20 SEC)
44:06:969 WARNING NewSessionNHandler.safeStart  Instruments failed to start in the allocated time ( 20sec):Didn't get the capability back.Most likely, instruments crashed at startup.
44:06:994 WARNING NewSessionNHandler.safeStart  app has crashed at startup :normal
44:43:089 INFO NewSessionNHandler.safeStart  The server cannot run Capabilities [{simulator=true, CFBundleName=Safari, locale=en_GB, variation=iPhoneRetina_4inch, timeHack=false, device=iphone, language=en, instruments=true}] at the moment.{simulator=true, timeHack=false, variation=iPhoneRetina_4inch, locale=en_GB, CFBundleName=Safari, device=iphone, language=en, instruments=true} no devices available.
    Known devices: [Simulator[(sdks=[8.1])in use by ios-driver]]

Please help on this issue.

Thanks,
Kaustav

Dmitry Munda

unread,
Feb 26, 2015, 9:48:24 AM2/26/15
to ios-d...@googlegroups.com
2015-02-17 17:38:59.976:INFO::Started SelectChanne...@0.0.0.0:4444
2015-02-17 17:43:43.067:INFO:oejs.AbstractConnector:Started SelectChannelCon...@0.0.0.0:4444

44:06:912 WARNING InstrumentsCommandLine.start  instruments crashed (20 SEC)
44:06:969 WARNING NewSessionNHandler.safeStart  Instruments failed to start in the allocated time ( 20sec):Didn't get the capability back.Most likely, instruments crashed at startup.
44:06:994 WARNING NewSessionNHandler.safeStart  app has crashed at startup :normal
44:43:089 INFO NewSessionNHandler.safeStart  The server cannot run Capabilities [{simulator=true, CFBundleName=Safari, locale=en_GB, variation=iPhoneRetina_4inch, timeHack=false, device=iphone, language=en, instruments=true}] at the moment.{simulator=true, timeHack=false, variation=iPhoneRetina_4inch, locale=en_GB, CFBundleName=Safari, device=iphone, language=en, instruments=true} no devices available.
    Known devices: [Simulator[(sdks=[8.1])in use by ios-driver]]
Reply all
Reply to author
Forward
0 new messages