软件测试之Android单元测试  单元测试工具

  android源代码中每个app下中都自带了一个test用例,下面主要介绍下camra单元测试用例

  在AndroidManifest.xml中标明了测试用例instrumentation函数入口

      Java代码

   package="com.android.camera.tests">

  android:targetPackage="com.android.camera"

  android:label="Camera Launch Performance">

  android:targetPackage="com.android.camera"

  android:label="Camera Stress Test InstrumentationRunner">

  android:targetPackage="com.android.camera"

  android:label="Tests for Camera application."/>

  package="com.android.camera.tests">

  android:targetPackage="com.android.camera"

  android:label="Camera Launch Performance">

  android:targetPackage="com.android.camera"

  android:label="Camera Stress Test InstrumentationRunner">

  ndroid:targetPackage="com.android.camera"

  android:label="Tests for Camera application."/>

  camera启动性能测试

Java代码

复制代码

  package com.android.camera;