Monday, April 25, 2011

MonkeyRunner Automation Testing Tool for Android O.S

MonkeyRunner Automation Testing Tool for Android O.S: 
The monkeyrunner tool provides an API for writing programs that control an Android device or emulator from outside of Android code. With monkeyrunner, you can write a Python program that installs an Android application or test package, runs it, sends keystrokes to it, takes screenshots of its user interface, and stores screenshots on the workstation. The monkeyrunner tool is primarily designed to test applications and devices at the functional/framework level and for running unit test suites, but you are free to use it for other purposes.
The monkeyrunner tool is not related to the UI/Application Exerciser Monkey, also known as the monkey tool. The monkey tool runs in an adb shell directly on the device or emulator and generates pseudo-random streams of user and system events. In comparison, the monkeyrunner tool controls devices and emulators from a workstation by sending specific commands and events from an API.
The monkeyrunner tool provides these unique features for Android testing:
  • Multiple device control: The monkeyrunner API can apply one or more test suites across multiple devices or emulators. You can physically attach all the devices or start up all the emulators (or both) at once, connect to each one in turn programmatically, and then run one or more tests. You can also start up an emulator configuration programmatically, run one or more tests, and then shut down the emulator.
  • Functional testing: monkeyrunner can run an automated start-to-finish test of an Android application. You provide input values with keystrokes or touch events, and view the results as screenshots.
  • Regression testing - monkeyrunner can test application stability by running an application and comparing its output screenshots to a set of screenshots that are known to be correct.
  • Extensible automation - Since monkeyrunner is an API toolkit, you can develop an entire system of Python-based modules and programs for controlling Android devices. Besides using the monkeyrunner API itself, you can use the standard Python os and subprocess modules to call Android tools such as Android Debug Bridge.
    You can also add your own classes to the monkeyrunner API. This is described in more detail in the section Extending monkeyrunner with plugins.

    The monkeyrunner tool uses Jython, a implementation of Python that uses the Java programming language. Jython allows the monkeyrunner API to interact easily with the Android framework. With Jython you can use Python syntax to access the constants, classes, and methods of the API.
  • MonkeyRunner is an open-source tool used for automating functional tests for Android applications. It is a part of the Android SDK and is built on top of the Jython language. It provides a simple API for writing scripts to simulate user interaction with an Android device or emulator, such as tapping on buttons, entering text, and taking screenshots.

  • MonkeyRunner uses the Android Debug Bridge (ADB) to connect to the device or emulator, and the scripts are written in Python. The tool provides various functions to interact with the device, such as touching the screen, pressing buttons, taking screenshots, and more. The scripts can also be used to automate complex tasks, such as installing and uninstalling apps, rebooting the device, and capturing logs.

  • One of the advantages of using MonkeyRunner is that it allows for cross-platform testing, as it can be used to test applications on multiple devices and emulators. It also enables developers to run tests on a variety of Android versions and screen sizes.

  • However, MonkeyRunner has some limitations, such as the lack of support for testing gestures and animations, which are important features in many Android applications. Additionally, it can be challenging to debug scripts and troubleshoot errors, as the tool does not provide detailed error messages.

  • Overall, MonkeyRunner is a useful tool for automating functional tests for Android applications. It provides a simple API and allows for cross-platform testing, but it has some limitations and can be challenging to debug.

28 comments:

Anonymous said...

Nice post. I was checking constantly this
blog and I'm impressed! Extremely helpful information particularly the last part :) I care for such information a lot. I was seeking this certain information for a long time. Thank you and good luck.

Feel free to surf to my site :: graduate certificate programs
My site :: what is a graduate certificate

Anonymous said...

I blog often and I truly thank you for your information. Your article
has truly peaked my interest. I will book mark your website and keep checking for new information about once a week.
I opted in for your RSS feed as well.

Here is my site - moodaah.com ()

Anonymous said...

I could not resist commenting. Perfectly written!

Stop by my blog post - goji actives, http://seron93.kr/xe/?document_srl=109062,

Anonymous said...

From the picture, and it's just a picture, and a rendering,
at that, it looks like there will be some wooden lining in it.
So, what they've done is fill in a gap in the market - kind of like what Porsche did with the Cayman. Sellers did
not do their research when posting their app-loaded phones on e - Bay.


my weblog: ways to cheat in flappy bird

Anonymous said...

It's really a great and useful piece of info.
I'm happy that you just shared this useful info with us. Please keep us up to date like this.
Thank you for sharing.

my weblog - Best Tooth Whitening

Anonymous said...

Quality content is the secret to invite the viewers to pay a visit the website, that's what
this website is providing.

Here is my web-site :: brand fashion watch

Anonymous said...

For lets not kid ourselves, even though he is only finishing high school Sutter can be clearly defined as an alcoholic.
The nautical star is starting to become popular and when coloured
in red with black can look effective. 4) "A kiss is a lovely trick designed by nature to stop speech when words become superfluous. The pointed or round toes of your boots will create an edgy effect on your outfit. Let him know you feel safe with him while holding on to his arm.

Here is my page - cute acrylic nail designs nail art

Anonymous said...

Hello there! I know this is kinda off topic but I'd figured
I'd ask. Would you be interested in exchanging links or maybe
guest authoring a blog article or vice-versa? My site covers a lot of the same subjects as yours and I think we could greatly benefit from each other.
If you happen to be interested feel free to shoot me an email.
I look forward to hearing from you! Fantastic blog by the way!


