When I am running the test cases separately test case passes successfully, but when I am running complete test suite the test runner crash showing the above error message. I have investigated this issue but didn't get the specific answer please help me to solve this issue?
10
- what in device logcat?Ehcnalb– Ehcnalb2019-06-24 15:20:53 +00:00Commented Jun 24, 2019 at 15:20
- Thanks for replay!, I didn't take a complete logcat but the only error message is `Reason: 'Test run failed to complete. Expected 87 tests, received 47'.Aniket Yawalkar– Aniket Yawalkar2019-06-24 15:32:10 +00:00Commented Jun 24, 2019 at 15:32
- May be a condition in Before or BeforeClass is not when you do test suiteEhcnalb– Ehcnalb2019-06-25 07:53:00 +00:00Commented Jun 25, 2019 at 7:53
- I have added the code to register the idling resources in the BeforeClass() @BeforeClass public static void beforeClass() { IdlingRegistry.getInstance().register(EspressoIdlingResource.getIdlingResource()); }Aniket Yawalkar– Aniket Yawalkar2019-06-25 08:16:55 +00:00Commented Jun 25, 2019 at 8:16
- and in the @Before() @RequiresApi(api = Build.VERSION_CODES.KITKAT) @Before public void setUp() { SharedPreferences.Editor prefs = PreferenceManager.getDefaultSharedPreferences(getInstrumentation().getTargetContext()).edit(); prefs.remove("active_meal_uri").apply(); logout(); selectPrefsAndEnvironment(VALUE_ENVIRONMENT_PREPROD); }Aniket Yawalkar– Aniket Yawalkar2019-06-25 08:18:48 +00:00Commented Jun 25, 2019 at 8:18
| Show 5 more comments