1
2
3
4
5
6
7
8
9
10
11
12
13 package com.eviware.soapui.model.testsuite;
14
15 /***
16 * Listener for LoadTest run events
17 *
18 * @author Ole.Matzura
19 */
20
21 public interface LoadTestRunListener
22 {
23 /***
24 * Called before a load-test is about to be run
25 *
26 * @param loadTestRunner
27 * @param context
28 */
29
30 public void beforeLoadTest( LoadTestRunner loadTestRunner, LoadTestRunContext context );
31
32 /***
33 * Called after all initial loadtest threads have been started
34 *
35 * @param loadTestRunner
36 * @param context
37 */
38
39 public void loadTestStarted( LoadTestRunner loadTestRunner, LoadTestRunContext context );
40
41 /***
42 * Called before the execution of a testcase
43 *
44 * @param loadTestRunner
45 * @param context
46 * @param testRunner
47 * @param runContext
48 */
49
50 public void beforeTestCase( LoadTestRunner loadTestRunner, LoadTestRunContext context, TestCaseRunner testRunner,
51 TestCaseRunContext runContext );
52
53 /***
54 * Called before the execution of a teststep
55 *
56 * @param loadTestRunner
57 * @param context
58 * @param testRunner
59 * @param runContext
60 * @param testStep
61 */
62
63 public void beforeTestStep( LoadTestRunner loadTestRunner, LoadTestRunContext context, TestCaseRunner testRunner,
64 TestCaseRunContext runContext, TestStep testStep );
65
66 /***
67 * Called after the execution of a teststep
68 *
69 * @param loadTestRunner
70 * @param context
71 * @param testRunner
72 * @param runContext
73 * @param testStepResult
74 */
75
76 public void afterTestStep( LoadTestRunner loadTestRunner, LoadTestRunContext context, TestCaseRunner testRunner,
77 TestCaseRunContext runContext, TestStepResult testStepResult );
78
79 /***
80 * Called after the execution of a testcase
81 *
82 * @param loadTestRunner
83 * @param context
84 * @param testRunner
85 * @param runContext
86 */
87
88 public void afterTestCase( LoadTestRunner loadTestRunner, LoadTestRunContext context, TestCaseRunner testRunner,
89 TestCaseRunContext runContext );
90
91 /***
92 * Called when a loadtest has been stopped for some reason
93 *
94 * @param loadTestRunner
95 * @param context
96 */
97
98 public void loadTestStopped( LoadTestRunner loadTestRunner, LoadTestRunContext context );
99
100 /***
101 * Called after the execution of a loadtest when all threads have terminated
102 *
103 * @param loadTestRunner
104 * @param context
105 */
106 public void afterLoadTest( LoadTestRunner loadTestRunner, LoadTestRunContext context );
107 }