stephenwang1011 / robotium

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

help???when Assert.assertEquals() fails, the rest robotuim code can not run????? #295

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
the following code is:
Assert.assertEquals();
solo.goBackToActivity();

when Assert.assertEquals() fails, the next function does not run, why?
who knows the reason????

Original issue reported on code.google.com by liangxia...@umeng.com on 19 Jul 2012 at 6:32

GoogleCodeExporter commented 9 years ago
Assert.assertEquals() true,run the next function.

Original comment by yangdong...@gmail.com on 19 Jul 2012 at 6:48

GoogleCodeExporter commented 9 years ago
That is how asserts work. You can save the result and use the assert last in 
your test case:

boolean saveResult = solo.searchtext();

...
...
...

Assert.assertTrue(saveResult);

Original comment by renasr...@gmail.com on 19 Jul 2012 at 5:16