Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I'd go with Robotium since Calculon is still in very early stages. Here's a comment from Calculon's author:</p> <blockquote> <p>Well, currently it’s just a bunch of source files which I pulled out of another project...Note that this library is still a very early prototype. Its API will probably change. <a href="http://brainflush.wordpress.com/2010/01/10/introducing-calculon-a-java-dsl-for-android-activity-testing/#comment-769" rel="nofollow noreferrer">Source</a></p> </blockquote> <p>I've played with Robotium today, it definitely makes writing functional tests fun. To give you an idea, here are a few method highlights from the API:</p> <ul> <li>clickOnButton, clickOnText</li> <li>enterText</li> <li>getCurrentButtons, getCurrentEditTexts, getCurrentImageViews, getCurrentSpinners, getCurrentTextViews</li> <li>pressMenuItem, pressSpinnerItem</li> <li>searchText, searchEditText, searchButton</li> </ul> <p>Here is a code sample from the Getting Started Guide:</p> <pre><code> public void testTextIsSaved() throws Exception { solo.clickOnText("Other"); solo.clickOnButton("Edit"); assertTrue(solo.searchText("Edit Window")); solo.enterText(1, "Some text for testing purposes") solo.clickOnButton("Save"); assertTrue(solo.searchText("Changes have been made successfully")); solo.clickOnButton("Ok"); assertTrue(solo.searchText("Some text for testing purposes"));} </code></pre> <p>Definitely give it a try if you're going to write <strong>ActivityInstrumentationTestCase2</strong> classes. Check out the <a href="http://code.google.com/p/robotium/wiki/Getting_Started" rel="nofollow noreferrer">Getting Started</a> guide for instructions. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload