标签:
source文件,里面添加和src目录相同的包。 AndroidManifest.xml文件manifest根节点添加如下文件 <instrumentation
android:name="android.test.InstrumentationTestRunner"
android:targetPackage="com.zlpro.mobilesafe" >
</instrumentation>
application节点下添加 <uses-library android:name="android.test.runner" />
java文件继承AndroidTestCase类,在里面直接写要测试代码就可以了,
getContext()。 标签:
原文地址:http://www.cnblogs.com/ganwei/p/4787158.html