Android系统单元测试方法(4)
发表于:2011-06-30来源:未知作者:领测软件测试网采编点击数:
标签:
import android.view.KeyEvent; /** *Junit/Instrumentationtestcaseforcameratest * *Runningthetestsuite: * *adbshellaminstrument\ *-eclasscom.android.camera.stress.ImageCapture\ *-wcom.android.camera.tes
import android.view.KeyEvent;
public class ImageCapture extends ActivityInstrumentationTestCase2 <Camera> {
private String TAG = "ImageCapture";
private static final int TOTAL_NUMBER_OF_IMAGECAPTURE = 100;
private static final int TOTAL_NUMBER_OF_VIDEOCAPTURE = 100;
private static final long WAIT_FOR_IMAGE_CAPTURE_TO_BE_TAKEN = 1000;
private static final long WAIT_FOR_VIDEO_CAPTURE_TO_BE_TAKEN = 50000;
private static final long WAIT_FOR_PREVIEW = 1000;
public ImageCapture() {
super("com.android.camera", Camera.class);
}
@Override
protected void setUp() throws Exception {
getActivity();
原文转自:http://www.ltesting.net