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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addNewTask
(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 submissionallTasks()
void
deleteTask
(String taskName, String taskDescription) void
editTask
(String oldUserDescription, Class<? extends TaskComponent> task, String newUserDescription, Map<String, String> config) abstract String
@NotNull TaskElement
abstract String
getUrl()
com.atlassian.pageobjects.elements.PageElement
This must return an element whose presence indicates that we're on given page.boolean
Methods 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: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
-
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
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
-