Appiumdriver.launch command is not working

293 views
Skip to first unread message

jacky vaswani

unread,
Jul 30, 2014, 9:43:30 AM7/30/14
to appium-...@googlegroups.com
Hi All,

I want to test the upgrade the app for which I am successfully able to remove & install the new app, but when I try to launch the app using command,
driver.launchApp() where driver is the object of AppiumDriver.

Below are the logs & exception generated.


Exception: org.openqa.selenium.remote.SessionNotFoundException: Command duration or timeout: 6 milliseconds Build info: version: '2.41.0', revision: '3192d8a', time: '2014-03-27 17:17:32' System info: host: 'NAG1-DMAC-26709', ip: '172.17.10.238', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.8.5', java.version: '1.6.0_65' Session ID: b70b1ceb-287f-4b88-b10a-ce24d100ae14 Driver info: io.appium.java_client.AppiumDriver Capabilities [{platform=MAC, app=/Users/Glnagpur/Desktop/Appium_Checkout/FiOS-TargetedRegressionTestAutomation/TestApp/2.6_VZFiOSMobile.app, javascriptEnabled=true, browserName=Mac, rotatable=true, udid=4afbda0275e921a0c327e6df5715d2081cc4e1f9, desired={newCommandTimeout=600, platformVersion=7.1, app=/Users/Glnagpur/Desktop/Appium_Checkout/FiOS-TargetedRegressionTestAutomation/TestApp/2.6_VZFiOSMobile.app, platformName=iOS, deviceName=iPhone, browserName=Mac, device=iPad, rotatable=true, udid=4afbda0275e921a0c327e6df5715d2081cc4e1f9}, locationContextEnabled=false, newCommandTimeout=600, platformVersion=7.1, databaseEnabled=false, deviceName=iPhone, platformName=iOS, webStorageEnabled=false, device=iPad, warnings={}, takesScreenshot=true}] at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:193) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:151) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:595) at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:81) at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:92) at io.appium.java_client.AppiumDriver.launchApp(AppiumDriver.java:431) at iOSTests.IphoneTests.test_2_testme(IphoneTests.java:2538) ... Removed 28 stack frames


Logs:

info: <-- POST /wd/hub/session/b70b1ceb-287f-4b88-b10a-ce24d100ae14/appium/device/remove_app 200 449.382 ms - 184 {"status":0,"value":"Successfully un-installed [com.verizon.ams.dvr] from device with id [4afbda0275e921a0c327e6df5715d2081cc4e1f9]","sessionId":"b70b1ceb-287f-4b88-b10a-ce24d100ae14"}

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 lsd[77] <Warning>: LaunchServices: Updating identifier store

info: --> POST /wd/hub/session/b70b1ceb-287f-4b88-b10a-ce24d100ae14/appium/device/install_app {"appPath":"/Users/Glnagpur/Desktop/Appium_Checkout/FiOS-TargetedRegressionTestAutomation/TestApp/VZFiOSMobile_New.app"}

debug: Appium request initiated at /wd/hub/session/b70b1ceb-287f-4b88-b10a-ce24d100ae14/appium/device/install_app

debug: Request received with params: {"appPath":"/Users/Glnagpur/Desktop/Appium_Checkout/FiOS-TargetedRegressionTestAutomation/TestApp/VZFiOSMobile_New.app"}

