zzwendy / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

test case failure #626

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by sanjotha...@gmail.com on 14 Aug 2014 at 6:46

GoogleCodeExporter commented 9 years ago
what I meant by correct in the issue description is that the test case 
executes. wrong is that the test case doesnot execute.

Original comment by sanjotha...@gmail.com on 14 Aug 2014 at 10:19

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

Original comment by renasr...@gmail.com on 18 Aug 2014 at 6:09