Package org.citrusframework.actions
Class ExecuteSQLAction
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.jdbc.core.support.JdbcDaoSupport
org.citrusframework.actions.AbstractDatabaseConnectingTestAction
org.citrusframework.actions.ExecuteSQLAction
- All Implemented Interfaces:
Described,Named,TestAction,TestActorAware,org.springframework.beans.factory.InitializingBean
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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.citrusframework.actions.AbstractDatabaseConnectingTestAction
sqlResourcePath, statementsFields inherited from class org.springframework.dao.support.DaoSupport
logger -
Method Summary
Modifier and TypeMethodDescriptionvoiddoExecute(TestContext context) Subclasses may add custom execution logic here.protected voidexecuteStatements(List<String> statements, TestContext context) Run all SQL statements.booleanGets the ignoreErrors.Methods inherited from class org.citrusframework.actions.AbstractDatabaseConnectingTestAction
createStatementsFromFileResource, createStatementsFromFileResource, execute, getActor, getDescription, getName, getSqlResourcePath, getStatements, getTransactionIsolationLevel, getTransactionManager, getTransactionTimeout, isDisabled, setActor, setDescription, setNameMethods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, initTemplateConfig, releaseConnection, setDataSource, setJdbcTemplateMethods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
-
Method Details
-
doExecute
Description copied from class:AbstractDatabaseConnectingTestActionSubclasses may add custom execution logic here.- Specified by:
doExecutein classAbstractDatabaseConnectingTestAction
-
executeStatements
Run all SQL statements.- Parameters:
statements-context-
-
isIgnoreErrors
public boolean isIgnoreErrors()Gets the ignoreErrors.- Returns:
- the ignoreErrors
-