Class RequirementsAwarePage
- java.lang.Object
-
- com.atlassian.bamboo.pageobjects.pages.AbstractBambooPage
-
- com.atlassian.bamboo.pageobjects.helpers.RequirementsAwarePage
-
- All Implemented Interfaces:
com.atlassian.pageobjects.Page
- Direct Known Subclasses:
ConfigureEnvironmentAgentAssignmentsPage
,JobRequirementsConfigurationPage
public abstract class RequirementsAwarePage extends AbstractBambooPage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RequirementsAwarePage.Executor
static class
RequirementsAwarePage.Requirement
-
Field Summary
Fields Modifier and Type Field Description static String
EXISTS_MATCH_TYPE
protected com.atlassian.pageobjects.elements.timeout.Timeouts
timeouts
-
Fields inherited from class com.atlassian.bamboo.pageobjects.pages.AbstractBambooPage
driver, elementFinder, pageBinder, poller, testedProduct
-
-
Constructor Summary
Constructors Constructor Description RequirementsAwarePage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequirementsAwarePage
addExistingRequirement(String requirementName, String matchType, boolean waitForAdding)
void
assignExecutor(String executorName, boolean waitForAdding)
boolean
canEditAgentAssignments()
boolean
canEditRequirements()
List<String>
getAgentAvailabilitySummaries()
List<RequirementsAwarePage.Executor>
getExecutors()
@Nullable RequirementsAwarePage.Requirement
getRequirement(String requirementName)
List<RequirementsAwarePage.Requirement>
getRequirements()
boolean
noAgentsCanBuildThisJob()
void
openAgentsSection()
ConfigureEnvironmentAgentAssignmentsPage.ConfirmDeleteAgentDialog
removeAgentAssignment(String agentName)
ConfirmDeleteRequirementDialog
removeRequirement(String requirementKey)
RequirementDetailsPage
viewRequirementDetails(String requirementKey)
-
Methods inherited from class com.atlassian.bamboo.pageobjects.pages.AbstractBambooPage
click, doWait, ensureIndicatorPresent, getFooter, getHeader, getTimeouts, indicator, isAdmin, isLoggedIn, isPageLoaded, sendEscapeKey, waitUntilElementIsLocated, waitUntilElementIsNotLocated, waitUntilElementIsNotVisible, waitUntilElementIsVisible
-
-
-
-
Field Detail
-
EXISTS_MATCH_TYPE
public static final String EXISTS_MATCH_TYPE
- See Also:
- Constant Field Values
-
timeouts
@Inject protected com.atlassian.pageobjects.elements.timeout.Timeouts timeouts
-
-
Method Detail
-
addExistingRequirement
public RequirementsAwarePage addExistingRequirement(String requirementName, String matchType, boolean waitForAdding)
-
viewRequirementDetails
public RequirementDetailsPage viewRequirementDetails(String requirementKey)
-
getRequirements
public List<RequirementsAwarePage.Requirement> getRequirements()
-
removeRequirement
public ConfirmDeleteRequirementDialog removeRequirement(String requirementKey)
-
getRequirement
@Nullable public @Nullable RequirementsAwarePage.Requirement getRequirement(String requirementName)
-
canEditRequirements
public boolean canEditRequirements()
-
openAgentsSection
public void openAgentsSection()
-
canEditAgentAssignments
public boolean canEditAgentAssignments()
-
getExecutors
public List<RequirementsAwarePage.Executor> getExecutors()
-
assignExecutor
public void assignExecutor(String executorName, boolean waitForAdding)
-
removeAgentAssignment
public ConfigureEnvironmentAgentAssignmentsPage.ConfirmDeleteAgentDialog removeAgentAssignment(String agentName)
-
noAgentsCanBuildThisJob
public boolean noAgentsCanBuildThisJob()
-
-