com.eviware.soapui.model.testsuite.TestCase Maven / Gradle / Ivy
The newest version!
/*
* soapUI, copyright (C) 2004-2011 smartbear.com
*
* soapUI is free software; you can redistribute it and/or modify it under the
* terms of version 2.1 of the GNU Lesser General Public License as published by
* the Free Software Foundation.
*
* soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details at gnu.org.
*/
package com.eviware.soapui.model.testsuite;
import java.util.List;
import com.eviware.soapui.model.TestModelItem;
import com.eviware.soapui.security.SecurityTest;
import com.eviware.soapui.support.types.StringToObjectMap;
/**
* A TestCase holding a number of TestSteps
*
* @author Ole.Matzura
*/
public interface TestCase extends TestModelItem, ResultContainer, TestRunnable
{
public final static String STATUS_PROPERTY = TestCase.class.getName() + "@status";
public final static String DISABLED_PROPERTY = TestCase.class.getName() + "@disabled";
public TestSuite getTestSuite();
public TestStep getTestStepAt( int index );
public int getIndexOfTestStep( TestStep testStep );
public int getTestStepCount();
public List getTestStepList();
public LoadTest getLoadTestAt( int index );
public LoadTest getLoadTestByName( String loadTestName );
public int getIndexOfLoadTest( LoadTest loadTest );
public int getLoadTestCount();
public List getLoadTestList();
public TestCaseRunner run( StringToObjectMap context, boolean async );
public void addTestRunListener( TestRunListener listener );
public void removeTestRunListener( TestRunListener listener );
public int getTestStepIndexByName( String stepName );
public T findPreviousStepOfType( TestStep referenceStep, Class stepClass );
public T findNextStepOfType( TestStep referenceStep, Class stepClass );
public List getTestStepsOfType( Class stepType );
public void moveTestStep( int index, int offset );
public TestStep getTestStepByName( String stepName );
public boolean isDisabled();
public String getLabel();
public SecurityTest getSecurityTestAt( int index );
public SecurityTest getSecurityTestByName( String securityTestName );
public int getIndexOfSecurityTest( SecurityTest securityTest );
public int getSecurityTestCount();
public List getSecurityTestList();
}