I'm very new to this and I have a problem.
I'm writing test to a simple app I found on the Internet. Right now, this is how my code looks like
package com.example.test.test;
import android.os.Bundle;
import android.app.Activity;
import android.content.Context;
import android.test.ActivityInstrumentationTestCase2;
import android.test.suitebuilder.annotation.Smoke;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.robotium.solo.Solo;
import com.example.test.MainActivity;
import com.example.test.R;
public class MainActivityTest extends ActivityInstrumentationTestCase2<MainActivity> {
private Solo solo;
public MainActivityTest() {
super("com.example.test", MainActivity.class);
}
@Override
public void setUp() throws Exception {
super.setUp();
solo = new Solo(getInstrumentation(), getActivity());
}
public void testClickShowButton() throws Exception {
solo.clickOnView(solo.getView(R.id.button1));
assertTrue(solo.searchText("Witaj"));
}
public void testClickClearButton() throws Exception {
solo.clickOnView(solo.getView(R.id.button2));
}
public void testClickClickMeButton() throws Exception {
solo.clickOnView(solo.getView(R.id.button3));
assertTrue(solo.searchText("No hej co tam?"));
}
@Override
public void tearDown() throws Exception {
solo.finishOpenedActivities();
}
}
And whenever I am running those tests, they are always running all at the same time. What I want to do is to just run one test - to click first button. Then, I wanna manually do second test - to click second button. Then again I wanna do manually third tests - to click third button. Unfortunately, Eclipse insists on running all tests.
Also, totally unrelated: I wanna write a test where Robotium will enter some data in TextBox and then Robotium will erase it. How do I do that?