Still googling for doing Setup and automate android application on Windows 7

3,245 views
Skip to first unread message

Pramod Sadaphal

unread,
Jun 25, 2013, 10:55:28 AM6/25/13
to appium-...@googlegroups.com
Hi,

I have downloaded AppiumForWindows-0.7.0 from http://appium.io/. But what next. I didn't get any proper documentation for running Appium on Windows. Also I haven't found any sample test project for automating android app using Java. I have also gone through the documentation from site http://appium.io/. Sorry, but not found useful. Is anybody able to run appium on windows for testing android app using Java?? Please share step by step approach for automating using Appium after downloading AppiumForWindows-0.7.0 on windows.

thanks.
 

Pramod Sadaphal

unread,
Jun 25, 2013, 11:05:03 AM6/25/13
to appium-...@googlegroups.com
I have android-sdk, eclipse installed in my system

bootstrap online

unread,
Jun 25, 2013, 11:14:34 AM6/25/13
to Pramod Sadaphal, appium-...@googlegroups.com

Pramod Sadaphal

unread,
Jun 26, 2013, 9:21:43 AM6/26/13
to appium-...@googlegroups.com, Pramod Sadaphal
Hi,
   Still not able to start android automation. I have performed following steps, please let me know if I am missing something.
I am using Windows 7, and creating test cases in Java for Android app.  
 
1. Downloaded AppiumForWindows from site http://appium.io/ and extracted zipped folder
2. Started android emulator with 4.2 platform(API level-17)
3. Ran adb devices command from cmd. Showed only one device connected
4. executed command:  npm install .
5. executed command:  reset.bat
6. executed command:  node server.js
7. appium started. Please cross check image
 


8. cloned "sauce_appium_junit" test project from GitHub
9. following is snapshot of program


10. ran project as Maven Test
11. Showed null pointer exception. I have attached log file.
12. At step 8, I also tried for creating new jUnit test project and run as Junit test, but got null pointer exception 



13. I also executed test project after installing my app in android emulator. But failed. 

please, help.


On Tuesday, 25 June 2013 20:44:34 UTC+5:30, bootstrap online wrote:
https://github.com/appium/appium/blob/master/docs/running-on-windows.md
com.saucelabs.appium.SauceTest.txt
TEST-com.saucelabs.appium.SauceTest.xml

Saikat Maitra

unread,
Jun 26, 2013, 12:05:45 PM6/26/13
to Pramod Sadaphal, appium-...@googlegroups.com
Hello 

Observed in your screenshot that the driver object is null and the object is not getting created. Can you please add the following line.

    driver = new SwipeableWebDriver(new URL("http://127.0.0.1:4723/wd/hub"), getSelendroidCapabilities());
       
Also add following class in your package.


public class SwipeableWebDriver extends RemoteWebDriver implements HasTouchScreen {
    private RemoteTouchScreen touch;

    public SwipeableWebDriver(URL remoteAddress, Capabilities desiredCapabilities) {
        super(remoteAddress, desiredCapabilities);
        touch = new RemoteTouchScreen(getExecuteMethod());
    }

    public TouchScreen getTouch() {
        return touch;
    }
}


Regards
Saikat




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

Pramod Sadaphal

unread,
Jun 28, 2013, 8:59:06 AM6/28/13
to appium-...@googlegroups.com, Pramod Sadaphal
Thanks....Saikat for your help.......

Yes, you were right driver was initialized as null but after not assigned any value. That's why null pointer exception was showing. thanks.

Also thanks Appium team for creating such a wonderful tool.....

fiona

unread,
Jul 16, 2013, 11:02:30 PM7/16/13
to appium-...@googlegroups.com
hi,

I m a new one to use appnium,i got some problems, 
after download  AppiumForWindows, and then unzipped on my E drive, how could i use it? ...as your and also some other articles mentioned, execute npm install, but some errors show up, like cannot find dependency....i just change the directory of the unzip folder, but seemed not work for other file cannot find dependency ...... (i know nothing about nodejs or npm,) i wonder if there is any more details about installed appnium on windows?

