RobotiumTech / robotium

Android UI Testing
http://www.robotium.org
Apache License 2.0
2.86k stars 786 forks source link

test case failure #705

Closed renas closed 9 years ago

renas commented 9 years ago

From sanjotha...@gmail.com on August 13, 2014 23:46:41

when executing a set of test cases if 1 fails, all the test cases following that fail(though they are correct).

//test case for login public void test_alogin() { solo.enterText(0, "xyz"); solo.sleep(2000); solo.clickOnButton("Login"); solo.sleep(5000); solo.goBack(); solo.sleep(2000); solo.clickOnButton(0); }

//test case for login
public void test_blogin()
{
    solo.enterText(0, "xyz");
    solo.sleep(2000);
    solo.clickOnButton("Login");
    solo.sleep(5000);
    solo.clickOnButton(0);
    solo.clickOnButton(0);// extra stmt to generate error
    solo.goBack();
    solo.sleep(2000);
    solo.clickOnButton(0);
}

//test case for login
public void test_clogin()
{
    solo.enterText(0, "xyz");
    solo.sleep(2000);
    solo.clickOnButton("Login");
    solo.clickOnButton(0);
    solo.sleep(5000);   
    solo.goBack();
    solo.sleep(2000);
    solo.clickOnButton(0);
}

first and last test casess are correct but the second one is wrong because of which third one does not get executed.

Original issue: http://code.google.com/p/robotium/issues/detail?id=626

renas commented 9 years ago

From sanjotha...@gmail.com on August 14, 2014 03:19:42

what I meant by correct in the issue description is that the test case executes. wrong is that the test case doesnot execute.

renas commented 9 years ago

From renasr...@gmail.com on August 17, 2014 23:09:48

Probably this is due to the app not closing properly. Consecuently the following test cases can't open the activity.

Status: Invalid
Owner: renasr...@gmail.com