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.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String
Categories to restrict the monkey to.final int
How many events to perform.final String
Extra command line parameters to pass to monkey.final String
File to write monkey results to.final String
Package ID to restrict the monkey to.final String
Seed value for the random number generator.final int
How many milliseconds between each event.Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
perform
(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) Methods inherited from class hudson.plugins.android_emulator.builder.AbstractBuilder
getAndroidSdk, getDeviceIdentifier, getDeviceTelnetPort, uninstallApk, uninstallApk, waitForCoreProcess
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuild
Methods 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:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
-