public class

AsynchronousTasks

extends AbstractFuncTestUtil
java.lang.Object
   ↳ com.atlassian.jira.functest.framework.AbstractFuncTestUtil
     ↳ com.atlassian.jira.functest.framework.util.AsynchronousTasks

Class Overview

Common methods for navigation of pages that display the progress of an asynchronous task. i.e. Indexing, Workflow Migration...

Summary

[Expand]
Inherited Fields
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
Public Constructors
AsynchronousTasks(WebTester tester, JIRAEnvironmentData environmentData, int logIndentLevel)
Public Methods
void waitForSuccessfulCompletion(long sleepTime, int retryCount, String operationName)
Waits for an asynchronous action to complete and acknowledges the result on completion
[Expand]
Inherited Methods
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
From class java.lang.Object
From interface com.atlassian.jira.testkit.client.log.FuncTestLogger

Public Constructors

public AsynchronousTasks (WebTester tester, JIRAEnvironmentData environmentData, int logIndentLevel)

Public Methods

public void waitForSuccessfulCompletion (long sleepTime, int retryCount, String operationName)

Waits for an asynchronous action to complete and acknowledges the result on completion

Parameters
sleepTime The time to sleep before refreshing the page again and checking for the operation to be finished.
retryCount The number of times we will try to check for the operation to be finished.
operationName The name of the operation that we are checking. Only used for printing messages.