01: /*
02: * soapUI, copyright (C) 2004-2007 eviware.com
03: *
04: * soapUI is free software; you can redistribute it and/or modify it under the
05: * terms of version 2.1 of the GNU Lesser General Public License as published by
06: * the Free Software Foundation.
07: *
08: * soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
09: * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10: * See the GNU Lesser General Public License for more details at gnu.org.
11: */
12:
13: package com.eviware.soapui.model.testsuite;
14:
15: import java.io.PrintWriter;
16:
17: import com.eviware.soapui.support.action.swing.ActionList;
18:
19: /**
20: * A TestStep result
21: *
22: * @author Ole.Matzura
23: */
24:
25: public interface TestStepResult {
26: public enum TestStepStatus {
27: UNKNOWN, OK, FAILED, CANCELED
28: }
29:
30: public TestStepStatus getStatus();
31:
32: public TestStep getTestStep();
33:
34: /**
35: * Returns a list of actions that can be applied to this result
36: */
37:
38: public ActionList getActions();
39:
40: public String[] getMessages();
41:
42: public Throwable getError();
43:
44: public long getTimeTaken();
45:
46: public long getTimeStamp();
47:
48: /**
49: * Used for calculating throughput
50: *
51: * @return the number of bytes in this result
52: */
53:
54: public long getSize();
55:
56: /**
57: * Writes this result to the specified writer, used for logging.
58: */
59:
60: public void writeTo(PrintWriter writer);
61:
62: /**
63: * Can discard any result data that may be taking up memory. Timing-values
64: * must not be discarded.
65: */
66:
67: public void discard();
68:
69: public boolean isDiscarded();
70: }
|