appium server 0.17.6 released

324 views
Skip to first unread message

Jonathan Lipps

unread,
Mar 21, 2014, 6:31:52 PM3/21/14
to appium-...@googlegroups.com
Fixing NPM install issue: https://github.com/appium/appium/releases/tag/v0.17.6

-Jonathan

Dan Doveralba

unread,
Mar 21, 2014, 6:37:01 PM3/21/14
to Jonathan Lipps, appium-...@googlegroups.com
That fixed it.

On Mar 21, 2014, at 3:31 PM, Jonathan Lipps <jli...@saucelabs.com> wrote:

Fixing NPM install issue: https://github.com/appium/appium/releases/tag/v0.17.6

-Jonathan

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

Jo

unread,
Mar 25, 2014, 1:43:39 AM3/25/14
to appium-...@googlegroups.com, Jonathan Lipps
Hi,

I just updated to 17.6 today and I get the foll. error.

Appium Version: 17.6
Mac OS Mavericks

When I try to execute my tests, I see the foll. in my appium log

  • info: Getting device API level
  • debug: executing: "/Users/jo/android-sdks/platform-tools/adb" -s emulator-5554 shell "getprop ro.build.version.sdk"
  • info: Device is at API Level 19
  • debug: java -jar "/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/android/helpers/strings_from_apk.jar" "/Users/jo/appium/abc.apk" "/tmp/com.abc.abcapp"
  • warn: Error getting strings.xml from apk
  • debug: Exception in thread "main" java.io.FileNotFoundException: /tmp/com.abc.abcapp/strings.json (Permission denied)
  • at java.io.FileOutputStream.open(Native Method)
  • at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
  • at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
  • at strings.StringsXML.toJSON(StringsXML.java:44)
  • at strings.StringsXML.run(StringsXML.java:100)
  • at strings.StringsXML.main(StringsXML.java:151)
  • debug: executing: "/Users/jo/android-sdks/platform-tools/adb" -s emulator-5554 shell "echo '{}' > /data/local/tmp/strings.json"
  • info: Checking whether aapt is present
  • debug: processFromManifest: "/Users/jo/android-sdks/build-tools/19.0.1/aapt" dump xmltree /Users/jo/appium/abc.apk AndroidManifest.xml
  • info: [ADB] Using aapt from /Users/jo/android-sdks/build-tools/19.0.1/aapt
Thank you
Jo

Jonathan Lipps

unread,
Mar 25, 2014, 3:18:26 PM3/25/14
to Jo, appium-...@googlegroups.com
That's not necessarily an error. What happens after that in the logs? That's just saying we couldn't get strings.xml from your apk. That's totally nominal.

Jo

unread,
Mar 26, 2014, 1:06:12 AM3/26/14
to appium-...@googlegroups.com
Hi Jonathan,

This was working until I upgraded to 17.6.  I was also running the appium as root.  Now, it won't allow me to.  So I have uninstalled and reinstalled node, npm etc... and chown the node_modules and other directories by googling.

When I don't launch appium with the Prelaunch Application option, and try to run my test, I get the foll. error in eclipse:

[2014-03-25 21:35:48 - DeviceMonitor] Adb connection Error:EOF

[2014-03-25 21:35:48 - DeviceMonitor] Connection attempts: 1

[2014-03-25 21:35:53 - DeviceMonitor] Adb connection Error:EOF


When I run the appium with Prelaunch Application option, in the appium window I see the foll. along below the error message I sent you previously:

debug: executing: "/Users/jo/android-sdks/platform-tools/adb" -s emulator-5554 shell "ls /data/local/tmp/89f9cbdabb031a7a98713207c182219f.apk"

debug: Getting install status for com.abc.abcapp

debug: executing: "/Users/jo/android-sdks/platform-tools/adb" -s emulator-5554 shell "pm list packages -3 com.abc.abcapp"

info: [ADB] App is not installed

