can I run junit test on Android device and see the application running the test in the device at the same time?
If it is posible, can i take screenshots of the tests ??
I create the testcase, and works. Like this..
public TestCase(Class activityClass) {
super("com.xxxx.xxxxx", xxxxxx.class);
// TODO Auto-generated constructor stub
}
@Override
protected void setUp() throws Exception {
super.setUp();
LoginActivity mainActivity = getActivity();
result = (EditText) mainActivity.findViewById(R.id.edit_xxx);
result.setText("holahola");
Button btn = (Button) mainActivity.findViewById(R.id.btn_xxx);
btn.performClick();
}