thanks!!!

在 2013年6月25日星期二UTC+8下午10时55分28秒,Pramod Sadaphal写道:

Dan Cuellar

unread,
Jul 17, 2013, 10:37:50 AM7/17/13
to appium-...@googlegroups.com
You don't need to npm install with appium for windows. Everything comes pre-setup. All you need to do is run Appium.exe

Pramod Sadaphal

unread,
Jul 17, 2013, 11:42:07 AM7/17/13
to appium-...@googlegroups.com

Hi Fiona,

Are u trying Android on Windows + Java???
then do following steps;

1. Go to appium.io site on your windows PC and download AppiumForWindows
2. Unzip it
3. Now, the folder contains Appium.exe file, run it by double clicking, it will look like,
 



4. No need to change the IP address and port number.
5.In your program set desired capabilities at starting like below,(following is java code),

       
        DesiredCapabilities capabilities = new DesiredCapabilities();
        capabilities.setCapability(CapabilityType.BROWSER_NAME, "Android");
        capabilities.setCapability("device", "Android");
        capabilities.setCapability(CapabilityType.VERSION, "4.2");
        capabilities.setCapability(CapabilityType.PLATFORM, "Windows");
       
        capabilities.setCapability("app", "C:\\Android Apps\\Calculator.apk");      //This is path of your application
        capabilities.setCapability("app-package", "com.calculator");                    // This is package name of your app
        capabilities.setCapability("app-activity", "MainActivity");                          // This Launcher activity of your app

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


and then write your testcase.

5. Now Launch emulator or connect android device
6. Click on Launch button on appium.exe which you opened at step 3. (Make sure that first you have to connect device/launch emulator  and then launch Appium)
7. Execute your test cases
8. And post if there is any problem

thanx, 



On Wednesday, 17 July 2013 08:32:30 UTC+5:30, fiona wrote:
hi,

I m a new one to use appnium,i got some problems, 
after download  AppiumForWindows, and then unzipped on my E drive, how could i use it? ...as your and also some other articles mentioned, execute npm install, but some errors show up, like cannot find dependency....i just change the directory of the unzip folder, but seemed not work for other file cannot find dependency ...... (i know nothing about nodejs or npm,) i wonder if there is any more details about installed appnium on windows?

thanks!!!

在 2013年6月25日星期二UTC+8下午10时55分28秒,Pramod Sadaphal写道:
Hi,

I have downloaded AppiumForWindows-0.7.0 from http://appium.io/. But what next. I didn't get any proper documentation for running Appium on Windows. Also I haven't found any sample test project for automating android app using Java. I have also gone through the documentation from site http://appium.io/. Sorry, but not found useful. Is anybody able to run appium on windows for testing android app using Java?? Please share step by step approach for automating using Appium after downloading AppiumForWindows-0.7.0 on windows.

thanks.
 

Pramod Sadaphal

unread,
Jul 18, 2013, 11:46:43 AM7/18/13
to appium-...@googlegroups.com
Hi Fiona,
Can u please post whole logs??



On Tuesday, 25 June 2013 20:25:28 UTC+5:30, Pramod Sadaphal wrote:

fiona

unread,
Jul 18, 2013, 11:13:39 PM7/18/13
to appium-...@googlegroups.com
Hi Pramod,

here is the screen shot for the error, and my emulator was stopped here..
and the code are import from the example, 

 File classpathRoot = new File(System.getProperty("user.dir"));
        File appDir = new File(classpathRoot, "../../../apps/ContactManager");
        File app = new File(appDir, "ContactManager.apk");
        DesiredCapabilities capabilities = new DesiredCapabilities();
        capabilities.setCapability("device","Android");
        capabilities.setCapability(CapabilityType.BROWSER_NAME, "Android");
        capabilities.setCapability(CapabilityType.VERSION, "4.2");
        capabilities.setCapability(CapabilityType.PLATFORM, "Windows");
        capabilities.setCapability("app",app.getAbsolutePath());
        capabilities.setCapability("app-package", "com.example.android.contactmanager");
        capabilities.setCapability("app-activity", "com.example.android.contactmanager.ContactManager");

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



