• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • Android系統單元測試方法(5)

    發表于:2011-06-30來源:未知作者:領測軟件測試網采編點擊數: 標簽:
    super .setUp(); } @Override protected void tearDown() throws Exception{ super .tearDown(); } @LargeTest public void testImageCapture(){ Instrumentationinst=getInstrumentation(); try { for ( int i= 0 ;
    super.setUp();   
  •     }   
  •   
  •     @Override  
  •     protected void tearDown() throws Exception {   
  •         super.tearDown();   
  •     }   
  •   
  •     @LargeTest  
  •     public void testImageCapture() {   
  •         Instrumentation inst = getInstrumentation();   
  •         try {   
  •             for (int i = 0; i < TOTAL_NUMBER_OF_IMAGECAPTURE; i++) {   
  •                 Thread.sleep(WAIT_FOR_IMAGE_CAPTURE_TO_BE_TAKEN);   
  •                 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_UP);   
  •                 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER);   
  •                 Thread.sleep(WAIT_FOR_IMAGE_CAPTURE_TO_BE_TAKEN);   
  •             }   
  •         } catch (Exception e) {   
  •             Log.v(TAG, e.toString());   
  •         }   
  •             assertTrue("testImageCapture"true);   
  •     }   
  •   
  •     @LargeTest  
  •     public void testVideoCapture() {   
  •         Instrumentation inst = getInstrumentation();   
  •         //Switch to the video mode   
  •         inst.sendKeyDownUpSync(KeyEvent.KEYCODE_MENU);   
  •         inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER);   
  •         try {   
  •             for (int i = 0; i < TOTAL_NUMBER_OF_VIDEOCAPTURE; i++) {   

    原文轉自:http://www.kjueaiud.com

  • 老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>