| Package | Description |
|---|---|
| org.jvnet.hudson.test |
Test harness for Jenkins and its plugins.
|
| Modifier and Type | Method and Description |
|---|---|
JenkinsRule.WebClient |
JenkinsRule.createWebClient()
This is to assist Groovy test clients who are incapable of instantiating the inner classes properly.
|
JenkinsRule.WebClient |
JenkinsRule.WebClient.login(String username)
Logs in to Hudson, by using the user name as the password.
|
JenkinsRule.WebClient |
JenkinsRule.WebClient.login(String username,
String password)
Logs in to Jenkins.
|
JenkinsRule.WebClient |
JenkinsRule.WebClient.login(String username,
String password,
boolean rememberMe)
Logs in to Jenkins.
|
JenkinsRule.WebClient |
JenkinsRule.WebClient.withBasicApiToken(String userId)
Retrieve the
ApiTokenProperty from the associated user, derive credentials from it and place it in Basic authorization header |
JenkinsRule.WebClient |
JenkinsRule.WebClient.withBasicApiToken(hudson.model.User user)
Retrieve the
ApiTokenProperty from the user, derive credentials from it and place it in Basic authorization header |
JenkinsRule.WebClient |
JenkinsRule.WebClient.withBasicCredentials(String loginAndPassword)
Use
loginAndPassword as login AND password, especially useful for JenkinsRule.DummySecurityRealm
Add the "Authorization" header with Basic credentials derived from login using Base64 |
JenkinsRule.WebClient |
JenkinsRule.WebClient.withBasicCredentials(String login,
String passwordOrToken)
Add the "Authorization" header with Basic credentials derived from login and password using Base64
|
JenkinsRule.WebClient |
JenkinsRule.WebClient.withJavaScriptEnabled(boolean enabled)
Enables/disables JavaScript support.
|
JenkinsRule.WebClient |
JenkinsRule.WebClient.withRedirectEnabled(boolean enabled)
Sets whether or not redirections will be followed automatically on receipt of a redirect status code from the server.
|
JenkinsRule.WebClient |
JenkinsRule.WebClient.withThrowExceptionOnFailingStatusCode(boolean enabled)
Changes the behavior of this webclient when a script error occurs.
|
Copyright © 2004–2019. All rights reserved.