Java – Run the Android emulator from Jenkins to run Junit tests using Robotium

Run the Android emulator from Jenkins to run Junit tests using Robotium… here is a solution to the problem.

Run the Android emulator from Jenkins to run Junit tests using Robotium

How do I run the Android emulator from Jenkins to run my tests?
When I write in the Execiute Windows bath command, run the command for the emulator:

emulator -avd Tester

Then run my tests and I have this error :

.. >emulator -avd Tester ’emulator’ is not recognized as an internal
or external command, operable program or batch file.

.. >exit 9009 Build step ‘Execute Windows batch command’ marked build
as failure

I set the path to Android_SDK and java in the Windows path and it runs from cmd.
What should I do to run the emulator?

Solution

You can use Android Emulator Plugin for Jenkins Automate the process

Related Problems and Solutions