debug: Installing app using cmd: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap install --id 4afbda0275e921a0c327e6df5715d2081cc4e1f9 --bundle "/Users/Glnagpur/Desktop/Appium_Checkout/FiOS-TargetedRegressionTestAutomation/TestApp/VZFiOSMobile_New.app"

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Error>: unable to opendir(/var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity); error 2; No such file or directory

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Error>: Couldn't create symlink at /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity/ubiquity-digest.log (No such file or directory)

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Error>: Couldn't open log file /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity/ubiquity-digest-2014-07-30-185644+0530.log (No such file or directory)

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Error>: Couldn't create symlink at /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity/ubiquity.log (No such file or directory)

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Error>: Couldn't open log file /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity/ubiquity-2014-07-30-185644+0530.log (No such file or directory)

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Error>: [ERROR] [0.028s] main       mme_auth_iOS.m:130 _copyPreferredAppleAccount() No primary account

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Error>: Couldn't create symlink at /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity/ubiquity.log (No such file or directory)

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Error>: Couldn't open log file /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity/ubiquity-2014-07-30-185644+0530.log (No such file or directory)

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Error>: [ERROR] [0.032s] main       mme_auth_iOS.m:257 copy_mme_personid_early() null account

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Error>: Couldn't create symlink at /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity/ubiquity.log (No such file or directory)

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Error>: Couldn't open log file /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity/ubiquity-2014-07-30-185644+0530.log (No such file or directory)

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Error>: [ERROR] [0.067s] main       ubd.c:3055 ubd_main() null personid

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Error>: Couldn't create symlink at /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity/ubiquity.log (No such file or directory)

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Error>: Couldn't open log file /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity/ubiquity-2014-07-30-185644+0530.log (No such file or directory)

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Error>: [ERROR] [0.155s] main       mme_auth_iOS.m:130 _copyPreferredAppleAccount() No primary account

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Error>: Couldn't create symlink at /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity/ubiquity.log (No such file or directory)

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Error>: Couldn't open log file /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity/ubiquity-2014-07-30-185644+0530.log (No such file or directory)

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Error>: [ERROR] [0.160s] main       mme_auth_iOS.m:130 _copyPreferredAppleAccount() No primary account

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 lockdownd[51] <Error>: FAILURE: Failed to open property list at file:///private/var/db/launchd.db/com.apple.launchd/overrides.plist for reading. (The operation couldn’t be completed. No such file or directory)

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Error>: Couldn't create symlink at /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity/ubiquity.log (No such file or directory)

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Error>: Couldn't open log file /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity/ubiquity-2014-07-30-185644+0530.log (No such file or directory)

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 ubd[1034] <Warning>: [warn]  [0.225s] main       peer.c:103 set_computer_name() Not setting the computer name without a collection/config only mode

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 SpringBoard[33] <Error>: libMobileGestalt MobileGestalt.c:835: nike-ipod is static and will never generate a notification

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 SpringBoard[33] <Error>: libMobileGestalt MobileGestalt.c:835: still-camera is static and will never generate a notification

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 SpringBoard[33] <Error>: libMobileGestalt MobileGestalt.c:835: magnetometer is static and will never generate a notification

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 SpringBoard[33] <Error>: libMobileGestalt MobileGestalt.c:835: any-telephony is static and will never generate a notification

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 SpringBoard[33] <Error>: libMobileGestalt MobileGestalt.c:835: stand-alone-contacts is static and will never generate a notification

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:44 OS704 SpringBoard[33] <Warning>: Reloading and rendering all application icons.

debug: [INST] Instruments Trace Complete (Duration : 68.442177s; Output : /Applications/Appium.app/Contents/Resources/node_modules/appium/instrumentscli0.trace)

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:45 OS704 ubd[1034] <Error>: Couldn't create symlink at /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity/ubiquity-mmcs.log (No such file or directory)

debug: [INSTSERVER] Instruments exited with code 0

debug: Cleaning up after instruments exit

debug: Instruments exited unexpectedly

debug: Destroying instruments client socket.

debug: Closing socket server.

debug: Instruments socket server was closed

debug: [IOS_SYSLOG_ROW ] Jul 30 18:56:45 OS704 ubd[1034] <Error>: Couldn't open log file /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity/ubiquity-mmcs-2014-07-30-185645+0530.log (No such file or directory)

debug: Deleted tracedir we heard about from instruments (/Applications/Appium.app/Contents/Resources/node_modules/appium/instrumentscli0.trace)

debug: Stopping iOS log capture

debug: Killing the simulator process

debug: Killing any other simulator daemons

debug: Cleaning app state.

debug: No folders found to remove

debug: Removed com.verizon.ams.dvr

debug: Cleaning up appium session

info: --> GET /wd/hub/status {}

debug: Appium request initiated at /wd/hub/status

Isaac Murchie

unread,
Jul 30, 2014, 3:12:53 PM7/30/14
to jacky vaswani, appium-...@googlegroups.com
Instruments seems to have problems with non-existent Ubiguity log files/folders. Are those found when you launch the app in the normal way?


--
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.

jacky vaswani

unread,
Jul 31, 2014, 1:43:20 AM7/31/14
to appium-...@googlegroups.com, jacky....@gmail.com
Yes, It launches successfully when install & launch the app using capabilities.
capabilities.setCapability("app", f.getAbsolutePath()); where f is the file for app path.

Isaac Murchie

unread,
Jul 31, 2014, 12:45:49 PM7/31/14
to jacky vaswani, appium-...@googlegroups.com
Are the missing files there in a normal launch? And are they deleted when uninstalling the app?

Just trying to track down where the issue is arising in the chain of events.

jacky vaswani

unread,
Aug 4, 2014, 5:35:56 AM8/4/14
to appium-...@googlegroups.com, jacky....@gmail.com
HI Isaac,

After analyzing it is found that driver.launch command require //private/var/db/launchd.db/com.apple.launchd/overrides.plist for reading.
But it fails to create
launchd.db/com.apple.launchd/overrides.plist file at this location. Thus the launch command is not working.

Appium create
//private/var/db/ path successfully but fails to create the whole path.

Logs:

FAILURE: Failed to open property list at file:///private/var/db/launchd.db/com.apple.launchd/overrides.plist for reading. (The operation couldn’t be completed. No such file or directory)

debug: [IOS_SYSLOG_ROW ] Aug  4 14:56:49 iPhone5c-OS70 Paltiel[2145] <Warning>:
Reply all
Reply to author
Forward
0 new messages