Class AsynchronousTasks

  extended by com.atlassian.jira.functest.framework.AbstractFuncTestUtil
      extended by com.atlassian.jira.functest.framework.util.AsynchronousTasks
All Implemented Interfaces:

public class AsynchronousTasks
extends AbstractFuncTestUtil

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


Field Summary
Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
environmentData, FS, locators, logger, logIndentLevel, tester
Constructor Summary
AsynchronousTasks(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData, int logIndentLevel)
Method Summary
 void waitForSuccessfulCompletion(long sleepTime, int retryCount, String operationName)
          Waits for an asynchronous action to complete and acknowledges the result on completion
Methods inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public AsynchronousTasks(net.sourceforge.jwebunit.WebTester tester,
                         JIRAEnvironmentData environmentData,
                         int logIndentLevel)
Method Detail


public void waitForSuccessfulCompletion(long sleepTime,
                                        int retryCount,
                                        String operationName)
Waits for an asynchronous action to complete and acknowledges the result on completion

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.

Copyright © 2002-2014 Atlassian. All Rights Reserved.