com.consol.citrus.actions
Class ExecuteSQLAction
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.jdbc.core.support.JdbcDaoSupport
com.consol.citrus.actions.AbstractDatabaseConnectingTestAction
com.consol.citrus.actions.ExecuteSQLAction
- All Implemented Interfaces:
- TestAction, org.springframework.beans.factory.InitializingBean
public class ExecuteSQLAction
- extends AbstractDatabaseConnectingTestAction
Test action execute SQL statements. Use this action when executing
database altering statements like UPDATE, INSERT, ALTER, DELETE. Statements are either
embedded inline in the test case description or given by an external file resource.
When executing SQL query statements (SELECT) see ExecuteSQLQueryAction.
- Since:
- 2006
- Author:
- Christoph Deppisch, Jan Szczepanski
| Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
| Methods inherited from class com.consol.citrus.actions.AbstractDatabaseConnectingTestAction |
createStatementsFromFileResource, decorateLastScriptLine, execute, getActor, getDescription, getName, getSqlResourcePath, getStatemendEndingCharacter, getStatements, isDisabled, setActor, setDescription, setName, setSqlResourcePath, setStatements |
| Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport |
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, initTemplateConfig, releaseConnection, setDataSource, setJdbcTemplate |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExecuteSQLAction
public ExecuteSQLAction()
doExecute
public void doExecute(TestContext context)
- Description copied from class:
AbstractDatabaseConnectingTestAction
- Subclasses may add custom execution logic here.
- Specified by:
doExecute in class AbstractDatabaseConnectingTestAction
setIgnoreErrors
public void setIgnoreErrors(boolean ignoreErrors)
- Ignore errors during execution.
- Parameters:
ignoreErrors - boolean flag to set
isIgnoreErrors
public boolean isIgnoreErrors()
- Gets the ignoreErrors.
- Returns:
- the ignoreErrors
Copyright © 2008-2013 ConSol* Consulting&Solutions GmbH. All Rights Reserved.