appium / appium

Cross-platform automation framework for all kinds of apps, built on top of the W3C WebDriver protocol
http://appium.io/
Apache License 2.0
18.97k stars 6.08k forks source link

Appium 1.2.1 in loop while launching the application #3452

Closed saimadhu closed 10 years ago

saimadhu commented 10 years ago

The application launch is in loop of killall instruments. Currently i am blocked, Please help in resolving the issue ASAP.

Env:

iPad 6.1.3 Appium 1.2.1 Mac OS X ,10.9.2

Code Snippet:

capabilities= new DesiredCapabilities();    
    capabilities.setCapability("udid", "b8ab55cd1d036a1a6d2d6951a06fb6e6ce83c49e");

    capabilities.setCapability(CapabilityType.BROWSER_NAME, "iOS");
    capabilities.setCapability(CapabilityType.VERSION, "6.1.3");
    capabilities.setCapability("platformName", "iOS");
    capabilities.setCapability("deviceName", "madhu iPad");
    capabilities.setCapability("app", "/Users/admin/madhu/CAMDM_SI.ipa");
    capabilities.setCapability("ipa", "/Users/admin/madhu/CAMDM_SI.ipa");
            capabilities.setCapability("bundleId", "com.ca.mdm1");

    try {
        driver = new AppiumDriver(new URL("http://admins-mbp-2.ca.com:"+4723+"/wd/hub"), capabilities); //HANGING here....
    } catch (MalformedURLException e1) {
        // TODO Auto-generated catch block
        e1.printStackTrace();
    }

APPIUM Server Logs:

$ node lib/server/main.js -U b8ab55cd1d036a1a6d2d6951a06fb6e6ce83c49e info: Welcome to Appium v1.2.1 (REV 07eac83e3db4fc07c5465f8cad16eff5b3523279) info: Appium REST http interface listener started on 0.0.0.0:4723 debug: Non-default server args: {"udid":"b8ab55cd1d036a1a6d2d6951a06fb6e6ce83c49e"} info: LogLevel: debug info: --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/admin/madhu/CAMDM_SI.ipa","platformName":"iOS","deviceName":"madhu iPad","browserName":"iOS","bundleId":"com.ca.mdm1","udid":"b8ab55cd1d036a1a6d2d6951a06fb6e6ce83c49e","version":"6.1.3"}} debug: The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : version debug: Using local .ipa from desired caps: /Users/admin/madhu/CAMDM_SI.ipa debug: Copying local zip to tmp dir debug: /Users/admin/madhu/CAMDM_SI.ipa copied to /var/folders/kn/cygznb256x5fjjzz8b3k1txc0000gn/T/114722-860-1utslf0/appium-app.zip debug: Unzipping /var/folders/kn/cygznb256x5fjjzz8b3k1txc0000gn/T/114722-860-1utslf0/appium-app.zip debug: Testing zip archive: /var/folders/kn/cygznb256x5fjjzz8b3k1txc0000gn/T/114722-860-1utslf0/appium-app.zip debug: Zip archive tested clean debug: Unzip successful debug: Using locally extracted app: /var/folders/kn/cygznb256x5fjjzz8b3k1txc0000gn/T/114722-860-1utslf0/Payload/Afaria-ENT.app debug: Creating new appium session 02452dc6-0118-4dd3-9c94-a37c79ecbc44 debug: Removing any remaining instruments sockets debug: Cleaned up instruments socket /tmp/instruments_sock debug: Setting Xcode folder debug: Setting Xcode version debug: Setting iOS SDK Version debug: iOS SDK Version set to 7.1 debug: Detecting automation tracetemplate debug: Not auto-detecting udid, running on sim error: Could not parse plist file (as binary) at /var/folders/kn/cygznb256x5fjjzz8b3k1txc0000gn/T/114722-860-1utslf0/Payload/Afaria-ENT.app/en.lproj/Localizable.strings info: Will try to parse the plist file as XML parseFileSync() is deprecated. Use parseStringSync() instead. error: Could not parse plist file (as XML) at /var/folders/kn/cygznb256x5fjjzz8b3k1txc0000gn/T/114722-860-1utslf0/Payload/Afaria-ENT.app/en.lproj/Localizable.strings warn: Could not parse app Localizable.strings debug: Not setting locale because we're using a real device debug: Creating instruments debug: Preparing uiauto bootstrap debug: Dynamic bootstrap dir: /Users/admin/Library/Application Support/appium/bootstrap debug: Dynamic env: {"nodePath":"/Users/admin/local/bin/node","commandProxyClientPath":"/Users/admin/madhu/appium/node_modules/appium-uiauto/bin/command-proxy-client.js","instrumentsSock":"/tmp/instruments_sock","interKeyDelay":null} debug: Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

import "/Users/admin/madhu/appium/node_modules/appium-uiauto/uiauto/bootstrap.js";

