2014-02-13 19 views
1

我嘗試在Mac OS X 10.9.1上使用ios驅動程序(http://ios-driver.github.io/ios-driver/setup.html)和集成的XCode附帶的模擬器運行硒測試。如何在Selenium的ios驅動程序上修復SessionNotCreatedException?

我做了以下內容:

1)啓動IOS服務器:

$ java -jar ios-server-0.6.5-jar-with-dependencies.jar -port 5555 -simulators 
16:39:412 INFO ApplicationStore.<init> App archive folder:/Users/valmar/Downloads/applications 
16:40:492 WARNING AppleLanguage.create no isn't recognized.Please file a bug on github.You won't be able to start the app in that language. 
16:40:970 WARNING AppleLanguage.create zh_CN isn't recognized.Please file a bug on github.You won't be able to start the app in that language. 
16:40:991 WARNING AppleLanguage.create zh_TW isn't recognized.Please file a bug on github.You won't be able to start the app in that language. 
16:41:058 INFO IOSServer.init 
Beta features enabled (enabled by -beta flag): false 
Simulator enabled (enabled by -simulators flag): true 
Inspector: http://0.0.0.0:5555/inspector/ 
tests can access the server at http://0.0.0.0:5555/wd/hub 
server status: http://0.0.0.0:5555/wd/hub/status 
Connected devices: http://0.0.0.0:5555/wd/hub/devices/all 
Applications: http://0.0.0.0:5555/wd/hub/applications/all 
Capabilities: http://0.0.0.0:5555/wd/hub/capabilities/all 
Monitoring '/Users/valmar/Downloads/applications' for new applications 
Archived apps /Users/valmar/Downloads/applications 
using xcode install : /Applications/Xcode.app 
using IOS version 7.0 
ios >= 6.0. Safari and hybrid apps are supported. 

Applications : 
--------------- 
    CFBundleName=Safari,CFBundleVersion=9537.53 

2014-02-13 16:16:41.059:INFO::jetty-7.x.y-SNAPSHOT 
2014-02-13 16:16:41.186:INFO::Started [email protected]:5555 

2)火起來的模擬器:

open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app & 

3)創建我的硒測試:

public static void main(String[] args) throws Exception { 
    DesiredCapabilities caps = IOSCapabilities.iphone(); 
    caps.setCapability(IOSCapabilities.SIMULATOR, true); 
    RemoteWebDriver driver = new RemoteWebDriver(new URL("http://localhost:5555/wd/hub"), caps); 

    driver.get("http://www.google.com"); 

    System.out.println(driver.getTitle()); 
    driver.quit(); 
} 

4.)...而我得到的是這樣的例外:

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: {simulator=true, timeHack=false, variation=Regular, locale=en_GB, CFBundleName=Safari, device=iphone, language=en}not available. Available are [Simulator] 
Build info: version: 'unknown', revision: 'unknown', time: 'unknown' 
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51' 
Driver info: driver.version: unknown 
Build info: version: 'unknown', revision: 'unknown', time: 'unknown' 
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51' 
Driver info: driver.version: unknown 
Command duration or timeout: 625 milliseconds 
Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:12:12' 
System info: host: 'tacbook13.local', ip: '172.20.10.4', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51' 
Driver info: org.openqa.selenium.remote.RemoteWebDriver 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) 
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526) 
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:193) 
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145) 
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554) 
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:216) 
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:111) 
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129) 
    at MobSelTest.main(MobSelTest.java:21) 
Caused by: org.openqa.selenium.SessionNotCreatedException: {simulator=true, timeHack=false, variation=Regular, locale=en_GB, CFBundleName=Safari, device=iphone, language=en}not available. Available are [Simulator] 
Build info: version: 'unknown', revision: 'unknown', time: 'unknown' 
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51' 
Driver info: driver.version: unknown 
Build info: version: 'unknown', revision: 'unknown', time: 'unknown' 
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51' 
Driver info: driver.version: unknown 
Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:12:12' 
System info: host: 'tacbook13.local', ip: '172.20.10.4', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51' 
Driver info: driver.version: unknown 
    at org.uiautomation.ios.server.command.uiautomation.NewSessionNHandler.handle(NewSessionNHandler.java:54) 
    at org.uiautomation.ios.server.command.BaseCommandHandler.handleAndRunDecorators(BaseCommandHandler.java:86) 
    at org.uiautomation.ios.server.servlet.IOSServlet.getResponse(IOSServlet.java:144) 
    at org.uiautomation.ios.server.servlet.IOSServlet.process(IOSServlet.java:85) 
    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:744) 

