Friday, August 8, 2014

Configure android App with ANT



CONFIGURE THE ANDROID WITH ANT

1.set the androiod sdk path

   "PATH=/Users/Vinothini/Downloads/android-sdk-macosx/tools/:$PATH"

2.copy the file and create two dir as "sample.app" and "sample.test"

3.Go to your project directory with console and run the following command:
                   “ android update project -p .“
Note that �.� (dot) after -p (path to project) flag, means �current folder�.
It will update and rebuild your Android project files and create build.xml file, which will be used by ANT to build your project.

4.Then go to your test project folder with console and run update command for the test project:

“android update test-project -m _PATH_TO_ANDROID_PROJECT -p _TEST_PROJECT_PATH_”

At this point, we have two projects with prepared and build.xml files.

                   Let�s try to build them!

5.Go to your project folder and run:

                      “ant clean debug”
This command should start compilation.


6. Afterwards, cd to your test project folder, start Android emulator and run in console:

                 “ant all clean emma debug install test”


REFERENCE:

http://www.ontestautomation.com/running-selenium-webdriver-tests-in-jenkins-using-ant/

http://blackriver.to/2012/02/android-continuous-integration-with-ant-and-jenkins-part-1/

No comments:

Post a Comment