Unable to launch the application Android

774 views
Skip to first unread message

RGadde

unread,
Jul 23, 2013, 8:43:28 AM7/23/13
to appium-...@googlegroups.com
Hi,
I am getting the follwoing error while running the tests.

 A session is either terminated or not started (Selenium::WebDriver::Error::NoSuchDriverError)

node log:
info: [ANDROID] [debug] Could not start socket server listening on 4724
error: ADB quit before it successfully launched
error: Failed to start an Appium session, err was: ADB quit unexpectedly before successfully launching
info: Responding to client with error: {"status":6,"value":{"message":"A session is either terminated or not started","origValue":"ADB quit unexpectedly before successfully launching"},"sessionId":"6ecd58ee-7bb5-4f7b-8cef-4d2c032a34d3"}

Please help me how to get out of this issue.

-R

Satyajit Malugu

unread,
Jul 23, 2013, 11:37:54 AM7/23/13
to appium-...@googlegroups.com
  1. adb devices - show you your device?
  2. were you able to run a sample test?
I remember getting this error when emulator isn't configured correctly. 

Jonathan Lipps

unread,
Jul 23, 2013, 12:45:30 PM7/23/13
to RGadde, appium-...@googlegroups.com
Try killing your emulator and also running adb kill-server

It's having trouble starting port 4724 on the device which can happen if the server doesn't exit cleanly. A restart should fix it.

--
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/groups/opt_out.
 
 

RGadde

unread,
Jul 24, 2013, 9:23:42 AM7/24/13
to appium-...@googlegroups.com, RGadde
Thanks for the Reply.
Still i am getting same error even ran adb kill-server from tools directory

Thank You,
-R

RGadde

unread,
Jul 24, 2013, 11:49:34 AM7/24/13
to appium-...@googlegroups.com, RGadde
Hi,

I am trying to Build and run bootstrap. getting the following Error:

Administrators-iMac:appium rgadde$ grunt buildAndroidBootstrap
Running "buildAndroidBootstrap" task
Using ant found at /usr/share/java/ant-1.8.2/bin/antBuildfile: /usr/local/lib/node_modules/appium/android/bootstrap/build.xml

BUILD FAILED
/usr/local/lib/node_modules/appium/android/bootstrap/build.xml:90: Cannot find /usr/local/adt/sdk/tools/ant/uibuild.xml imported from /usr/local/lib/node_modules/appium/android/bootstrap/build.xml

Total time: 0 seconds
Could not build android bootstrap
Warning: Building project exited with 1 Use --force to continue.

Aborted due to warnings.
Administrators-iMac:appium rgadde$ 

Please help me on this.

-R

Saikat Maitra

unread,
Jul 24, 2013, 11:56:23 AM7/24/13
to RGadde, appium-...@googlegroups.com
Can you please try the following steps.


Regards
Saikat

RGadde

unread,
Jul 26, 2013, 2:29:11 AM7/26/13
to appium-...@googlegroups.com, RGadde
Tried that But still getting the issue.

  A session is either terminated or not started (Selenium::WebDriver::Error::NoSuchDriverError)
      ./features/support/env.rb:38:in `selenium'

node log:

info: [ANDROID] [debug] Could not start socket server listening on 4724
error: ADB quit before it successfully launched
error: Failed to start an Appium session, err was: ADB quit unexpectedly before successfully launching
info: Responding to client with error: {"status":6,"value":{"message":"A session is either terminated or not started","origValue":"ADB quit unexpectedly before successfully launching"},"sessionId":"74c84447-a052-435a-91ab-4022451aa8a5"}
POST /wd/hub/session 500 1869ms - 225
info: Clearing out appium devices
info: [ADB] Not uninstalling app since server started with --full-reset or --no-reset
info: Clearing out appium devices

Please any one help me on this.

Thanks,
-R

RGadde

unread,
Jul 26, 2013, 8:23:52 AM7/26/13
to appium-...@googlegroups.com, RGadde
Hi All,
Thanks for all your help. 
I am able to run the tests in my system. The problem was with activity passed from capabilities. i have passed completed Activity as mentioned in the code. When i was changed to 'app-activity' => 'activities.LoginActivity' 
it's worked for me

But i observed Wait is not working as expect for me. Is i am missing anything.

wait = Selenium::WebDriver::Wait.new(:timeout => 40)
wait.until{selenium.find_element(:xpath, "//linear[1]/window[1]/relative[1]/imagebutton[1]")}
button = selenium.find_element(:xpath, "//linear[1]/window[1]/relative[1]/imagebutton[1]")
  button.click

Please help me on this....

Thanks,
-R

Dan Cuellar

unread,
Jul 26, 2013, 10:31:16 AM7/26/13
to appium-...@googlegroups.com, RGadde
You may want to what until is clickable (you can grab the clickable attribute using get_attribute)

RGadde

unread,
Jul 29, 2013, 8:16:41 AM7/29/13
to appium-...@googlegroups.com, RGadde
Hi,
Still i am getting the Error for the above.

Error log:

  An unknown server-side error occurred while processing the command. (Selenium::WebDriver::Error::UnknownError)
      ./features/step_definitions/steps.rb:19:in `block (2 levels) in <top (required)>'

Please help me on this.

Thanks,
-R

RGadde

unread,
Jul 29, 2013, 8:27:56 AM7/29/13
to appium-...@googlegroups.com, RGadde
Hi,
I am alos getting this while using wait 

 An error occurred while searching for an element by XPath. (Selenium::WebDriver::Error::XPathLookupError)
      ./features/step_definitions/steps.rb:21:in `block (2 levels) in <top (required)>'
-R
Reply all
Reply to author
Forward
0 new messages