Package org.citrusframework.container
Class AbstractSuiteActionContainer
java.lang.Object
org.citrusframework.actions.AbstractTestAction
org.citrusframework.container.AbstractActionContainer
org.citrusframework.container.AbstractSuiteActionContainer
- All Implemented Interfaces:
Described,Named,Completable,TestActionContainer,TestAction,TestActorAware
- Direct Known Subclasses:
SequenceAfterSuite,SequenceBeforeSuite
Abstract suit container actions executed before and after test suite run. Container decides
weather to execute according to given suite name and included test groups if any.
- Since:
- 2.0
-
Field Summary
Fields inherited from class org.citrusframework.container.AbstractActionContainer
actionsFields inherited from class org.citrusframework.actions.AbstractTestAction
description -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEnv()Gets the env.Gets the suite names that restrict the container execution.Gets the systemProperties.Gets the test groups that restrict the container execution.voidSets the env.voidsetSuiteNames(List<String> suiteNames) Sets the suite names that restrict the container execution.voidsetSystemProperties(Map<String, String> systemProperties) Sets the systemProperties.voidsetTestGroups(List<String> testGroups) Sets the test groups that restrict the container execution.booleanshouldExecute(String suiteName, String[] includedGroups) Checks if this suite actions should execute according to suite name and included test groups.Methods inherited from class org.citrusframework.container.AbstractActionContainer
addTestAction, addTestAction, addTestActions, addTestActions, executeAction, getActionCount, getActionIndex, getActions, getActiveAction, getExecutedActions, getTestAction, isDone, setActions, setActiveAction, setExecutedActionMethods inherited from class org.citrusframework.actions.AbstractTestAction
doExecute, execute, getActor, getDescription, getName, isDisabled, setActor, setDescription, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.TestAction
execute, getActor, getName, isDisabled
-
Constructor Details
-
AbstractSuiteActionContainer
public AbstractSuiteActionContainer()
-
-
Method Details
-
shouldExecute
Checks if this suite actions should execute according to suite name and included test groups.- Parameters:
suiteName-includedGroups-- Returns:
-
getTestGroups
Gets the test groups that restrict the container execution.- Returns:
-
setTestGroups
Sets the test groups that restrict the container execution.- Parameters:
testGroups-
-
getSuiteNames
Gets the suite names that restrict the container execution.- Returns:
-
setSuiteNames
Sets the suite names that restrict the container execution.- Parameters:
suiteNames-
-
getEnv
Gets the env.- Returns:
-
setEnv
Sets the env.- Parameters:
env-
-
getSystemProperties
Gets the systemProperties.- Returns:
-
setSystemProperties
Sets the systemProperties.- Parameters:
systemProperties-
-