在服務器控制檯中我看到這條消息:

34:33:904 WARNING IOSServlet.getResponse 359ms. POST  /session 

有什麼不對?我不知道如何調試。


更新:下面是IOS-服務器的一些狀態消息:

From http://0.0.0.0:5555/wd/hub/status 

{ 
    "class": "org.openqa.selenium.remote.Response", 
    "hCode": 57594336, 
    "sessionId": null, 
    "state": null, 
    "status": 0, 
    "value": { 
    "build": { 
     "revision": "120cf4311807e2e137e519f4c4877cf6340d0cbc", 
     "time": "20130927-1435", 
     "version": "0.6.5" 
    }, 
    "ios": {"simulatorVersion": "7.0"}, 
    "java": {"version": "1.7.0_51"}, 
    "os": { 
     "arch": "x86_64", 
     "name": "Mac OS X", 
     "version": "10.9.1" 
    }, 
    "state": "success", 
    "supportedApps": [{ 
     "CFBundleDevelopmentRegion": "English", 
     "CFBundleDisplayName": "Safari", 
     "CFBundleExecutable": "MobileSafari", 
     "CFBundleIcons": {"CFBundlePrimaryIcon": { 
     "CFBundleIconFiles": [ 
      "icon-spotlight~ipad.png", 
      "icon-table~ipad.png", 
      "icon-about~ipad.png", 
      "icon-table~ipad.png", 
      "[email protected]", 
      "[email protected]", 
      "icon~ipad.png", 
      "[email protected]", 
      "[email protected]~iphone.png", 
      "[email protected]~ipad.png" 
     ], 
     "UIPrenderedIcon": true 
     }}, 
     "CFBundleIdentifier": "com.apple.mobilesafari", 
     "CFBundleInfoDictionaryVersion": "6.0", 
     "CFBundlePackageType": "APPL", 
     "CFBundleShortVersionString": "7.0", 
     "CFBundleSignature": "????", 
     "CFBundleSupportedPlatforms": ["iPhoneSimulator"], 
     "CFBundleURLTypes~ipad": [ 
     { 
      "CFBundleURLIsPrivate": true, 
      "CFBundleURLName": "Web App URL", 
      "CFBundleURLSchemes": ["webclip"] 
     }, 
     { 
      "CFBundleURLName": "Web site URL", 
      "CFBundleURLSchemes": [ 
      "http", 
      "https" 
      ] 
     }, 
     { 
      "CFBundleURLName": "FTP URL", 
      "CFBundleURLSchemes": ["ftp"] 
     }, 
     { 
      "CFBundleURLName": "Web Search URL", 
      "CFBundleURLSchemes": ["x-web-search"] 
     }, 
     { 
      "CFBundleURLIsPrivate": true, 
      "CFBundleURLName": "MobileSafari Tab URL", 
      "CFBundleURLSchemes": ["com-apple-mobilesafari-tab"] 
     } 
     ], 
     "CFBundleURLTypes~iphone": [ 
     { 
      "CFBundleURLIsPrivate": true, 
      "CFBundleURLName": "Web App URL", 
      "CFBundleURLSchemes": ["webclip"] 
     }, 
     { 
      "CFBundleURLName": "Web site URL", 
      "CFBundleURLSchemes": [ 
      "http", 
      "https" 
      ] 
     }, 
     { 
      "CFBundleURLName": "Radar URL", 
      "CFBundleURLSchemes": [ 
      "rdar", 
      "radar" 
      ] 
     }, 
     { 
      "CFBundleURLName": "FTP URL", 
      "CFBundleURLSchemes": ["ftp"] 
     }, 
     { 
      "CFBundleURLName": "Web Search URL", 
      "CFBundleURLSchemes": ["x-web-search"] 
     }, 
     { 
      "CFBundleURLIsPrivate": true, 
      "CFBundleURLName": "MobileSafari Tab URL", 
      "CFBundleURLSchemes": ["com-apple-mobilesafari-tab"] 
     } 
     ], 
     "CFBundleURLTypes~ipod": [ 
     { 
      "CFBundleURLIsPrivate": true, 
      "CFBundleURLName": "Web App URL", 
      "CFBundleURLSchemes": ["webclip"] 
     }, 
     { 
      "CFBundleURLName": "Web site URL", 
      "CFBundleURLSchemes": [ 
      "http", 
      "https" 
      ] 
     }, 
     { 
      "CFBundleURLName": "Radar URL", 
      "CFBundleURLSchemes": [ 
      "rdar", 
      "radar" 
      ] 
     }, 
     { 
      "CFBundleURLName": "FTP URL", 
      "CFBundleURLSchemes": ["ftp"] 
     }, 
     { 
      "CFBundleURLName": "Web Search URL", 
      "CFBundleURLSchemes": ["x-web-search"] 
     }, 
     { 
      "CFBundleURLIsPrivate": true, 
      "CFBundleURLName": "MobileSafari Tab URL", 
      "CFBundleURLSchemes": ["com-apple-mobilesafari-tab"] 
     } 
     ], 
     "CFBundleVersion": "9537.53", 
     "DTPlatformName": "iphonesimulator", 
     "DTSDKName": "iphonesimulator7.0", 
     "LSRequiresIPhoneOS": true, 
     "MallocBehavior": {"NanoAllocator": false}, 
     "SBMatchingApplicationGenres": [ 
     "Productivity", 
     "Utilities" 
     ], 
     "SBUsesNetwork": 3, 
     "SafariProductVersion": "7.0", 
     "UIApplicationDisableLegacyAutorotationKey": true, 
     "UIBackgroundModes": [ 
     "audio", 
     "continuousFallback" 
     ], 
     "UIBackgroundStyle": "UIBackgroundStyleDarkBlur", 
     "UIDeviceFamily": [ 
     1, 
     2 
     ], 
     "UIHasPrefs": true, 
     "UIStatusBarTintParameters": {"UINavigationBar": {"Style": "UIBarStyleDefault"}}, 
     "UISupportedInterfaceOrientations": [ 
     "UIInterfaceOrientationPortrait", 
     "UIInterfaceOrientationLandscapeLeft", 
     "UIInterfaceOrientationLandscapeRight" 
     ], 
     "UISupportedInterfaceOrientations~ipad": [ 
     "UIInterfaceOrientationPortrait", 
     "UIInterfaceOrientationLandscapeLeft", 
     "UIInterfaceOrientationLandscapeRight", 
     "UIInterfaceOrientationPortraitUpsideDown" 
     ], 
     "UIViewControllerBasedStatusBarAppearance": true, 
     "applicationPath": "/Users/valmar/.ios-driver/safariCopies/safari-7.0.app", 
     "device": "iphone", 
     "deviceAlt": [ 
     "iphone", 
     "ipod", 
     "ipad" 
     ], 
     "device_Alt": [ 
     "iphone", 
     "ipad" 
     ], 
     "resources": {"CFBundleIconFile": "/wd/hub/resources/hash=2134756163"}, 
     "sdkVersion": "7.0", 
     "sdkVersion_Alt": [ 
     "5.0", 
     "5.1", 
     "6.0", 
     "6.1" 
     ], 
     "simulator": true, 
     "supportedLanguages": [ 
     "hr", 
     "ro", 
     "ca", 
     "vi", 
     "tr", 
     "fr", 
     "unknown", 
     "hu", 
     "unknown", 
     "th", 
     "id", 
     "pt-PT", 
     "en-GB", 
     "fi", 
     "unknown", 
     "sv", 
     "it", 
     "sk", 
     "ja", 
     "uk", 
     "es", 
     "da", 
     "ms", 
     "ko", 
     "ar", 
     "he", 
     "en", 
     "nl", 
     "cs", 
     "el", 
     "pl", 
     "pt", 
     "ru", 
     "de" 
     ], 
     "timeHack": false, 
     "variation": "Regular" 
    }] 
    } 
} 

