将Compute SDK版本升级到28后,Android Instrumentation测试用例无法正常工作

时间:2019-04-03 07:00:35

标签: android automation android-espresso

I am using compile SDK version 27 and I have 1000's of espresso test cases. When I am trying to upgrade to compile SDK version to 28 all the test cases not working and it says test cases running and stays there. Is it compulsory to migrate to AndroidX if we are updating compile & target sdk version to 28?

I have tried updating compile time SDK to 28
I have updated support library version also to 28
I updated all my third party library versions as well
I have tried writing new test case just to check activity is launching or not still the testcase is not working.
  1. 我正在使用编译SDK版本28
  2. 目标SDK 27
  3. 支持库版本28
  4. Espresso 3.0.2版

    实现“ com.android.support:appcompat-v7:28.0.0” 实现“ com.android.support:support-v4:28.0.0” 实现“ com.android.support:design:28.0.0” 实现“ com.android.support:support-annotations:28.0.0” 实施“ com.android.support:support-compat:28.0.0”

    预期结果是测试用例应启动活动并继续运行测试用例 但是实际结果是测试用例长时间运行并且应用程序无法启动

0 个答案:

没有答案