View Javadoc

1   /*
2    *  soapUI, copyright (C) 2006 eviware.com 
3    *
4    *  soapUI is free software; you can redistribute it and/or modify it under the 
5    *  terms of the GNU Lesser General Public License as published by the Free Software Foundation; 
6    *  either version 2.1 of the License, or (at your option) any later version.
7    *
8    *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
9    *  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.model.testsuite.LoadTestRunContext;
20  import com.eviware.soapui.model.testsuite.LoadTestRunner;
21  import com.eviware.soapui.model.testsuite.TestRunContext;
22  import com.eviware.soapui.model.testsuite.TestRunner;
23  import com.eviware.soapui.model.testsuite.TestStepResult;
24  import com.eviware.soapui.support.PropertyChangeNotifier;
25  
26  /***
27   * Assertion for LoadTest runs
28   * 
29   * @author Ole.Matzura
30   */
31  
32  public interface LoadTestAssertion extends PropertyChangeNotifier
33  {
34  	public final static String NAME_PROPERTY = LoadTestAssertion.class.getName()+ "@name";
35  	public final static String ICON_PROPERTY = LoadTestAssertion.class.getName()+ "@icon";
36  	public final static String CONFIGURATION_PROPERTY = LoadTestAssertion.class.getName()	+ "@configuration";
37  
38  	public static final String ALL_TEST_STEPS = "- Total -";
39  	public static final String ANY_TEST_STEP = "- Any -";
40  	
41  	public String getName();
42  
43  	public ImageIcon getIcon();
44  	
45  	public XmlObject getConfiguration();
46  	
47  	public String assertResult( LoadTestRunner loadTestRunner, LoadTestRunContext context, TestStepResult result, TestRunner testRunner, TestRunContext runContext );
48  
49  	public String assertResults( LoadTestRunner loadTestRunner, LoadTestRunContext context, TestRunner testRunner, TestRunContext runContext);
50  
51  	public String getTargetStep();
52  	
53  	public void setTargetStep( String name );
54  
55  	public String getDescription();
56  	
57  	public void release();
58  }