Class MonkeyBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
hudson.plugins.android_emulator.builder.AbstractBuilder
hudson.plugins.android_emulator.monkey.MonkeyBuilder
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringCategories to restrict the monkey to.final intHow many events to perform.final StringExtra command line parameters to pass to monkey.final StringFile to write monkey results to.final StringPackage ID to restrict the monkey to.final StringSeed value for the random number generator.final intHow many milliseconds between each event.Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) Methods inherited from class hudson.plugins.android_emulator.builder.AbstractBuilder
getAndroidSdk, getDeviceIdentifier, getDeviceTelnetPort, uninstallApk, uninstallApk, waitForCoreProcessMethods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
-
Field Details
-
filename
File to write monkey results to. -
packageId
Package ID to restrict the monkey to. -
eventCount
@Exported public final int eventCountHow many events to perform. -
throttleMs
@Exported public final int throttleMsHow many milliseconds between each event. -
seed
Seed value for the random number generator. Number, "random", or "timestamp". -
categories
Categories to restrict the monkey to. -
extraParameters
Extra command line parameters to pass to monkey.
-
-
Constructor Details
-
MonkeyBuilder
-
-
Method Details
-
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
InterruptedExceptionIOException
-