Also visit my web blog :: georgia natural gas

Anonymous said...

What i do not understood is in truth how you're now not really a lot more well-preferred than you may be right now.

You are so intelligent. You already know thus considerably in terms of this subject, made me individually consider it from a lot of varied angles.

Its like women and men don't seem to be interested unless it is something to accomplish with Woman gaga!
Your individual stuffs nice. At all times maintain it up!

Feel free to visit my web page - kids karaoke machine

Anonymous said...

buy electronic cigarette, e cig, e cigarette, e cigarette, e cigarette, best electronic cigarette

Unknown said...

Nice post. I was checking constantly this
blog and I'm impressed! Extremely helpful information particularly the last part :) This is very nice and helpful at all , and the familiar greeting of business opportunities Peluang Bisnis Modal Kecil
bisnisr kreatif
ide bisnis

Unknown said...









Lucky me I came across your blog by chance
http://www.prokr.net/2016/09/tanks-isolation-companies-8.html
http://www.prokr.net/2016/09/tanks-isolation-companies-7.html
http://www.prokr.net/2016/09/tanks-isolation-companies-6.html
http://www.prokr.net/2016/09/tanks-isolation-companies-5.html
http://www.prokr.net/2016/09/tanks-isolation-companies-4.html
http://www.prokr.net/2016/09/tanks-isolation-companies-3.html
http://www.prokr.net/2016/09/tanks-isolation-companies-2.html
http://www.prokr.net/2016/09/tanks-isolation-companies.html

obat alami hipertensi said...

Other than that, wonderful blog!
tentang hepatitis a | obat sakit gagal jantung

6 Langkah Efektif Cegah Infeksi saat Hamil said...

I am extremely inspired along with your writing skills as smartly as withh thhe format in your blog. Is that this a paid theme or did you customize it yourself? Anyway keep up the nice quality writing, it is uncommon tto see a great weblog like this onne these days. visit me back : pengobatan alami gagal jantung

Obat Herbal Untuk Penanganan Ulkus Peptikum said...

I am extremely inspired along with your writing skills as smartly as withh thhe format in your blog. Is that this a paid theme or did you customize it yourself? Anyway keep up the nice quality writing, it is uncommon tto see a great weblog like this onne these days. visit me back : obat hipertensi

Menyembuhkan Hernia Pada Anak Tanpa Operasi said...

I’ll appreciate iff you proceed this iin future. Numerous other people might be benefited from your writing. Cheers!
please visit : pengobatan hepatitis

Suba said...

Your content on Ranorex tool is awesome. I gained many info on selenium testing tool. thanks
Cloud Computing Courses in Chennai
Hadoop Training in Chennai
Digital Marketing Course in Chennai
Selenium Training in Chennai
JAVA Training in Chennai
German Classes in chennai
web designing course in chennai
web designing training in chennai

Raju said...

This article really helps me to know more about this technology.Thanks for sharing this information in your blog, keep doing this continuously.
Selenium Training in Chennai
Selenium Course in Chennai
Selenium Training in Velachery
Selenium Training in Tambaram
Selenium Training in Anna Nagar
Software Testing Training in Chennai
Software Testing Course in Chennai
Software Testing Training in Velachery

Google Ads Services | Google Ads Management Agency said...

Thanks for sharing an informative blog keep rocking bring more details.I like the helpful info you provide in your articles. I’ll bookmark your weblog and check again here regularly. I am quite sure I will learn much new stuff right here! Good luck for the next!
Web Design Training in Chennai | Web Designing Training and Placement
Web Designing Classes in Chennai | Web Designing Institute in Chennai
Web Designing Course in Chennai with Placement | Best Institute for Web Designing

Anonymous said...

Wishing you the best of luck for all your blogging efforts read this.
Salesforce Training | Online Course | Certification in chennai | Salesforce Training | Online Course | Certification in bangalore | Salesforce Training | Online Course | Certification in hyderabad | Salesforce Training | Online Course | Certification in pune

Anonymous said...

I just got to this amazing site not long ago. I was actually captured with the piece of
resources you have got here. Big thumbs up for making such wonderful blog page!
Salesforce Training | Online Course | Certification in chennai | Salesforce Training | Online Course | Certification in bangalore | Salesforce Training | Online Course | Certification in hyderabad | Salesforce Training | Online Course | Certification in pune

subha said...

It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me... good work
Ai & Artificial Intelligence Course in Chennai
PHP Training in Chennai
Ethical Hacking Course in Chennai Blue Prism Training in Chennai
UiPath Training in Chennai

Data Science Institute In Banglore said...

Great Article it its really informative and innovative keep us posted with new updates. its was really valuable. thanks a lot.
Data Science Certification in Bangalore

Digital Weekday said...

ROWE ROWE
ROWE ROWE
ROWE ROWE
ROWE ROWE
ROWE ROWE
ROWE ROWE
ROWE ROWE
ROWE ROWE

Digital Weekday said...

ROWE ROWE
ROWE ROWE
ROWE ROWE
ROWE ROWE
ROWE ROWE
ROWE ROWE
ROWE ROWE
ROWE ROWE

Anonymous said...

Great Write up. Similarly follow my blog on 5 Ways to use Push Notification to boost user engagement

Anonymous said...

look at these guys best replica bags online you could try these out aaa replica bags discover this info here 7a replica bags wholesale

traininginstitute said...

I think this is a really good article. You make this information interesting and engaging. You give readers a lot to think about and I appreciate that kind of writing.
data science training