debug: Printing keystore md5: "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/keytool" -v -list -alias "leadsapp1" -keystore "/Users/jo/appium/abcapp1.keys.abc" -storepass "Password"

debug: Keystore MD5: FC:86:91:DB:4B:18:F8:72:36:11:21:22:3B:25:8E:2E

In my eclipse log:

org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.

Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:11:15'

System info: host: 'admins-MacBook-Pro-2.local', ip: '192.168.2.34', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.2', java.version: '1.6.0_65'

Driver info: driver.version: RemoteWebDriver

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548)

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 com.abc.android.tests.AndroidExample.setup(AndroidExample.java:47)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)

at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)

at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)

at org.testng.internal.Invoker.invokeMethod(Invoker.java:653)

at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)

at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)

at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)

at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)

at org.testng.TestRunner.privateRun(TestRunner.java:767)

at org.testng.TestRunner.run(TestRunner.java:617)

at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)

at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)

at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)

at org.testng.SuiteRunner.run(SuiteRunner.java:240)

at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)

at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)

at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)

at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)

at org.testng.TestNG.run(TestNG.java:1057)

at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)

at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)

at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)

Caused by: java.net.ConnectException: Connection refused

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:382)

at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:241)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:228)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:431)

at java.net.Socket.connect(Socket.java:527)

at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:117)

at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:178)

at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:144)

at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:131)

at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)

at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)

at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)

at org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:319)

at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:298)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:527)

... 30 more

SKIPPED CONFIGURATION: @AfterMethod tearDown

SKIPPED: loginTest

===============================================

    Default test

    Tests run: 1, Failures: 0, Skips: 1

    Configuration Failures: 1, Skips: 1

===============================================

===============================================

Default suite

Total tests run: 1, Failures: 0, Skips: 1

Configuration Failures: 1, Skips: 1

===============================================


AndroidExample.java

public class AndroidExample {

 WebDriver driver = null;

        @BeforeMethod

