Class JobResultViewLogs
- java.lang.Object
-
- com.atlassian.bamboo.pageobjects.pages.AbstractBambooPage
-
- com.atlassian.bamboo.pageobjects.pages.plan.result.JobResultViewLogs
-
- All Implemented Interfaces:
com.atlassian.pageobjects.Page
public class JobResultViewLogs extends AbstractBambooPage
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.pageobjects.pages.AbstractBambooPage
driver, elementFinder, pageBinder, poller, testedProduct, timeouts
-
-
Constructor Summary
Constructors Constructor Description JobResultViewLogs(PlanResultKey planResultKey)
JobResultViewLogs(TestJobDetails job, int buildNumber)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.hamcrest.Matcher<String>
buildMessageIs(@NotNull String logMessage)
void
ensureIndicatorPresent()
Checks for presence ofAbstractBambooPage.indicator()
by default.Iterable<String>
getLog()
String
getUrl()
com.atlassian.pageobjects.elements.PageElement
indicator()
This must return an element whose presence indicates that we're on given page.static org.hamcrest.Matcher<String>
messageContains(@NotNull String logMessage, @NotNull String logClassifier)
static org.hamcrest.Matcher<String>
messageEndsWith(@NotNull String logMessage, @NotNull String logClassifier)
static org.hamcrest.Matcher<String>
messageIs(@NotNull String logMessage, @NotNull String logClassifier)
static org.hamcrest.Matcher<String>
messageStartsWith(@NotNull String logMessage, @NotNull String logClassifier)
-
Methods inherited from class com.atlassian.bamboo.pageobjects.pages.AbstractBambooPage
click, doWait, getFooter, getHeader, getTimeouts, isAdmin, isLoggedIn, isPageLoaded, sendEscapeKey, waitUntilElementIsLocated, waitUntilElementIsNotLocated, waitUntilElementIsNotVisible, waitUntilElementIsVisible
-
-
-
-
Constructor Detail
-
JobResultViewLogs
public JobResultViewLogs(TestJobDetails job, int buildNumber)
-
JobResultViewLogs
public JobResultViewLogs(PlanResultKey planResultKey)
-
-
Method Detail
-
indicator
public com.atlassian.pageobjects.elements.PageElement indicator()
Description copied from class:AbstractBambooPage
This must return an element whose presence indicates that we're on given page.- Specified by:
indicator
in classAbstractBambooPage
- Returns:
- element uniquely identifying given page
-
ensureIndicatorPresent
public void ensureIndicatorPresent()
Description copied from class:AbstractBambooPage
Checks for presence of
AbstractBambooPage.indicator()
by default.If different wait functionality is required, just override this method.
- Overrides:
ensureIndicatorPresent
in classAbstractBambooPage
-
getUrl
public String getUrl()
-
messageStartsWith
public static org.hamcrest.Matcher<String> messageStartsWith(@NotNull @NotNull String logMessage, @NotNull @NotNull String logClassifier)
-
messageEndsWith
public static org.hamcrest.Matcher<String> messageEndsWith(@NotNull @NotNull String logMessage, @NotNull @NotNull String logClassifier)
-
messageContains
public static org.hamcrest.Matcher<String> messageContains(@NotNull @NotNull String logMessage, @NotNull @NotNull String logClassifier)
-
messageIs
public static org.hamcrest.Matcher<String> messageIs(@NotNull @NotNull String logMessage, @NotNull @NotNull String logClassifier)
-
-