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
public class MonkeyBuilder extends AbstractBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MonkeyBuilder.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description String
categories
Categories to restrict the monkey to.int
eventCount
How many events to perform.String
extraParameters
Extra command line parameters to pass to monkey.String
filename
File to write monkey results to.String
packageId
Package ID to restrict the monkey to.String
seed
Seed value for the random number generator.int
throttleMs
How many milliseconds between each event.-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
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 Detail
-
filename
@Exported public final String filename
File to write monkey results to.
-
packageId
@Exported public final String packageId
Package ID to restrict the monkey to.
-
eventCount
@Exported public final int eventCount
How many events to perform.
-
throttleMs
@Exported public final int throttleMs
How many milliseconds between each event.
-
seed
@Exported public final String seed
Seed value for the random number generator. Number, "random", or "timestamp".
-
categories
@Exported public final String categories
Categories to restrict the monkey to.
-
extraParameters
@Exported public final String extraParameters
Extra command line parameters to pass to monkey.
-
-
Method Detail
-
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
-
-