bootstrap({ nodePath: "/Users/admin/local/bin/node", commandProxyClientPath: "/Users/admin/madhu/appium/node_modules/appium-uiauto/bin/command-proxy-client.js", instrumentsSock: "/tmp/instruments_sock", interKeyDelay: null, }); debug: Dynamic bootstrap path: /Users/admin/Library/Application Support/appium/bootstrap/bootstrap-6b93412a97c925f0.js debug: Reusing dynamic bootstrap: /Users/admin/Library/Application Support/appium/bootstrap/bootstrap-6b93412a97c925f0.js debug: Fixing device was changed from:" iPad - Simulator - iOS 7.1 " to:"iPad Retina (64-bit) - Simulator - iOS 7.1" debug: Not setting iOS and app preferences since we're on a real device debug: Starting iOS device log capture via deviceconsole debug: Not setting device type since we're connected to a device debug: Getting bundle ID from app debug: Parsed app Info.plist (as binary) debug: Creating iDevice object with udid b8ab55cd1d036a1a6d2d6951a06fb6e6ce83c49e debug: Couldn't find ideviceinstaller, trying built-in at /Users/admin/madhu/appium/build/libimobiledevice-macosx/ideviceinstaller debug: Checking app install status using: /Users/admin/madhu/appium/build/fruitstrap/fruitstrap isInstalled --id b8ab55cd1d036a1a6d2d6951a06fb6e6ce83c49e --bundle com.ca.mdm1 debug: App is not installed. Will try to install the app. debug: Installing app using cmd: /Users/admin/madhu/appium/build/fruitstrap/fruitstrap install --id b8ab55cd1d036a1a6d2d6951a06fb6e6ce83c49e --bundle "/var/folders/kn/cygznb256x5fjjzz8b3k1txc0000gn/T/114722-860-1utslf0/Payload/Afaria-ENT.app" debug: Starting command proxy. debug: Instruments socket server started at /tmp/instruments_sock debug: Starting instruments debug: Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments info: Launching instruments debug: Attempting to run app on real device with UDID b8ab55cd1d036a1a6d2d6951a06fb6e6ce83c49e debug: Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w b8ab55cd1d036a1a6d2d6951a06fb6e6ce83c49e /var/folders/kn/cygznb256x5fjjzz8b3k1txc0000gn/T/114722-860-1utslf0/Payload/Afaria-ENT.app -e UIASCRIPT /Users/admin/Library/Application Support/appium/bootstrap/bootstrap-6b93412a97c925f0.js -e UIARESULTSPATH /tmp/appium-instruments debug: And extra without-delay env: {} debug: And launch timeouts (in ms): {"global":90000} warn: Instruments socket client never checked in; timing out (global) debug: Killall instruments debug: [INSTSERVER] Instruments exited with code null debug: Killall instruments debug: Attempting to retry launching instruments, this is retry #1 debug: Killall iPhoneSimulator info: Launching instruments debug: Attempting to run app on real device with UDID b8ab55cd1d036a1a6d2d6951a06fb6e6ce83c49e debug: Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w b8ab55cd1d036a1a6d2d6951a06fb6e6ce83c49e /var/folders/kn/cygznb256x5fjjzz8b3k1txc0000gn/T/114722-860-1utslf0/Payload/Afaria-ENT.app -e UIASCRIPT /Users/admin/Library/Application Support/appium/bootstrap/bootstrap-6b93412a97c925f0.js -e UIARESULTSPATH /tmp/appium-instruments debug: And extra without-delay env: {} debug: And launch timeouts (in ms): {"global":90000} warn: Instruments socket client never checked in; timing out (global) debug: Killall instruments debug: [INSTSERVER] Instruments exited with code null debug: Killall instruments debug: Attempting to retry launching instruments, this is retry #2 debug: Killall iPhoneSimulator info: Launching instruments debug: Attempting to run app on real device with UDID b8ab55cd1d036a1a6d2d6951a06fb6e6ce83c49e debug: Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w b8ab55cd1d036a1a6d2d6951a06fb6e6ce83c49e /var/folders/kn/cygznb256x5fjjzz8b3k1txc0000gn/T/114722-860-1utslf0/Payload/Afaria-ENT.app -e UIASCRIPT /Users/admin/Library/Application Support/appium/bootstrap/bootstrap-6b93412a97c925f0.js -e UIARESULTSPATH /tmp/appium-instruments debug: And extra without-delay env: {} debug: And launch timeouts (in ms): {"global":90000} warn: Instruments socket client never checked in; timing out (global) debug: Killall instruments debug: [INSTSERVER] Instruments exited with code null debug: Killall instruments debug: Attempting to retry launching instruments, this is retry #3 debug: Killall iPhoneSimulator info: Launching instruments debug: Attempting to run app on real device with UDID b8ab55cd1d036a1a6d2d6951a06fb6e6ce83c49e debug: Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w b8ab55cd1d036a1a6d2d6951a06fb6e6ce83c49e /var/folders/kn/cygznb256x5fjjzz8b3k1txc0000gn/T/114722-860-1utslf0/Payload/Afaria-ENT.app -e UIASCRIPT /Users/admin/Library/Application Support/appium/bootstrap/bootstrap-6b93412a97c925f0.js -e UIARESULTSPATH /tmp/appium-instruments debug: And extra without-delay env: {} debug: And launch timeouts (in ms): {"global":90000} warn: Instruments socket client never checked in; timing out (global) debug: Killall instruments debug: [INSTSERVER] Instruments exited with code null debug: Killall instruments debug: Instruments never checked in

jlipps commented 10 years ago

Closing as a dupe of https://github.com/appium/appium/issues/3448

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.