Class HudsonTestCase.WebClient

java.lang.Object
org.htmlunit.WebClient
org.jvnet.hudson.test.HudsonTestCase.WebClient
All Implemented Interfaces:
Serializable, AutoCloseable
Enclosing class:
HudsonTestCase

public class HudsonTestCase.WebClient extends org.htmlunit.WebClient
Extends WebClient and provide convenience methods for accessing Hudson.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.htmlunit.WebClient

    org.htmlunit.WebClient.PooledCSS3Parser
  • Field Summary

    Fields inherited from class org.htmlunit.WebClient

    TARGET_BLANK, TARGET_SELF
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.htmlunit.WebRequest
    addCrumb(org.htmlunit.WebRequest req)
    Adds a security crumb to the request.
    void
    assertFails(String url, int statusCode)
    Verify that the server rejects an attempt to load the given page.
    createCrumbedUrl(String relativePath)
    Creates a URL with crumb parameters relative to {getContextPath()
    org.htmlunit.html.HtmlPage
    eval(Runnable requestHandler)
    Makes an HTTP request, process it with the given request handler, and returns the response.
    <V> V
    Executes the given closure on the server, by the servlet request handling thread, in the context of an HTTP request.
    Returns the URL of the webapp top page.
    org.htmlunit.html.HtmlPage
    getPage(hudson.model.Item item)
     
    org.htmlunit.html.HtmlPage
    getPage(hudson.model.Item item, String relative)
     
    org.htmlunit.html.HtmlPage
    getPage(hudson.model.Node item)
     
    org.htmlunit.html.HtmlPage
    getPage(hudson.model.Node item, String relative)
     
    org.htmlunit.html.HtmlPage
    getPage(hudson.model.Run r)
    Short for getPage(r,""), to access the top page of a build.
    org.htmlunit.html.HtmlPage
    getPage(hudson.model.Run r, String relative)
    Accesses a page inside Run.
    org.htmlunit.html.HtmlPage
    getPage(hudson.model.View view)
     
    org.htmlunit.html.HtmlPage
    getPage(hudson.model.View view, String relative)
     
    org.htmlunit.Page
    Deprecated.
    This method expects a full URL.
    org.htmlunit.html.HtmlPage
    goTo(String relative)
    Requests a page within Jenkins.
    org.htmlunit.Page
    goTo(String relative, String expectedContentType)
     
    org.htmlunit.xml.XmlPage
    Loads a page as XML.
    login(String username)
    Logs in to Hudson, by using the user name as the password.
    login(String username, String password)
    Logs in to Jenkins.
    org.htmlunit.html.HtmlPage
     

    Methods inherited from class org.htmlunit.WebClient

    addCookie, addRequestHeader, addWebWindowListener, close, containsWebWindow, deregisterWebWindow, download, expandUrl, getAjaxController, getAlertHandler, getAttachmentHandler, getBrowserVersion, getCache, getClipboardHandler, getConfirmHandler, getCookieManager, getCookies, getCredentialsProvider, getCSS3Parser, getCssErrorHandler, getCurrentWindow, getExecutor, getFrameContentHandler, getHTMLParserListener, getIncorrectnessListener, getJavaScriptEngine, getJavaScriptErrorListener, getJavaScriptTimeout, getOnbeforeunloadHandler, getOptions, getPage, getPage, getPage, getPageCreator, getPrintHandler, getPromptHandler, getRefreshHandler, getScriptPreProcessor, getStatusHandler, getStorageHolder, getTopLevelWindows, getWebConnection, getWebConsole, getWebStartHandler, getWebWindowByName, getWebWindows, guessContentType, initialize, initializeEmptyWindow, isJavaScriptEnabled, isJavaScriptEngineEnabled, loadDownloadedResponses, loadHtmlCodeIntoCurrentWindow, loadWebResponse, loadWebResponseInto, loadWebResponseInto, loadXHtmlCodeIntoCurrentWindow, openDialogWindow, openTargetWindow, openWindow, openWindow, printContentIfNecessary, registerWebWindow, removeRequestHeader, removeWebWindowListener, reset, setAjaxController, setAlertHandler, setAttachmentHandler, setCache, setClipboardHandler, setConfirmHandler, setCookieManager, setCredentialsProvider, setCssErrorHandler, setCurrentWindow, setExecutor, setFrameContentHandler, setHTMLParserListener, setIncorrectnessListener, setJavaScriptEngine, setJavaScriptErrorListener, setJavaScriptTimeout, setOnbeforeunloadHandler, setPageCreator, setPrintHandler, setPromptHandler, setRefreshHandler, setScriptPreProcessor, setStatusHandler, setWebConnection, setWebStartHandler, throwFailingHttpStatusCodeExceptionIfNecessary, waitForBackgroundJavaScript, waitForBackgroundJavaScriptStartingBefore

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WebClient

      public WebClient()
  • Method Details