Class ProgressBar

java.lang.Object
com.atlassian.jira.functest.framework.ProgressBar

public class ProgressBar extends Object
Since:
v7.1
  • Constructor Details

    • ProgressBar

      @Inject public ProgressBar(net.sourceforge.jwebunit.WebTester tester, Assertions assertions, TextAssertions textAssertions, HtmlPage htmlPage)
  • Method Details

    • getSubmittedTaskId

      public long getSubmittedTaskId()
      This method assums that you have just submitted a long running task and that you need the taskId back. It does not acknowledge the task in in way
      Returns:
      the id of the submitted task.
    • waitForTaskAcknowledgement

      public void waitForTaskAcknowledgement(long taskId)
      This method assumes that you have just submitted a long running task, and you know the task id of it.
      Parameters:
      taskId - the task to wait for until it is in acknowledge state
    • validateProgressBarUI

      public void validateProgressBarUI(String desiredTaskState)
      The button name controls what to check for in terms of the progress bar UI.

      - Acknowledge - means you started the task and its finished - Done means that some one else started the task and its finished - Refresh - means its submitted, maybe running and not finished

      Parameters:
      desiredTaskState - one of the above