public class GroovyJenkinsRule extends JenkinsRule
JenkinsRule variant with special options for tests written in Groovy.JenkinsRule.BreakException, JenkinsRule.DummySecurityRealm, JenkinsRule.JSONWebResponse, JenkinsRule.TestBuildWrapper, JenkinsRule.WebClientcomputerConnectorTester, contextPath, env, homeLoader, hudson, jenkins, jsDebugger, localPort, MIME_TYPES, NO_PROPERTIES, recipes, server, SLAVE_DEBUG_PORT, tearDowns, testDescription, timeout, useLocalPluginManager| Constructor and Description |
|---|
GroovyJenkinsRule() |
| Modifier and Type | Method and Description |
|---|---|
hudson.tasks.Builder |
builder(groovy.lang.Closure c)
Wraps a closure as a
Builder. |
Object |
executeOnServer(groovy.lang.Closure c)
Executes the given closure on the server, in the context of an HTTP request.
|
_configureJenkinsForTest, _configureUpdateCenter, _configureUserRealm, _createWebServer, _stopJenkins, after, apply, apply, assertAllImageLoadSuccessfully, assertBuildStatus, assertBuildStatus, assertBuildStatusSuccess, assertBuildStatusSuccess, assertEqualBeans, assertEqualDataBoundBeans, assertEqualDataBoundBeans, assertGoodStatus, assertHelpExists, assertLogContains, assertLogNotContains, assertStringContains, assertStringContains, assertXPath, assertXPath, assertXPathResultsContainText, assertXPathValue, assertXPathValueContains, before, buildAndAssertStatus, buildAndAssertSuccess, buildAndAssertSuccess, configRoundtrip, configRoundtrip, configRoundtrip, configRoundtrip, configRoundtrip, configRoundtrip, configRoundtrip, configRoundtrip, configureUpdateCenter, configureUserRealm, createComputerLauncher, createDummySecurityRealm, createFolder, createFreeStyleProject, createFreeStyleProject, createLocalLauncher, createOnlineSlave, createOnlineSlave, createOnlineSlave, createPretendSlave, createProject, createProject, createSlave, createSlave, createSlave, createSlave, createSlave, createSlave, createSlave, createTaskListener, createTmpDir, createUniqueProjectName, createWebClient, createWebServer, disconnectSlave, executeOnServer, findDataBoundConstructor, findPreviousInputElement, get, getButtonByCaption, getDisplayName, getIconFileName, getInstance, getJSON, getLog, getPluginManager, getTestDescription, getURL, getUrlName, getWebAppRoot, interactiveBreak, isGoodHttpStatus, isSomethingHappening, last, newHudson, pause, postJSON, recipe, recipeLoadCurrentPlugin, search, setPluginManager, setQuietPeriod, showAgentLogs, showAgentLogs, submit, submit, waitForCompletion, waitForMessage, waitOnline, waitUntilNoActivity, waitUntilNoActivityUpTo, with, with, withExistingHome, withNewHome, withPresetDatapublic Object executeOnServer(groovy.lang.Closure c) throws Exception
StaplerRequest and StaplerResponse.
The closure will get the request and response as parameters.
Exceptionpublic hudson.tasks.Builder builder(groovy.lang.Closure c)
Builder.Copyright © 2004–2019. All rights reserved.