在 2013年7月18日星期四UTC+8下午11时46分43秒,Pramod Sadaphal写道:

Pramod Sadaphal

unread,
Jul 19, 2013, 3:35:51 AM7/19/13
to appium-...@googlegroups.com
Hi Fiona,

In your code I am seeing,

capabilities.setCapability("app-activity", "com.example.android.contactmanager.ContactManager");

Here I think your app-activity is  "ContactManager" only.
So try with,
capabilities.setCapability("app-activity", "ContactManager");

thanx,



On Tuesday, 25 June 2013 20:25:28 UTC+5:30, Pramod Sadaphal wrote:

fiona

unread,
Jul 19, 2013, 4:10:54 AM7/19/13
to appium-...@googlegroups.com
Thanks for your patient, my problem solved!!! i tried lots of ways before...............:(
and now I can also launch my own apk now

thanks a lot :)

在 2013年7月19日星期五UTC+8下午3时35分51秒,Pramod Sadaphal写道:

fiona

unread,
Jul 19, 2013, 5:20:41 AM7/19/13
to appium-...@googlegroups.com
Hi Pramod,

what if i need to operate several activities, 
i mean my test case is like this:
1. launch the application test 
2. click text "ssq"
3. click toggleButton[2],toggleButton[3],blah blah
after step 2, the application goes to another activity, and in the new activity, i need to click those toggleButtons, but remote server shows the error like last post mentioned, 
and I tried to put the second activity into capabilities, it doesnt work, i suppose i need to get a new session or something else?
if the application need to change from activity from activity....what should i do?
and how did you deal with these kind of situation?
here is my code:

thank you


在 2013年7月19日星期五UTC+8下午3时35分51秒,Pramod Sadaphal写道:

Pramod Sadaphal

unread,
Jul 19, 2013, 9:48:14 AM7/19/13
to appium-...@googlegroups.com
Hi Fiona,

You need not to define next activity. Appium takes care of it. But if the case is that your launcher activity is different than your current activity then you have to mention it in desired capabilities like below,

capabilities.setCapability("app-wait-activity", "your_activity_name");


 

On Tuesday, 25 June 2013 20:25:28 UTC+5:30, Pramod Sadaphal wrote:

fiona

unread,
Jul 22, 2013, 10:09:18 PM7/22/13
to appium-...@googlegroups.com
Hi,

Thanks for your help, there was something wrong with my environment before.
but its fine now, and I already wrote some test cases :)

在 2013年7月19日星期五UTC+8下午9时48分14秒,Pramod Sadaphal写道:

mummana subramanya

unread,
Jul 24, 2013, 8:07:26 AM7/24/13
to appium-...@googlegroups.com
hi pramod i have similar problem like her .I Am using .apk app the actions which are to perform are in 2nd activity so how can i perform it as i dnt knw the 2nd activity class name..please help me

fiona

unread,
Jul 24, 2013, 8:16:51 AM7/24/13
to appium-...@googlegroups.com
hi, 

in my case,  i dont need to get the second class's name, and the thing need to do is to find a new element in second activity and do some operates

在 2013年7月24日星期三UTC+8下午8时07分26秒,mummana subramanya写道:

Gulshan Saini

unread,
Jul 24, 2013, 8:20:03 AM7/24/13
to appium-...@googlegroups.com
Does appium have sample android app to test all available appium features for windows?

I just started again with appium and I do not have sample app to automate..

Any help will be really appreciated.

Thanks

On Tuesday, 25 June 2013 20:25:28 UTC+5:30, Pramod Sadaphal wrote:

mummana subramanya

unread,
Jul 24, 2013, 8:38:09 AM7/24/13
to appium-...@googlegroups.com
hi, actually my main activity is "splash" so no operations are to be performed and it waits for the  second activity in which i have buttons in order to perform the the operations   

