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