         public void setup() {

        try {

              File appDir = new File("/Users/jo/appium/");

              File app = new File(appDir, "abcApp.apk");

              DesiredCapabilities capabilities = new DesiredCapabilities();

              //It will launch the  App in Android Device using the configurations specified in Desired Capabilities


              capabilities.setCapability("device", "Android");

              capabilities.setCapability("deviceType", "tablet");

      capabilities.setCapability(CapabilityType.BROWSER_NAME, "Android");

      capabilities.setCapability(CapabilityType.VERSION, "4.2");

      capabilities.setCapability(CapabilityType.PLATFORM, "Mac");

      capabilities.setCapability("app", app);

              // Here we mention the app's package name, to find the package name we  have to convert .apk file into java class files

      capabilities.setCapability("app-package", "com.abc.abcapp");

              //Here we mention the activity name, which is invoked initially as app's first page.

      capabilities.setCapability("app-activity", "com.abc.abcapp.activities.MainActivity");

         // This is Launcher activity of your app (you can get it from apk info app)

              //Create RemoteWebDriver instance and connect to the Appium server.

      //        URL u = new URL("http://127.0.0.1:4723/wd/hub");

      //        driver = new RemoteWebDriver(u, capabilities);

            driver = new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);


              driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);  

          } catch (MalformedURLException e) {

                e.printStackTrace();

           }

         }


       @Test

 public void loginTest() throws Exception {

       driver.getWindowHandle();

           Thread.sleep(1000);

            driver.findElement(By.id("com.abc.abcapp:id/second_menu")).click();

          driver.findElement(By.xpath("//linear[1]/window[1]/linear[1]/window[1]/linear[1]/relative[2]/text[1]")).click();

            }


       @AfterMethod

        public void tearDown() {

               driver.quit();

raja rajan

unread,
Mar 26, 2014, 7:52:54 AM3/26/14
to appium-...@googlegroups.com, Jo
Hi jonathan 
             Could you tell how to connect multiple devices on appium with some example
 

Jo

unread,
Mar 26, 2014, 1:05:56 PM3/26/14
to appium-...@googlegroups.com, Jo

Jonathan Lipps

unread,
Mar 26, 2014, 2:06:09 PM3/26/14
to Jo, appium-...@googlegroups.com
This was working until I upgraded to 17.6.  I was also running the appium as root.  Now, it won't allow me to.  So I have uninstalled and reinstalled node, npm etc... and chown the node_modules and other directories by googling.

Yes, unfortunately too many people were running into issues caused by running appium under sudo, so we disallowed it.

When I don't launch appium with the Prelaunch Application option, and try to run my test, I get the foll. error in eclipse:

[2014-03-25 21:35:48 - DeviceMonitor] Adb connection Error:EOF

[2014-03-25 21:35:48 - DeviceMonitor] Connection attempts: 1

[2014-03-25 21:35:53 - DeviceMonitor] Adb connection Error:EOF



I don't know what this means. Are you using Eclipse to talk to ADB? That might not work while we're running a test with Appium. I dunno.

When I run the appium with Prelaunch Application option, in the appium window I see the foll. along below the error message I sent you previously:

debug: executing: "/Users/jo/android-sdks/platform-tools/adb" -s emulator-5554 shell "ls /data/local/tmp/89f9cbdabb031a7a98713207c182219f.apk"

debug: Getting install status for com.abc.abcapp

debug: executing: "/Users/jo/android-sdks/platform-tools/adb" -s emulator-5554 shell "pm list packages -3 com.abc.abcapp"

info: [ADB] App is not installed

debug: Printing keystore md5: "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/keytool" -v -list -alias "leadsapp1" -keystore "/Users/jo/appium/abcapp1.keys.abc" -storepass "Password"

debug: Keystore MD5: FC:86:91:DB:4B:18:F8:72:36:11:21:22:3B:25:8E:2E


I don't see any errors here

Jo

unread,
Mar 27, 2014, 1:17:27 AM3/27/14
to appium-...@googlegroups.com, Jo
Ok, I made some progress.

I had to chown all the foll. files with my user from the dir /Users/jo/.android/avd/abcApp.avd

cache.img

userdata-qemu.img

hardware-qemu.ini


After it launches the emulator, it's not installing the app :(

debug: App was not uninstalled, maybe it wasn't on device?

info: MD5 for app is 89f9cbdabb031a7a98713207c182219f

debug: executing: "/Users/jo/android-sdks/platform-tools/adb" -s emulator-5554 shell "ls /data/local/tmp/89f9cbdabb031a7a98713207c182219f.apk"

debug: Getting install status for com.abc.abcapp

debug: executing: "/Users/jo/android-sdks/platform-tools/adb" -s emulator-5554 shell "pm list packages -3 com.abc.abcapp"

info: [ADB] App is not installed

debug: Printing keystore md5: "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/keytool" -v -list -alias "abcapp1" -keystore "/Users/jo/appium/abcapp1.keys.abc" -storepass "abc"

debug: Keystore MD5: FC:86:91:DB:4B:18:F8:72:36:21:21:22:3B:25:8E:99

What am I missing here?

Jo

On Wednesday, March 26, 2014 11:06:09 AM UTC-7, Jonathan Lipps wrote:
This was working until I upgraded to 17.6.  I was also running the appium as root.  Now, it won't allow me to.  So I have uninstalled and reinstalled node, npm etc... and chown the node_modules and other directories by googling.

Yes, unfortunately too many people were running into issues caused by running appium under sudo, so we disallowed it.

When I don't launch appium with the Prelaunch Application option, and try to run my test, I get the foll. error in eclipse:

[2014-03-25 21:35:48 - DeviceMonitor] Adb connection Error:EOF

[2014-03-25 21:35:48 - DeviceMonitor] Connection attempts: 1

[2014-03-25 21:35:53 - DeviceMonitor] Adb connection Error:EOF



I don't know what this means. Are you using Eclipse to talk to ADB? That might not work while we're running a test with Appium. I dunno.

When I run the appium with Prelaunch Application option, in the appium window I see the foll. along below the error message I sent you previously:

debug: executing: "/Users/jo/android-sdks/platform-tools/adb" -s emulator-5554 shell "ls /data/local/tmp/89f9cbdabb031a7a98713207c182219f.apk"

debug: Getting install status for com.abc.abcapp

debug: executing: "/Users/jo/android-sdks/platform-tools/adb" -s emulator-5554 shell "pm list packages -3 com.abc.abcapp"

info: [ADB] App is not installed

debug: Printing keystore md5: "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/keytool" -v -list -alias "abcapp1" -keystore "/Users/jo/appium/abcapp1.keys.abc" -storepass "Password"

debug: Keystore MD5: FC:86:91:DB:4B:18:F8:72:36:11:21:22:3B:25:8E:2E

Message has been deleted

Jo

unread,
Mar 27, 2014, 1:32:12 AM3/27/14
to appium-...@googlegroups.com, Jo
My emulator started and it's still running but I see the foll. errors.


info: Sent shutdown command, waiting for UiAutomator to stop...

warn: UiAutomator did not shut down fast enough, calling it gone

error: Failed to start an Appium session, err was: Error: Could not find Galaxy emulator.

info: Cleaning up android objects

info: Cleaning up appium session

debug: 127.0.0.1 - - "POST /wd/hub/session HTTP/1.1" 500 212 "-" "-"

info: Error: Could not find Galaxy emulator.

    at ADB.getRunningAVDWithRetry (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/android/adb.js:710:15)

    at null.<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/android/adb.js:770:10)

    at ADB.checkSdkBinaryPresent (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/android/adb.js:105:5)

    at ADB.launchAVD (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/android/adb.js:744:8)

    at null.<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/android/android-common.js:299:16)

    at null.<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/android/adb.js:688:14)

    at null.<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/android/adb.js:837:5)

    at null.<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/android/adb.js:819:7)

    at /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/android/adb.js:153:5

    at ChildProcess.exithandler (child_process.js:635:7)