Elangovan Ganesan

unread,
Jul 24, 2013, 9:10:13 AM7/24/13
to mummana subramanya, appium-...@googlegroups.com
Convert your .apk file into java classes. Then you can get your all activities classes.


Thanks & Best regards,
Elangovan G
Blog: Automatium



--

mummana subramanya

unread,
Jul 24, 2013, 9:26:02 AM7/24/13
to Elangovan Ganesan, appium-...@googlegroups.com
yup got a tool to get all the activities present in a. apk app refered link http://stackoverflow.com/questions/4191762/how-to-view-androidmanifest-xml-from-apk-file
 thanx alot

Jonathan Lipps

unread,
Jul 24, 2013, 1:58:56 PM7/24/13
to Gulshan Saini, appium-...@googlegroups.com
The test app we use for android is ApiDemos, included as a sample app in the Android SDK. It's modified source is here:


mummana subramanya

unread,
Jul 25, 2013, 1:11:44 AM7/25/13
to appium-...@googlegroups.com
hi,
pramod please help me i am getting error as



Exception in thread "main" org.openqa.selenium.remote.SessionNotFoundException: A session is either terminated or not started (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 8.91 seconds
Build info: version: '2.33.0', revision: '4e90c97', time: '2013-05-22 15:33:32'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.7.0_21'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:191)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:151)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554)
    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.sample.test.Test.main(Test.java:26)

Pramod Sadaphal

unread,
Jul 29, 2013, 11:04:23 AM7/29/13
to appium-...@googlegroups.com

Hi mummana,

Is your problem solved???

If not, paste your whole logs and desired capabilities which you set.

anil borse

unread,
Aug 5, 2013, 1:14:24 AM8/5/13
to appium-...@googlegroups.com
Hi Pramod,

I setup the appium but getting the below error while executing the code.

org.openqa.selenium.remote.SessionNotFoundException: A session is either terminated or not started (Original error: Could not find adb in tools, platform-tools, or build-tools; do you have android SDK installed?) (WARNING: The server did not provide any stacktrace information)

Please help me.

Umar Ali Khan

unread,
Aug 5, 2013, 1:48:25 AM8/5/13
to appium-...@googlegroups.com
Hi Pramod,

This is a good thread to start with Appium on windows 7 with java. I have two questions:
  1. How can I get the list activities valid for the given apk?
  2. What if I want to check a scenario for already installed app on the device. Say I want to launch a calculator, check 2+2 =4 and close the calculator.
Please help.

Regards
Umar

mummana subramanya

unread,
Aug 5, 2013, 2:53:31 AM8/5/13
to appium-...@googlegroups.com

u can use App resigner tool :) to get the packages and activities of a given apk

Umar Ali Khan

unread,
Aug 5, 2013, 2:57:40 AM8/5/13
to appium-...@googlegroups.com
Thanks Mummana,

How about the question # 2 : What if I want to check a scenario for already installed app on the device. Say I want to launch a calculator, check 2+2 =4 and close the calculator.

Regards
Umar
Message has been deleted

mummana subramanya

unread,
Aug 5, 2013, 6:13:57 AM8/5/13
to appium-...@googlegroups.com

Umar Ali Khan

unread,
Aug 6, 2013, 8:53:58 AM8/6/13
to appium-...@googlegroups.com
Thanks for all the help.

I am playing around with calculator native app. So far I am successful in mimicking 2+2=4. I want to get the result (that is displayed after pressing =) and I don;t know the the ID or Name of the text field which is showing the result. I am successful in locating 2, +, and = buttons and click on them but don't know the result field locator ID/Name.

Following code is working fine:
remoteWebDriver.findElementByName("2").click();
            remoteWebDriver.findElementByName("+").click();
            remoteWebDriver.findElementByName("2").click();
            remoteWebDriver.findElementByName("=").click();

Following code gives the problem:

System.out.println(remoteWebDriver.findElementById("com.android.calculator2:id/display").getText());

