public class MonkeyTestRunner extends Object
Constructor and Description |
---|
MonkeyTestRunner(int eventCount,
com.android.ddmlib.IDevice remoteDevice) |
Modifier and Type | Method and Description |
---|---|
void |
addArg(String name,
String value) |
void |
addBooleanArg(String name,
boolean value) |
void |
addLongArg(String name,
long value) |
void |
cancel() |
void |
run(Collection<com.android.ddmlib.testrunner.ITestRunListener> listeners) |
void |
run(com.android.ddmlib.testrunner.ITestRunListener... listeners) |
void |
setCategories(String[] categories) |
void |
setDebugNoEvents(boolean debugNoEvents) |
void |
setHprof(boolean hprof) |
void |
setIgnoreCrashes(boolean ignoreCrashes) |
void |
setIgnoreSecurityExceptions(boolean ignoreSecurityExceptions) |
void |
setIgnoreTimeouts(boolean ignoreTimeouts) |
void |
setKillProcessAfterError(boolean killProcessAfterError) |
void |
setMaxtimeToOutputResponse(int maxTimeToOutputResponse) |
void |
setMonitorNativeCrash(boolean monitorNativeCrashes) |
void |
setPackages(String[] packages) |
void |
setPercentAnyEvent(int percent) |
void |
setPercentAppswitch(long percent) |
void |
setPercentMajorNav(long percent) |
void |
setPercentMotion(long percent) |
void |
setPercentNav(long percent) |
void |
setPercentSyskeys(long percent) |
void |
setPercentTouch(long percent) |
void |
setPercentTrackball(long percent) |
void |
setRunName(String runName) |
void |
setSeed(long seed) |
void |
setThrottle(long throttle) |
public MonkeyTestRunner(int eventCount, com.android.ddmlib.IDevice remoteDevice)
public void addBooleanArg(String name, boolean value)
public void addLongArg(String name, long value)
public void setSeed(long seed)
public void setThrottle(long throttle)
public void setPercentTouch(long percent)
public void setPercentMotion(long percent)
public void setPercentTrackball(long percent)
public void setPercentNav(long percent)
public void setPercentMajorNav(long percent)
public void setPercentSyskeys(long percent)
public void setPercentAppswitch(long percent)
public void setPercentAnyEvent(int percent)
public void setPackages(String[] packages)
public void setCategories(String[] categories)
public void setDebugNoEvents(boolean debugNoEvents)
public void setHprof(boolean hprof)
public void setIgnoreCrashes(boolean ignoreCrashes)
public void setIgnoreTimeouts(boolean ignoreTimeouts)
public void setIgnoreSecurityExceptions(boolean ignoreSecurityExceptions)
public void setKillProcessAfterError(boolean killProcessAfterError)
public void setMonitorNativeCrash(boolean monitorNativeCrashes)
public void setMaxtimeToOutputResponse(int maxTimeToOutputResponse)
public void setRunName(String runName)
public void run(com.android.ddmlib.testrunner.ITestRunListener... listeners) throws com.android.ddmlib.TimeoutException, com.android.ddmlib.AdbCommandRejectedException, com.android.ddmlib.ShellCommandUnresponsiveException, IOException
com.android.ddmlib.TimeoutException
com.android.ddmlib.AdbCommandRejectedException
com.android.ddmlib.ShellCommandUnresponsiveException
IOException
public void run(Collection<com.android.ddmlib.testrunner.ITestRunListener> listeners) throws com.android.ddmlib.TimeoutException, com.android.ddmlib.AdbCommandRejectedException, com.android.ddmlib.ShellCommandUnresponsiveException, IOException
com.android.ddmlib.TimeoutException
com.android.ddmlib.AdbCommandRejectedException
com.android.ddmlib.ShellCommandUnresponsiveException
IOException
public void cancel()
Copyright © 2008–2019 simpligility technologies inc.. All rights reserved.