1

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? Commented 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'. Commented Jun 24, 2019 at 15:32
  • May be a condition in Before or BeforeClass is not when you do test suite Commented 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()); } Commented 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); } Commented Jun 25, 2019 at 8:18

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.