Help would be greatly appreciated.

chhagan mathuriya

unread,
Aug 8, 2013, 4:52:57 PM8/8/13
to appium-...@googlegroups.com, Pramod Sadaphal
Hi Pramod,

Thanks for detailed steps.
 
I am also trying to do the same and getting below error in step 4.

Couldn't read dependencies.

I have attached the screenshot.

any suggestions?

Thanks in advance.

On Wednesday, 26 June 2013 18:51:43 UTC+5:30, Pramod Sadaphal wrote:
Hi,
   Still not able to start android automation. I have performed following steps, please let me know if I am missing something.
I am using Windows 7, and creating test cases in Java for Android app.  
 
1. Downloaded AppiumForWindows from site http://appium.io/ and extracted zipped folder
2. Started android emulator with 4.2 platform(API level-17)
3. Ran adb devices command from cmd. Showed only one device connected
4. executed command:  npm install .
5. executed command:  reset.bat
6. executed command:  node server.js
7. appium started. Please cross check image
 


8. cloned "sauce_appium_junit" test project from GitHub
9. following is snapshot of program


10. ran project as Maven Test
11. Showed null pointer exception. I have attached log file.
12. At step 8, I also tried for creating new jUnit test project and run as Junit test, but got null pointer exception 



13. I also executed test project after installing my app in android emulator. But failed. 

please, help.


On Tuesday, 25 June 2013 20:44:34 UTC+5:30, bootstrap online wrote:
https://github.com/appium/appium/blob/master/docs/running-on-windows.md
error.png

Pramod Sadaphal

unread,
Aug 12, 2013, 1:48:58 AM8/12/13
to appium-...@googlegroups.com
are you trying to run appium on windows??
if yes then just download appium for windows from appium.io site. Unzip the folder and run Appium.exe in it. You need not to run npm install.


On Tuesday, 25 June 2013 20:25:28 UTC+5:30, Pramod Sadaphal wrote:
Hi,

Siva R

unread,
Aug 16, 2013, 5:12:13 AM8/16/13
to appium-...@googlegroups.com
Hi, I am new to Appium and i have a few points:

1. Does appium work for Windows XP or only for WIndows 7?
2. I had extracted the appium.dmg onto my machine, but not able to proceed further.. Can someone help me out here.

Thanks
Siva

Mansi Dahisaria

unread,
Aug 16, 2013, 5:31:21 AM8/16/13
to appium-...@googlegroups.com
Hi Siva,
Follow this link and you will get all the setup Details

Even I am new to Appium, so not sure whether it works for Windows XP or only for Windows 7

BUT I use it on Windows 7

Thanks!

mummana subramanya

unread,
Aug 16, 2013, 5:43:23 AM8/16/13
to appium-...@googlegroups.com
guys appium.dmg will work only on mac, yes appium works on both win xp and 7 .

I don't make software,I make software better.

On Friday, August 16, 2013 2:42:13 PM UTC+5:30, Siva R wrote:

Siva R

unread,
Aug 16, 2013, 9:01:32 AM8/16/13
to appium-...@googlegroups.com
Hi Mansi,

Thanks for the quick reply,

I was able to install appium on XP and installation is complete.

1. Where do u write the scripts for the emulator?
2. Do u write it in eclipse and then launch the emulator thru eclipse?
3. Do u use selenium webdriver commands to write the scripts in eclipse?

Any help would be of great help

Thanks,
Siva

Pramod Sadaphal

unread,
Aug 16, 2013, 11:07:18 AM8/16/13
to appium-...@googlegroups.com
Hi Siva,
1. Where do u write the scripts for the emulator?
-didn't get ur quest.
-No need to write diff scripts for emulator

2. Do u write it in eclipse and then launch the emulator thru eclipse?
-it will be better to write in eclipse
-You can test on emulator launched from eclipse, emulator launched from sdk, real device

3. Do u use selenium webdriver commands to write the scripts in eclipse?
-yes

Siva R

