Integrating uiautomator test cases with Instrumentation test cases
<p>We have already written test cases in Android Instrumentation with <code>InstrumentationTestRunner</code> now as this does not support app switching so we have planned to create some <code>UIAutomation</code> based test cases but we are struggling in merging this test cases. We want to create a single suite from where we can run <code>Instrumentation</code> as well as <code>UiAutomator</code> test cases.</p>

<p>As far as I know for running UiAutomator requires <code>AndroidJUnitRunner</code> but this does not support Instrumentation test cases.</p>