View Javadoc

    1   /*
    2    *  soapUI, copyright (C) 2004-2007 eviware.com
    3    *
    4    *  soapUI is free software; you can redistribute it and/or modify it under the
    5    *  terms of version 2.1 of the GNU Lesser General Public License as published by
    6    *  the Free Software Foundation.
    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.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  {
    35  	public final static String NAME_PROPERTY = LoadTestAssertion.class.getName()+ "@name";
    36  	public final static String ICON_PROPERTY = LoadTestAssertion.class.getName()+ "@icon";
    37  	public final static String CONFIGURATION_PROPERTY = LoadTestAssertion.class.getName()	+ "@configuration";
    38
    39  	public static final String ALL_TEST_STEPS = "- Total -";
    40  	public static final String ANY_TEST_STEP = "- Any -";
    41
    42  	public String getName();
    43
    44  	public ImageIcon getIcon();
    45
    46  	public XmlObject getConfiguration();
    47
    48  	public void updateConfiguration( LoadTestAssertionConfig configuration );
    49
    50  	public String assertResult( LoadTestRunner loadTestRunner, LoadTestRunContext context, TestStepResult result, TestRunner testRunner, TestRunContext runContext );
    51
    52  	public String assertResults( LoadTestRunner loadTestRunner, LoadTestRunContext context, TestRunner testRunner, TestRunContext runContext);
    53
    54  	public String getTargetStep();
    55
    56  	public void setTargetStep( String name );
    57
    58  	public String getDescription();
    59
    60  	public void release();
    61  }