unread,
Aug 19, 2013, 12:47:56 AM8/19/13
to appium-...@googlegroups.com
Hi Pramod, 
Thanks again for the quickness.

1. So to get it straight, i write webdriver commands in eclipse to launch the emulator from eclipse, and also commands for launching the app and operations inside thru selenium. Once launched i use appium to automate the same, 

Are there any sample tests that you can help me with?
Thanks

Siva R

unread,
Aug 19, 2013, 12:51:53 AM8/19/13
to appium-...@googlegroups.com
Hi All,

Just one quick question, 

Can we test Native apps on the emulator using Selenium Webdriver? Or can we test only Browser based apps?

Pramod Sadaphal

unread,
Aug 19, 2013, 3:07:20 AM8/19/13
to appium-...@googlegroups.com
Yes, we can test native android and ios apps, on emulator and devices with Appium. Appium makes use of selenium webdriver for communicating with apps.

Siva R

unread,
Aug 19, 2013, 6:22:52 AM8/19/13
to appium-...@googlegroups.com
Thanks Pramod,

I downloaded appium, exe,
I am trying to start server.js but am getting JScript runtime error..

Siva

Siva R

unread,
Aug 19, 2013, 6:24:24 AM8/19/13
to appium-...@googlegroups.com
Image attached
untitled.JPG
Message has been deleted

Siva R

unread,
Aug 20, 2013, 1:27:38 AM8/20/13
to appium-...@googlegroups.com
Hi All,

I am unable to run server.js . It shows an exception...Can someone help me with this?

Siva

Dan Cuellar

unread,
Aug 20, 2013, 11:27:50 AM8/20/13
to appium-...@googlegroups.com
Have you donwloaded and installed nodejs? You need to type node server.js.

Also please post the exception, it will help use debug. Previously it looks like you are trying to run the code as plain javascript instead of nodejs

Siva R

unread,
Aug 22, 2013, 1:28:30 AM8/22/13
to appium-...@googlegroups.com
Hi Dan,

I was not able to find nodejs in the extracted folder. Can you please help me out on this?

-Siva

Pramod Sadaphal

unread,
Aug 22, 2013, 3:08:24 AM8/22/13
to appium-...@googlegroups.com
You have to google, download node.js, download it and install

Pramod Sadaphal

unread,
Aug 22, 2013, 3:08:05 AM8/22/13
to appium-...@googlegroups.com

Siva R

unread,
Aug 22, 2013, 5:09:35 AM8/22/13
to appium-...@googlegroups.com
Hi pramod, 

I have downloaded node.js and installed it.

Now i try running the following:- Please let me know if this is correct:-

C:\Documents and Settings\SN2036.CAMKMG-BLR>cd D:\Desktop\AppiumForWindows\Appiu
m\node_modules\appium

C:\Documents and Settings\SN2036.CAMKMG-BLR>node server.js

module.js:340
    throw err;
          ^
Error: Cannot find module 'C:\Documents and Settings\SN2036.CAMKMG-BLR\server.js
'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3


-Siva

Pramod Sadaphal

unread,
Aug 22, 2013, 7:22:47 AM8/22/13
to appium-...@googlegroups.com
are you able to run Appium.exe from appium folder and launch appium??

Siva R

unread,
Aug 23, 2013, 2:27:53 AM8/23/13
to appium-...@googlegroups.com
Yes...P F the screen shot..

-SIva

Siva R

unread,
Aug 23, 2013, 2:29:05 AM8/23/13
to appium-...@googlegroups.com
Attached
appi.JPG

Pramod Sadaphal

unread,
Aug 23, 2013, 9:26:51 AM8/23/13
to appium-...@googlegroups.com
then click on Launch... create your test cases...and run....

Siva R

unread,
Aug 26, 2013, 1:40:31 AM8/26/13
to appium-...@googlegroups.com
Hi Pramod, 

I launched appium.exe and clicked on Launch without changing any of the default settings.

A command prompt opened up with the following info.

