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
public abstract class TaskConfigurationPage 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 TaskConfigurationPage()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddNewTask(String taskType, Class<? extends TaskComponent> task, String userDescription, Map<String,String> config)Create new task and expect successList<String>addNewTaskAndExpectFailure(String taskType, Class<? extends TaskComponent> task, String userDescription, Map<String,String> config)Create a new task and expect validation errors after task submissionList<String>addNewTaskAndExpectInitialErrors(String taskType)Try to add a new task and expect initial errors before task submissionIterable<TaskElement>allTasks()voiddeleteTask(String taskName, String taskDescription)voideditTask(String oldUserDescription, Class<? extends TaskComponent> task, String newUserDescription, Map<String,String> config)StringgetAvailabilityDescription()abstract StringgetCreateFormName()@NotNull TaskElementgetTask(@NotNull String taskName)TaskElementgetTask(@NotNull String taskName, @NotNull String taskDescription)abstract StringgetUpdateFormName()StringgetUrl()com.atlassian.pageobjects.elements.PageElementindicator()This must return an element whose presence indicates that we're on given page.booleanisEditable()-
Methods inherited from class com.atlassian.bamboo.pageobjects.pages.AbstractBambooPage
click, doWait, ensureIndicatorPresent, getFooter, getHeader, getTimeouts, isAdmin, isLoggedIn, isPageLoaded, sendEscapeKey, waitUntilElementIsLocated, waitUntilElementIsNotLocated, waitUntilElementIsNotVisible, waitUntilElementIsVisible
-
-
-
-
Method Detail
-
getUrl
public String 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
public abstract String getCreateFormName()
-
getUpdateFormName
public abstract String getUpdateFormName()
-
addNewTask
public void addNewTask(String taskType, Class<? extends TaskComponent> task, String userDescription, Map<String,String> config) throws Exception
Create 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 Exception
Create a new task and expect validation errors after task submission- Returns:
- list of validation errors
- Throws:
Exception
-
addNewTaskAndExpectInitialErrors
public List<String> addNewTaskAndExpectInitialErrors(String taskType)
Try to add a new task and expect initial errors before task submission- Returns:
- list of initial errors
-
editTask
public void editTask(String oldUserDescription, Class<? extends TaskComponent> task, String newUserDescription, Map<String,String> config)
-
allTasks
public Iterable<TaskElement> allTasks()
-
getTask
@NotNull public @NotNull TaskElement getTask(@NotNull @NotNull String taskName)
-
getTask
public TaskElement getTask(@NotNull @NotNull String taskName, @NotNull @NotNull String taskDescription)
-
isEditable
public boolean isEditable()
-
getAvailabilityDescription
public String getAvailabilityDescription()
-
-