info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Could not find Galaxy emulator.)","origValue":"Could not find Galaxy emulator."},"sessionId":null}

POST /wd/hub/session 500 128195ms - 212b

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

info: Responding to client with success: {"status":0,"value":{"build":{"version":"0.17.6","revision":"7b32947e166a4338047f31ac14457c2b0eb432aa"}}}

debug: Request received with params: {}

debug: 127.0.0.1 - - "GET /wd/hub/status HTTP/1.1" 200 144 "-" "Appium (unknown version) CFNetwork/673.2.1 Darwin/13.1.0 (x86_64) (MacBookPro11%2C3)"

GET /wd/hub/status 200 2ms - 144b

rajarajan

unread,
Mar 27, 2014, 1:32:34 AM3/27/14
to appium-...@googlegroups.com, Jo

Hi jo,
     Very thanks for the replay,This(https://groups.google.com/forum/#!searchin/appium-discuss/multiple$20devices/appium-discuss/LmckC3HiI3Q/8veYosuUeJ4J)link contains settings for  Mac,can you tell for how to do it in windows as iam working in windows

Jo

unread,
Mar 27, 2014, 1:37:19 AM3/27/14
to appium-...@googlegroups.com, Jo
Hi Raja,

I am also using Mac.  I would assume, you can execute the same command from the cmd windows with appium.exe <options>?

rajarajan

unread,
Mar 27, 2014, 5:19:13 AM3/27/14
to appium-...@googlegroups.com, Jo

Hi jo,
Can you tell, From Which directory i have to excute this command.
Reply all
Reply to author
Forward
0 new messages