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
  • Constructor Details

    • TaskConfigurationPage

      public TaskConfigurationPage()
  • Method Details

    • 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 class AbstractBambooPage
      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)
    • deleteTask

      public void deleteTask(String taskName, String taskDescription)
    • 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()