info: Welcome to Appium v0.8.3 (REV 8b947cf9f5a8772553af12b8096d77b2ac7fd2af)
info: Appium REST http interface listener started on 127.0.0.1:4723
   info  - socket.io started

After that nothing is happening. 

Can you let me know how to proceed?

-Siva

Siva R

unread,
Aug 26, 2013, 1:45:41 AM8/26/13
to appium-...@googlegroups.com
Pramod, 

I checked the Launch AVD button and then clicked on Launch. and got the following exception:-

ee the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at Appium.MainWindow.Model.get_AVDToLaunch() in c:\Users\danc\Documents\GitHub\appium-dot-exe\Appium\MainForm\Model.cs:line 66
   at Appium.MainWindow.MainForm.LaunchButton_Click(Object sender, EventArgs e) in c:\Users\danc\Documents\GitHub\appium-dot-exe\Appium\MainForm\MainForm.cs:line 223
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1008 (RTMGDR.030319-1000)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Appium
    Assembly Version: 0.8.3.0
    Win32 Version: 0.8.3.0
    CodeBase: file:///D:/Desktop/AppiumForWindows/Appium/Appium.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1002 built by: RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1001 built by: RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1001 built by: RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.233 built by: RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Siva R

unread,
Aug 26, 2013, 7:23:59 AM8/26/13
to appium-...@googlegroups.com
Hi pramod, 

Is it possible for you to have a Webex session  / screen share session so that you can help me gothru with this, At your convenient time?

-Siva

Siva R

unread,
Aug 28, 2013, 12:27:36 AM8/28/13
to appium-...@googlegroups.com
Hi All,
i updated the SDK,

1. Was able to execute npm install and able to download the dependencies
2. Reset.bat 
3. node serv er.js (Server started successfully).

Now my emulator is already started. So when i click on Launch AVD and click on LAUNCH. i get an error but the command prompt closes immediately and hence am not able to capture the exception.

Dan Cuellar

unread,
Aug 28, 2013, 10:21:57 AM8/28/13
to appium-...@googlegroups.com
The launch AVD checkbox doesn't work right now. Please launch the AVD manually before the tests. There is already a GitHub issue on this.

Pari Mala

unread,
Feb 10, 2014, 5:31:58 AM2/10/14
to appium-...@googlegroups.com, Pramod Sadaphal
Hi, 

1) Downloaded AppiumForWindows
2) Extracted the contents
3) Double clicked the Appium(exe) file, received error "Appium has stopped working"
4) Navigated to the appium folder and executed command on the command line"npm install", received below error
"
H:\appium>npm install
npm ERR! install Couldn't read dependencies
npm ERR! package.json ENOENT, open 'H:\appium\package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.

npm ERR! System Windows_NT 6.1.7600
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd H:\appium
npm ERR! node -v v0.10.23
npm ERR! npm -v 1.3.17
npm ERR! path H:\appium\package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     H:\appium\npm-debug.log
npm ERR! not ok code 0
"
OS: WINDOWS 7
nodejs is already installed

Please help me with this


On Wednesday, 26 June 2013 21:35:45 UTC+5:30, Saikat Maitra wrote:
Hello 

Observed in your screenshot that the driver object is null and the object is not getting created. Can you please add the following line.

    driver = new SwipeableWebDriver(new URL("http://127.0.0.1:4723/wd/hub"), getSelendroidCapabilities());
       
Also add following class in your package.


public class SwipeableWebDriver extends RemoteWebDriver implements HasTouchScreen {
    private RemoteTouchScreen touch;

    public SwipeableWebDriver(URL remoteAddress, Capabilities desiredCapabilities) {
        super(remoteAddress, desiredCapabilities);
        touch = new RemoteTouchScreen(getExecuteMethod());
    }

    public TouchScreen getTouch() {
        return touch;
    }
}


Regards
Saikat




On Wed, Jun 26, 2013 at 6:51 PM, Pramod Sadaphal <pramodsa...@gmail.com> wrote:
Hi,
   Still not able to start android automation. I have performed following steps, please let me know if I am missing something.
