流沙团
android测试编写步骤
2016-8-14 流沙团


1\编写一个类继承( extends AndroidTestCase)



2\编写测试运行的方法



3\在manifest中添加



 <instrumentation 

        android:name="android.test.InstrumentationTestRunner"

        android:targetPackage="com.gyarmy.test1" >

    </instrumentation>

4\在application中添加



<uses-library

            android:name="android.test.runner">

            

        </uses-library>



5\ 启动模拟器 run as Android junit 测试!







6\运行测试程序





发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容