Class TaskConfigurationPage
java.lang.Object
com.atlassian.bamboo.pageobjects.pages.AbstractBambooPage
com.atlassian.bamboo.pageobjects.pages.tasks.TaskConfigurationPage
- All Implemented Interfaces:
com.atlassian.pageobjects.Page
- Direct Known Subclasses:
ConfigureEnvironmentTasksPage,JobTaskConfigurationPage
-
Field Summary
Fields inherited from class com.atlassian.bamboo.pageobjects.pages.AbstractBambooPage
driver, elementFinder, pageBinder, poller, testedProduct, timeouts -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNewTask(String taskType, Class<? extends TaskComponent> task, String userDescription, Map<String, String> config) Create new task and expect successaddNewTaskAndExpectFailure(String taskType, Class<? extends TaskComponent> task, String userDescription, Map<String, String> config) Create a new task and expect validation errors after task submissionaddNewTaskAndExpectInitialErrors(String taskType) Try to add a new task and expect initial errors before task submissionaddNewTaskAndExpectInitialErrors(String taskType, Class<? extends TaskComponent> task, String userDescription, Map<String, String> config) Create a new task and expect initial errors after task submissionallTasks()voiddeleteTask(String taskName, String taskDescription) voideditTask(String oldUserDescription, Class<? extends TaskComponent> task, String newUserDescription, Map<String, String> config) abstract String@NotNull TaskElementabstract StringgetUrl()com.atlassian.pageobjects.elements.PageElementThis must return an element whose presence indicates that we're on given page.booleanMethods inherited from class com.atlassian.bamboo.pageobjects.pages.AbstractBambooPage
click, doWait, ensureIndicatorPresent, getFooter, getHeader, getTimeouts, isAdmin, isLoggedIn, isPageLoaded, sendEscapeKey, waitUntilElementIsLocated, waitUntilElementIsNotLocated, waitUntilElementIsNotVisible, waitUntilElementIsVisible
-
Constructor Details
-
TaskConfigurationPage
public TaskConfigurationPage()
-
-
Method Details
-
getUrl
-
indicator
public com.atlassian.pageobjects.elements.PageElement indicator()Description copied from class:AbstractBambooPageThis must return an element whose presence indicates that we're on given page.- Specified by:
indicatorin classAbstractBambooPage- Returns:
- element uniquely identifying given page
-
getCreateFormName
-
getUpdateFormName
-
addNewTask
public void addNewTask(String taskType, Class<? extends TaskComponent> task, String userDescription, Map<String, String> config) throws ExceptionCreate new task and expect success- Throws:
Exception
-
addNewTaskAndExpectFailure
public List<String> addNewTaskAndExpectFailure(String taskType, Class<? extends TaskComponent> task, String userDescription, Map<String, String> config) throws ExceptionCreate a new task and expect validation errors after task submission- Returns:
- list of validation errors
- Throws:
Exception
-
addNewTaskAndExpectInitialErrors
public List<String> addNewTaskAndExpectInitialErrors(String taskType, Class<? extends TaskComponent> task, String userDescription, Map<String, String> config) Create a new task and expect initial errors after task submission- Returns:
- list of initial errors
-
addNewTaskAndExpectInitialErrors
Try to add a new task and expect initial errors before task submission- Returns:
- list of initial errors
-
editTask
-
deleteTask
-
allTasks
-
getTask
-
getTask
public TaskElement getTask(@NotNull @NotNull String taskName, @NotNull @NotNull String taskDescription) -
isEditable
public boolean isEditable() -
getAvailabilityDescription
-