I am using Windows 7, and creating test cases in Java for Android app.  
 
1. Downloaded AppiumForWindows from site http://appium.io/ and extracted zipped folder
2. Started android emulator with 4.2 platform(API level-17)
3. Ran adb devices command from cmd. Showed only one device connected
4. executed command:  npm install .
5. executed command:  reset.bat
6. executed command:  node server.js
7. appium started. Please cross check image
 


8. cloned "sauce_appium_junit" test project from GitHub
9. following is snapshot of program


10. ran project as Maven Test
11. Showed null pointer exception. I have attached log file.
12. At step 8, I also tried for creating new jUnit test project and run as Junit test, but got null pointer exception 



13. I also executed test project after installing my app in android emulator. But failed. 

please, help.


On Tuesday, 25 June 2013 20:44:34 UTC+5:30, bootstrap online wrote:
https://github.com/appium/appium/blob/master/docs/running-on-windows.md

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

Jonathan Lipps

unread,
Feb 10, 2014, 1:20:03 PM2/10/14
to Pari Mala, appium-...@googlegroups.com, Pramod Sadaphal
If you want to install appium from npm, this is what you do from any directory

npm install -g appium

Tarumoy biswas

unread,
Feb 21, 2014, 2:45:52 AM2/21/14
to appium-...@googlegroups.com
Hi,

Could please explain the step 5 in details.I mean where to write that code and how to write testcase and run?

On Wednesday, 17 July 2013 21:12:07 UTC+5:30, Pramod Sadaphal wrote:

Hi Fiona,

Are u trying Android on Windows + Java???
then do following steps;

1. Go to appium.io site on your windows PC and download AppiumForWindows
2. Unzip it
3. Now, the folder contains Appium.exe file, run it by double clicking, it will look like,
 



4. No need to change the IP address and port number.
5.In your program set desired capabilities at starting like below,(following is java code),

       
        DesiredCapabilities capabilities = new DesiredCapabilities();
        capabilities.setCapability(CapabilityType.BROWSER_NAME, "Android");
        capabilities.setCapability("device", "Android");
        capabilities.setCapability(CapabilityType.VERSION, "4.2");
        capabilities.setCapability(CapabilityType.PLATFORM, "Windows");
       
        capabilities.setCapability("app", "C:\\Android Apps\\Calculator.apk");      //This is path of your application
        capabilities.setCapability("app-package", "com.calculator");                    // This is package name of your app
        capabilities.setCapability("app-activity", "MainActivity");                          // This Launcher activity of your app

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


and then write your testcase.

5. Now Launch emulator or connect android device
6. Click on Launch button on appium.exe which you opened at step 3. (Make sure that first you have to connect device/launch emulator  and then launch Appium)
7. Execute your test cases
8. And post if there is any problem

thanx, 



On Wednesday, 17 July 2013 08:32:30 UTC+5:30, fiona wrote:
hi,

I m a new one to use appnium,i got some problems, 
after download  AppiumForWindows, and then unzipped on my E drive, how could i use it? ...as your and also some other articles mentioned, execute npm install, but some errors show up, like cannot find dependency....i just change the directory of the unzip folder, but seemed not work for other file cannot find dependency ...... (i know nothing about nodejs or npm,) i wonder if there is any more details about installed appnium on windows?

thanks!!!

在 2013年6月25日星期二UTC+8下午10时55分28秒,Pramod Sadaphal写道:
Hi,

I have downloaded AppiumForWindows-0.7.0 from http://appium.io/. But what next. I didn't get any proper documentation for running Appium on Windows. Also I haven't found any sample test project for automating android app using Java. I have also gone through the documentation from site http://appium.io/. Sorry, but not found useful. Is anybody able to run appium on windows for testing android app using Java?? Please share step by step approach for automating using Appium after downloading AppiumForWindows-0.7.0 on windows.

thanks.
 
Reply all
Reply to author
Forward
0 new messages