Android系統單元測試方法

發表于:2011-06-30來源:未知作者:領測軟件測試網采編點擊數: 標簽:
Android系統單元測試方法,android源代碼中每個app下中都自帶了一個test用例,下面主要介紹下camra單元測試用例在AndroidManifest.xml中標明了測試用例instrumentation函數入口
android源代碼中每個app下中都自帶了一個test用例,下面主要介紹下camra單元測試用例

在AndroidManifest.xml中標明了測試用例instrumentation函數入口

Java代碼 復制代碼 收藏代碼
  1. <?xml version="1.0" encoding="utf-8"?>   
  2. <!-- Copyright (C) 2011 The Android Open Source Project   
  3.   
  4.      Licensed under the Apache License, Version 2.0 (the "License");   
  5.      you may not use this file except in compliance with the License.   
  6.      You may obtain a copy of the License at   
  7.      
  8.           http://www.apache.org/licenses/LICENSE-2.0   
  9.      
  10.      Unless required by applicable law or agreed to in writing, software   
  11.      distributed under the License is distributed on an "AS IS" BASIS,   
  12.      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   
  13.      See the License for the specific language governing permissions and   
  14.      limitations under the License.   
  15. -->   
  16.   
  17. <manifest xmlns:android="http://schemas.android.com/apk/res/android"  
  18.     package="com.android.camera.tests">   
  19.   
  20.     <application>   
  21.         <uses-library android:name="android.test.runner" />   
  22.     </application>   
  23.   
  24.     <instrumentation android:name="CameraLaunchPerformance"  
  25.             android:targetPackage="com.android.camera"  
  26.             android:label="Camera Launch Performance">   
  27.     </instrumentation>   
  28.        
  29.     <instrumentation android:name="com.android.camera.CameraStressTestRunner"  
  30.              android:targetPackage=

    原文轉自:http://www.anti-gravitydesign.com

国产97人人超碰caoprom_尤物国产在线一区手机播放_精品国产一区二区三_色天使久久综合给合久久97