Package org.eclipse.ui.testing.dumps
Class TimeoutDumpTimer
java.lang.Object
java.util.TimerTask
org.eclipse.ui.testing.dumps.TimeoutDumpTimer
- All Implemented Interfaces:
Runnable
Starts a task which will dump stack trace information and a screenshot after
some time.
Necessary to know whether and where tests are hanging if a timeout occurred
during tests.
- Since:
- 0.15
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
static void
startTimeoutDumpTimer
(String timeoutArg) Starts a timer that dumps interesting debugging information shortly before the given timeout expires.static void
startTimeoutDumpTimer
(String timeoutArg, File outputDirectory) Starts a timer that dumps interesting debugging information shortly before the given timeout expires.Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Method Details
-
startTimeoutDumpTimer
Starts a timer that dumps interesting debugging information shortly before the given timeout expires.- Parameters:
timeoutArg
- the value of the -timeout argument from the command line
-
startTimeoutDumpTimer
Starts a timer that dumps interesting debugging information shortly before the given timeout expires.- Parameters:
timeoutArg
- the -timeout argument from the command lineoutputDirectory
- where the test results end up
-
run
public void run()
-