public class ResultLogger extends Object
| Constructor and Description |
|---|
ResultLogger() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
generatePerformanceReportFile()
Generates the performance report and writes it out.
|
protected static boolean |
hasErrorFile()
Used by master to see if the test had errors (includes hangs).
|
protected static boolean |
hasHangFile()
Used by master and clients to see if the test had a hang.
|
protected static void |
logFinalOutcome(String msg,
boolean passed)
Used by master to log the final test outcome.
|
protected static void |
logHangResult(ClientRecord client,
TestTask task,
String msg)
Used by master to log a client hang in the master log.
|
protected static void |
logHangResult(ClientRecord client,
TestTask task,
TestTaskResult result)
Used by master to log a client-reported hang in the master log.
|
protected static void |
logTaskResult(ClientRecord client,
TestTask task,
TestTaskResult result)
Used by master to log the task result reported by a client in the master
log.
|
protected static void |
logTaskResult(TestTask task,
TestTaskResult result)
Used by clients to log the task result in the client log.
|
static void |
mergeLogFiles(boolean passed)
Uses
MergeLogFiles to merge test
log files into a single file, "mergedLogs.txt". |
protected static void |
reportAsErr(String m,
Throwable t)
Used by master to report unexpected exceptions in the test harness.
|
protected static void |
reportAsHang(String msg,
Throwable t)
Used by master to report unexpected problems treated as hangs by the
test harness.
|
protected static void |
reportErr(int pid,
String msg)
Used by master to report errors in the WindowTester/GFMon VM result file.
|
protected static void |
reportErr(String msg,
Throwable t)
Used by master to report errors in resource startup and unexpected
exceptions encountered by the test harness.
|
protected static void |
reportHang(int pid,
String msg)
Used by master to report hangs in the WindowTester/GFMon VM result file.
|
protected static void |
reportHang(String msg,
Throwable t)
Used by master to report hangs in resource startup.
|
protected static void logTaskResult(TestTask task, TestTaskResult result)
RemoteTestModule.executeTask(int,int,int).protected static void logTaskResult(ClientRecord client, TestTask task, TestTaskResult result)
BaseTaskScheduler.reportResult(int, int, int, hydra.TestTaskResult). Also writes the error,
if any, to the error file.protected static void logHangResult(ClientRecord client, TestTask task, TestTaskResult result)
BaseTaskScheduler.reportResult(int, int, int, hydra.TestTaskResult). Also writes the hang to the
hang file.protected static void logHangResult(ClientRecord client, TestTask task, String msg)
BaseTaskScheduler#maxResultWaitSec(ClientRecord,long).protected static void reportErr(String msg, Throwable t)
protected static void reportHang(String msg, Throwable t)
protected static void reportErr(int pid,
String msg)
protected static void reportHang(int pid,
String msg)
protected static boolean hasErrorFile()
protected static boolean hasHangFile()
protected static void reportAsErr(String m, Throwable t)
m - The method in which the exception occurred.t - The exception.protected static void reportAsHang(String msg, Throwable t)
protected static void logFinalOutcome(String msg, boolean passed)
msg - The test signoff message.passed - Whether the test passed.protected static void generatePerformanceReportFile()
public static void mergeLogFiles(boolean passed)
MergeLogFiles to merge test
log files into a single file, "mergedLogs.txt". The files
are assumed to end in .log and reside in the master user
directory and system logs (either local or remote).passed - Did the test pass?Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.