报错如下图所示:
具体原因:
AndroidManifest.xml中的代码如下:
<instrumentation
android:name="com.cma.launcher.lite.test.TestSuit"
android:targetPackage="com.cma.launcher.lite"
android:label="ClauncherLiteTest"/>
解决办法:
选择项目,右键run as -->Run configurations....,打开“Run configurations”窗口,如下图所示,选择“Test”,在Instrumentation runner中选择com.cma.launcher.lite.test.TestSuit,再次运行之后,就不会报此错误了。
版权声明:本文为博主原创文章,未经博主允许不得转载。
分享到:
相关推荐
Robotium_Test Android Sample App.pdf
This is a step-by-step, ... It's assumed that you have some experience in Android development, as well be familiar with the Android test framework, as Robotium is a wrapper to Android test framework.
官方版本,亲测可用
ActivityTestRule 可以提供 Single Activity 做 Functional Test 的 @Rule 他會在 第一個 @Before、@Test 開始前就被啟動,在 @Test , 最後一個 @After 結束之後被終止。 這就解釋了為何只是宣告 ActivityTestRule ...
智慧停車場,含圖示檔、layout檔及資源檔
org.springframework.test-3.0.2.RELEASE.jar 需要的朋友来下载吧
1、Robotium在APK(米聊)文件下进行java junit Test。 三、测试工具 1、米聊.apk (Package name: com.xiaomi.channel) 2、Eclipse。 3、插件:ADT (Android Development Tools) 4、SDK (Android SDK) 5、JDK 6.、...
org.springframework.test-3.0.0.M3.jar 包
Due to a number of different key features added to the Robotium Framework, it has become the world’s leading Android test automation framework and most of the industry experts and professionals are ...
介绍了Android中的junit测试,练习了assertEquals、参数化测试、assertThat、@Rule用法的用法 原博客地址:https://blog.csdn.net/u010356768/article/details/100051897
appium-uiautomator2-server-debug-androidTest.apkappium-uiautomator2-server-debug-androidTest.apk
Full resolution colour figures and project files can be viewed and downloaded from the the book's website: www.android-java.website. Table of Contents CHAPTER 1. INTRODUCTION CHAPTER 2. SETTING UP ...
binding_test.gobinding_test.gobinding_test.gobinding_test.gobinding_test.gobinding_test.gobinding_test.gobinding_test.gobinding_test.gobinding_test.gobinding_test.gobinding_test.gobinding_test....
xUnit.Test.Patterns.Refactoring.Test.Code.May.2007
Wrox.Professional.Test.Driven.Development.with.C#.Developing.Real.World.Applications.with.TDD
cnews.test.txt
Test Android .java
Android, the next-generation open mobile platform from Google and the Open Handset Alliance, is poised to become a significant player in the mobile device market. The Android platform gives developers...
package com.yarin.android.qiehuan; import android.app.AlertDialog; import android.app.Dialog; import android.app.TabActivity; import android.content.DialogInterface; import android.graphics.Color; ...