软件测试
黑盒测试:不知道软件的源代码
白盒测试: 知道应用程序的源代码
测试的力度
- 单元测试 junit text
- 集成测试 intergration text
- 系统测试 system text
测试的程度
- 压力测试 pressure text
- 冒烟测试 smoke text
Android下的Junit测试
步骤
编写一个业务方法
编写测试类
-
在清单文件中配置参数
<!-- 测试的指令集 --> <instrumentation android:name="android.text.InstrumentationTextRuner" android:targetPackage="com.itheimo.junit"> </instrumentation> <!-- 测试需要的jar包 --> <uses-library android:name="android.text.runner"/>