From http://0.0.0.0:5555/wd/hub/devices/all 

- none 

From http://0.0.0.0:5555/wd/hub/applications/all 

Simulator Apps 

com.apple.mobilesafari 

{ 
    "CFBundleDevelopmentRegion": "English", 
    "CFBundleDisplayName": "Safari", 
    "CFBundleExecutable": "MobileSafari", 
    "CFBundleIcons": {"CFBundlePrimaryIcon": { 
    "CFBundleIconFiles": [ 
     "icon-spotlight~ipad.png", 
     "icon-table~ipad.png", 
     "icon-about~ipad.png", 
     "icon-table~ipad.png", 
     "[email protected]", 
     "[email protected]", 
     "icon~ipad.png", 
     "[email protected]", 
     "[email protected]~iphone.png", 
     "[email protected]~ipad.png" 
    ], 
    "UIPrenderedIcon": true 
    }}, 
    "CFBundleIdentifier": "com.apple.mobilesafari", 
    "CFBundleInfoDictionaryVersion": "6.0", 
    "CFBundlePackageType": "APPL", 
    "CFBundleShortVersionString": "7.0", 
    "CFBundleSignature": "????", 
    "CFBundleSupportedPlatforms": ["iPhoneSimulator"], 
    "CFBundleURLTypes~ipad": [ 
    { 
     "CFBundleURLIsPrivate": true, 
     "CFBundleURLName": "Web App URL", 
     "CFBundleURLSchemes": ["webclip"] 
    }, 
    { 
     "CFBundleURLName": "Web site URL", 
     "CFBundleURLSchemes": [ 
     "http", 
     "https" 
     ] 
    }, 
    { 
     "CFBundleURLName": "FTP URL", 
     "CFBundleURLSchemes": ["ftp"] 
    }, 
    { 
     "CFBundleURLName": "Web Search URL", 
     "CFBundleURLSchemes": ["x-web-search"] 
    }, 
    { 
     "CFBundleURLIsPrivate": true, 
     "CFBundleURLName": "MobileSafari Tab URL", 
     "CFBundleURLSchemes": ["com-apple-mobilesafari-tab"] 
    } 
    ], 
    "CFBundleURLTypes~iphone": [ 
    { 
     "CFBundleURLIsPrivate": true, 
     "CFBundleURLName": "Web App URL", 
     "CFBundleURLSchemes": ["webclip"] 
    }, 
    { 
     "CFBundleURLName": "Web site URL", 
     "CFBundleURLSchemes": [ 
     "http", 
     "https" 
     ] 
    }, 
    { 
     "CFBundleURLName": "Radar URL", 
     "CFBundleURLSchemes": [ 
     "rdar", 
     "radar" 
     ] 
    }, 
    { 
     "CFBundleURLName": "FTP URL", 
     "CFBundleURLSchemes": ["ftp"] 
    }, 
    { 
     "CFBundleURLName": "Web Search URL", 
     "CFBundleURLSchemes": ["x-web-search"] 
    }, 
    { 
     "CFBundleURLIsPrivate": true, 
     "CFBundleURLName": "MobileSafari Tab URL", 
     "CFBundleURLSchemes": ["com-apple-mobilesafari-tab"] 
    } 
    ], 
    "CFBundleURLTypes~ipod": [ 
    { 
     "CFBundleURLIsPrivate": true, 
     "CFBundleURLName": "Web App URL", 
     "CFBundleURLSchemes": ["webclip"] 
    }, 
    { 
     "CFBundleURLName": "Web site URL", 
     "CFBundleURLSchemes": [ 
     "http", 
     "https" 
     ] 
    }, 
    { 
     "CFBundleURLName": "Radar URL", 
     "CFBundleURLSchemes": [ 
     "rdar", 
     "radar" 
     ] 
    }, 
    { 
     "CFBundleURLName": "FTP URL", 
     "CFBundleURLSchemes": ["ftp"] 
    }, 
    { 
     "CFBundleURLName": "Web Search URL", 
     "CFBundleURLSchemes": ["x-web-search"] 
    }, 
    { 
     "CFBundleURLIsPrivate": true, 
     "CFBundleURLName": "MobileSafari Tab URL", 
     "CFBundleURLSchemes": ["com-apple-mobilesafari-tab"] 
    } 
    ], 
    "CFBundleVersion": "9537.53", 
    "DTPlatformName": "iphonesimulator", 
    "DTSDKName": "iphonesimulator7.0", 
    "LSRequiresIPhoneOS": true, 
    "MallocBehavior": {"NanoAllocator": false}, 
    "SBMatchingApplicationGenres": [ 
    "Productivity", 
    "Utilities" 
    ], 
    "SBUsesNetwork": 3, 
    "SafariProductVersion": "7.0", 
    "UIApplicationDisableLegacyAutorotationKey": true, 
    "UIBackgroundModes": [ 
    "audio", 
    "continuousFallback" 
    ], 
    "UIBackgroundStyle": "UIBackgroundStyleDarkBlur", 
    "UIDeviceFamily": [ 
    1, 
    2 
    ], 
    "UIHasPrefs": true, 
    "UIStatusBarTintParameters": {"UINavigationBar": {"Style": "UIBarStyleDefault"}}, 
    "UISupportedInterfaceOrientations": [ 
    "UIInterfaceOrientationPortrait", 
    "UIInterfaceOrientationLandscapeLeft", 
    "UIInterfaceOrientationLandscapeRight" 
    ], 
    "UISupportedInterfaceOrientations~ipad": [ 
    "UIInterfaceOrientationPortrait", 
    "UIInterfaceOrientationLandscapeLeft", 
    "UIInterfaceOrientationLandscapeRight", 
    "UIInterfaceOrientationPortraitUpsideDown" 
    ], 
    "UIViewControllerBasedStatusBarAppearance": true 
} 

