public class LongRunningTask extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LONGRUNNINGTASK_ACTION |
Modifier | Constructor and Description |
---|---|
protected |
LongRunningTask(net.sourceforge.jwebunit.junit.WebTester tester,
String taskId,
String contextPath) |
Modifier and Type | Method and Description |
---|---|
static LongRunningTask |
getInstance(String taskId) |
static LongRunningTask |
getInstance(String taskId,
net.sourceforge.jwebunit.junit.WebTester webTester) |
static LongRunningTask |
getInstanceForDisplayedTask() |
static LongRunningTask |
getInstanceForDisplayedTask(net.sourceforge.jwebunit.junit.WebTester tester) |
static LongRunningTask |
getInstanceForSetup(String taskId) |
static LongRunningTask |
getInstanceForSetup(String taskId,
net.sourceforge.jwebunit.junit.WebTester webTester) |
boolean |
waitToComplete(long timeout,
TimeUnit unit,
String errorText) |
boolean |
waitToComplete(long timeout,
TimeUnit unit,
String pageLocation,
String waitForText,
String errorText)
Wait for the current long running task to complete.
|
public static final String LONGRUNNINGTASK_ACTION
public static LongRunningTask getInstanceForSetup(String taskId)
public static LongRunningTask getInstanceForSetup(String taskId, net.sourceforge.jwebunit.junit.WebTester webTester)
public static LongRunningTask getInstance(String taskId)
public static LongRunningTask getInstance(String taskId, net.sourceforge.jwebunit.junit.WebTester webTester)
public static LongRunningTask getInstanceForDisplayedTask()
public static LongRunningTask getInstanceForDisplayedTask(net.sourceforge.jwebunit.junit.WebTester tester)
public boolean waitToComplete(long timeout, TimeUnit unit, String pageLocation, String waitForText, String errorText)
timeout
- fail after this many time units if the long running task has not completed.unit
- the units for the timeout.pageLocation
- the relative location to poll.waitForText
- the text which indicates the long running task has finished.errorText
- the appearance of this string in the response indicates that the task has completed with an error.Copyright © 2003–2020 Atlassian. All rights reserved.