Class ProgressBar
java.lang.Object
com.atlassian.jira.functest.framework.ProgressBar
- Since:
- v7.1
-
Constructor Summary
ConstructorsConstructorDescriptionProgressBar(net.sourceforge.jwebunit.WebTester tester, Assertions assertions, TextAssertions textAssertions, HtmlPage htmlPage) -
Method Summary
Modifier and TypeMethodDescriptionlongThis method assums that you have just submitted a long running task and that you need the taskId back.voidvalidateProgressBarUI(String desiredTaskState) The button name controls what to check for in terms of the progress bar UI.voidwaitForTaskAcknowledgement(long taskId) This method assumes that you have just submitted a long running task, and you know the task id of it.
-
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
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
-