Package org.jenkinsci.test.acceptance.po
Class UpdateCenter
- All Implemented Interfaces:
CapybaraPortingLayer
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
CapybaraPortingLayerImpl.Finder<R>, CapybaraPortingLayerImpl.Resolver
-
Field Summary
Fields inherited from class org.jenkinsci.test.acceptance.po.PageObject
jsonParser, url
Fields inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
driver, injector, LABEL_TO_INPUT_XPATH, time
Fields inherited from interface org.jenkinsci.test.acceptance.po.CapybaraPortingLayer
by
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isInstalled
(String pluginShortName) Deprecated.boolean
waitForInstallationToComplete
(PluginSpec... specs) Wait for the plugin installation is done.Methods inherited from class org.jenkinsci.test.acceptance.po.ContainerPageObject
action, action, equals, getConfigUrl, getJson, getJson, getJsonApiUrl, getNavigationLinks, hashCode
Methods inherited from class org.jenkinsci.test.acceptance.po.ConfigurablePageObject
apply, configure, configure, configure, configure, ensureConfigPage, getFormName, getSubmitButtonText, save
Methods inherited from class org.jenkinsci.test.acceptance.po.PageObject
control, control, createPageArea, createRandomName, getContext, getJenkins, open, toString, url, url, visit
Methods inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
all, blur, check, check, check, choose, clickButton, clickLink, confirmAlert, elasticSleep, executeScript, fillIn, find, findCaption, findCaption, findIfNotVisible, getCurrentUrl, getCurrentUrlWithFragment, getElement, getPageContent, getPageSource, getPageSource, getPath, handleAlert, isHiddenOrStale, isStale, last, lastIfNotVisible, newInstance, resource, runThenConfirmAlert, runThenConfirmAlert, runThenHandleAlert, runThenHandleAlert, runThenHandleDialog, sleep, visit, waitFor, waitFor, waitFor, waitFor, waitFor, waitForCond, waitForCond
-
Constructor Details
-
UpdateCenter
-
-
Method Details
-
isInstalled
@Deprecated public boolean isInstalled(String pluginShortName) throws UpdateCenter.InstallationFailedException Deprecated.Has this plugin successfully installed?- Returns:
- true if the installation has successfully completed. false if it's still in progress.
- Throws:
UpdateCenter.InstallationFailedException
- installation has failed.
-
waitForInstallationToComplete
public boolean waitForInstallationToComplete(PluginSpec... specs) throws UpdateCenter.InstallationFailedException Wait for the plugin installation is done.Wait for all UC jobs are completed. If some of them fail or require restart, Jenkins is restarted. If some of the plugins is not installed after that or the version is older than expected, the waiting is considered failed.
- Returns:
- true if Jenkins ware restarted to install plugins.
- Throws:
UpdateCenter.InstallationFailedException
- If the installation has failed.
-