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.impl.wsdl.loadtest;
14:
15: import javax.swing.ImageIcon;
16:
17: import org.apache.xmlbeans.XmlObject;
18:
19: import com.eviware.soapui.config.LoadTestAssertionConfig;
20: import com.eviware.soapui.model.testsuite.LoadTestRunContext;
21: import com.eviware.soapui.model.testsuite.LoadTestRunner;
22: import com.eviware.soapui.model.testsuite.TestRunContext;
23: import com.eviware.soapui.model.testsuite.TestRunner;
24: import com.eviware.soapui.model.testsuite.TestStepResult;
25: import com.eviware.soapui.support.PropertyChangeNotifier;
26:
27: /**
28: * Assertion for LoadTest runs
29: *
30: * @author Ole.Matzura
31: */
32:
33: public interface LoadTestAssertion extends PropertyChangeNotifier {
34: public final static String NAME_PROPERTY = LoadTestAssertion.class
35: .getName()
36: + "@name";
37: public final static String ICON_PROPERTY = LoadTestAssertion.class
38: .getName()
39: + "@icon";
40: public final static String CONFIGURATION_PROPERTY = LoadTestAssertion.class
41: .getName()
42: + "@configuration";
43:
44: public static final String ALL_TEST_STEPS = "- Total -";
45: public static final String ANY_TEST_STEP = "- Any -";
46:
47: public String getName();
48:
49: public ImageIcon getIcon();
50:
51: public XmlObject getConfiguration();
52:
53: public void updateConfiguration(
54: LoadTestAssertionConfig configuration);
55:
56: public String assertResult(LoadTestRunner loadTestRunner,
57: LoadTestRunContext context, TestStepResult result,
58: TestRunner testRunner, TestRunContext runContext);
59:
60: public String assertResults(LoadTestRunner loadTestRunner,
61: LoadTestRunContext context, TestRunner testRunner,
62: TestRunContext runContext);
63:
64: public String getTargetStep();
65:
66: public void setTargetStep(String name);
67:
68: public String getDescription();
69:
70: public void release();
71: }
|