From: http://0.0.0.0:5555/wd/hub/capabilities/all 

com.apple.mobilesafari on iphone(Simulator) 

{ 
    "CFBundleDevelopmentRegion": "English", 
    "CFBundleDisplayName": "Safari", 
    "CFBundleExecutable": "MobileSafari", 
    "CFBundleIcons": { 
     "CFBundlePrimaryIcon": { 
      "CFBundleIconFiles": ["icon-spotlight~ipad.png", "icon-table~ipad.png", "icon-about~ipad.png", "icon-table~ipad.png", "[email protected]", "[email protected]", "icon~ipad.png", "[email protected]", "[email protected]~iphone.png", "[email protected]~ipad.png"], 
      "UIPrenderedIcon": true 
     } 
    }, 
    "CFBundleIdentifier": "com.apple.mobilesafari", 
    "CFBundleInfoDictionaryVersion": "6.0", 
    "CFBundlePackageType": "APPL", 
    "CFBundleShortVersionString": "7.0", 
    "CFBundleSignature": "????", 
    "CFBundleSupportedPlatforms": ["iPhoneSimulator"], 
    "CFBundleURLTypes~ipad": [{ 
     "CFBundleURLIsPrivate": true, 
     "CFBundleURLName": "Web App URL", 
     "CFBundleURLSchemes": ["webclip"] 
    }, { 
     "CFBundleURLName": "Web site URL", 
     "CFBundleURLSchemes": ["http", "https"] 
    }, { 
     "CFBundleURLName": "FTP URL", 
     "CFBundleURLSchemes": ["ftp"] 
    }, { 
     "CFBundleURLName": "Web Search URL", 
     "CFBundleURLSchemes": ["x-web-search"] 
    }, { 
     "CFBundleURLIsPrivate": true, 
     "CFBundleURLName": "MobileSafari Tab URL", 
     "CFBundleURLSchemes": ["com-apple-mobilesafari-tab"] 
    }], 
    "CFBundleURLTypes~iphone": [{ 
     "CFBundleURLIsPrivate": true, 
     "CFBundleURLName": "Web App URL", 
     "CFBundleURLSchemes": ["webclip"] 
    }, { 
     "CFBundleURLName": "Web site URL", 
     "CFBundleURLSchemes": ["http", "https"] 
    }, { 
     "CFBundleURLName": "Radar URL", 
     "CFBundleURLSchemes": ["rdar", "radar"] 
    }, { 
     "CFBundleURLName": "FTP URL", 
     "CFBundleURLSchemes": ["ftp"] 
    }, { 
     "CFBundleURLName": "Web Search URL", 
     "CFBundleURLSchemes": ["x-web-search"] 
    }, { 
     "CFBundleURLIsPrivate": true, 
     "CFBundleURLName": "MobileSafari Tab URL", 
     "CFBundleURLSchemes": ["com-apple-mobilesafari-tab"] 
    }], 
    "CFBundleURLTypes~ipod": [{ 
     "CFBundleURLIsPrivate": true, 
     "CFBundleURLName": "Web App URL", 
     "CFBundleURLSchemes": ["webclip"] 
    }, { 
     "CFBundleURLName": "Web site URL", 
     "CFBundleURLSchemes": ["http", "https"] 
    }, { 
     "CFBundleURLName": "Radar URL", 
     "CFBundleURLSchemes": ["rdar", "radar"] 
    }, { 
     "CFBundleURLName": "FTP URL", 
     "CFBundleURLSchemes": ["ftp"] 
    }, { 
     "CFBundleURLName": "Web Search URL", 
     "CFBundleURLSchemes": ["x-web-search"] 
    }, { 
     "CFBundleURLIsPrivate": true, 
     "CFBundleURLName": "MobileSafari Tab URL", 
     "CFBundleURLSchemes": ["com-apple-mobilesafari-tab"] 
    }], 
    "CFBundleVersion": "9537.53", 
    "DTPlatformName": "iphonesimulator", 
    "DTSDKName": "iphonesimulator7.0", 
    "LSRequiresIPhoneOS": true, 
    "MallocBehavior": { 
     "NanoAllocator": false 
    }, 
    "SBMatchingApplicationGenres": ["Productivity", "Utilities"], 
    "SBUsesNetwork": 3, 
    "SafariProductVersion": "7.0", 
    "UIApplicationDisableLegacyAutorotationKey": true, 
    "UIBackgroundModes": ["audio", "continuousFallback"], 
    "UIBackgroundStyle": "UIBackgroundStyleDarkBlur", 
    "UIDeviceFamily": [1, 2], 
    "UIHasPrefs": true, 
    "UIStatusBarTintParameters": { 
     "UINavigationBar": { 
      "Style": "UIBarStyleDefault" 
     } 
    }, 
    "UISupportedInterfaceOrientations": ["UIInterfaceOrientationPortrait", "UIInterfaceOrientationLandscapeLeft", "UIInterfaceOrientationLandscapeRight"], 
    "UISupportedInterfaceOrientations~ipad": ["UIInterfaceOrientationPortrait", "UIInterfaceOrientationLandscapeLeft", "UIInterfaceOrientationLandscapeRight", "UIInterfaceOrientationPortraitUpsideDown"], 
    "UIViewControllerBasedStatusBarAppearance": true, 
    "applicationPath": "/Users/valmar/.ios-driver/safariCopies/safari-7.0.app", 
    "device": "iphone", 
    "deviceAlt": ["iphone", "ipod", "ipad"], 
    "device_Alt": ["iphone", "ipad"], 
    "sdkVersion": "7.0", 
    "sdkVersion_Alt": ["5.0", "5.1", "6.0", "6.1"], 
    "simulator": true, 
    "supportedLanguages": ["hr", "ro", "ca", "vi", "tr", "fr", "unknown", "hu", "unknown", "th", "id", "pt-PT", "en-GB", "fi", "unknown", "sv", "it", "sk", "ja", "uk", "es", "da", "ms", "ko", "ar", "he", "en", "nl", "cs", "el", "pl", "pt", "ru", "de"], 
    "timeHack": false, 
    "variation": "Regular" 
} 
+0

網格服務器上有一個管理頁面,您可以在其中監視活動會話:我不記得URI。另外,'/ wd/hub/status'會顯示什麼? – djangofan

+0

@djangofan我添加了一切,我可以從ios服務器獲取有關日誌和狀態到我原來的帖子,但是,我找不到有關會話的任何信息... – Timo

回答

0

我認爲你需要做的是追加在結束端口和模擬器如果你正在用的Web應用程序

這是爲我工作,直到幾個小時前: Java的罐子IOS -server-0.6.5-JAR-與-dependencies.jar -port 5555個-si​​mulators

我我的Xcode更新到5.0.2,而不是我得到一個單獨的錯誤

+0

正如你可以看到我原來的帖子,這就是我做的: 'java -jar ios-server-0.6.5-jar -with-dependencies.jar -port 5555 -simulators' – Timo

相關問題