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