Uses of Class
org.jvnet.hudson.test.JenkinsRule.WebClient
Packages that use JenkinsRule.WebClient
-
Uses of JenkinsRule.WebClient in org.jvnet.hudson.test
Methods in org.jvnet.hudson.test that return JenkinsRule.WebClientModifier and TypeMethodDescriptionJenkinsRule.createWebClient()Create a web client instance using the browser version returned byBrowserVersion.getDefault()with support for the Fetch API.Logs in to Hudson, by using the user name as the password.Logs in to Jenkins.Logs in to Jenkins.JenkinsRule.WebClient.withBasicApiToken(hudson.model.User user) Retrieve theApiTokenPropertyfrom the user, derive credentials from it and place it in Basic authorization header.JenkinsRule.WebClient.withBasicApiToken(String userId) Retrieve theApiTokenPropertyfrom the associated user, derive credentials from it and place it in Basic authorization headerJenkinsRule.WebClient.withBasicCredentials(String loginAndPassword) UseloginAndPasswordas login AND password, especially useful forJenkinsRule.DummySecurityRealmAdd the "Authorization" header with Basic credentials derived from login using Base64JenkinsRule.WebClient.withBasicCredentials(String login, String passwordOrToken) Add the "Authorization" header with Basic credentials derived from login and password using Base64JenkinsRule.WebClient.withJavaScriptEnabled(boolean enabled) Enables/disables JavaScript support.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.withThrowExceptionOnFailingStatusCode(boolean enabled) Changes the behavior of this webclient when a script error occurs.