Class RobotFrameworkCamelConfiguration
java.lang.Object
org.apache.camel.component.robotframework.RobotFrameworkCamelConfiguration
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()getLog()getName()getTags()getTests()booleanbooleanbooleanisDryrun()booleanbooleanbooleanbooleanbooleanbooleanvoidsetAllowContextMapAll(boolean allowContextMapAll) Sets whether the context map should allow access to all details.voidsetAllowTemplateFromHeader(boolean allowTemplateFromHeader) Whether to allow to use resource template from header or not (default false).voidsetArgumentFiles(String argumentFiles) A text String to read more arguments from.voidsetCombinedTagStats(String combinedTagStats) Creates combined statistics based on tags.voidsetCriticalTags(String criticalTags) Tests that have the given tags are considered critical.voidsetDebugFile(String debugString) A debug String that is written during execution.voidsetDocument(String document) Sets the documentation of the top-level tests suites.voidsetDryrun(boolean dryrun) Sets dryrun mode on use.voidsetExcludes(String excludes) Selects the tests cases by tags.voidsetExitOnFailure(boolean exitOnFailure) Sets robot to stop execution immediately if a critical test fails.voidsetIncludes(String includes) Selects the tests cases by tags.voidsetListener(String listener) Sets a single listener for monitoring tests executionvoidsetListeners(String listeners) Sets multiple listeners for monitoring tests execution.voidSets the path to the generated log String.voidsetLogLevel(String logLevel) Sets the threshold level for logging.voidsetLogTitle(String logTitle) Sets a title for the generated tests log.voidsetMetadata(String metadata) Sets free metadata for the top level tests suites. comma seperated list of string resulting as ListvoidsetMonitorColors(String monitorColors) Using ANSI colors in console.voidsetMonitorWidth(String monitorWidth) Width of the monitor output.voidSets the name of the top-level tests suites.voidsetNonCriticalTags(String nonCriticalTags) Tests that have the given tags are not critical.voidsetNoStatusReturnCode(boolean noStatusReturnCode) If true, sets the return code to zero regardless of failures in test cases.voidSets the path to the generated output String.voidsetOutputDirectory(String outputDirectory) Configures where generated reports are to be placed.voidsetRandomize(String randomize) Sets the test execution order to be randomized.voidSets the path to the generated report String.voidsetReportBackground(String reportBackground) Sets background colors for the generated report and summary.voidsetReportTitle(String reportTitle) Sets a title for the generated tests report.voidsetRunEmptySuite(boolean runEmptySuite) Executes tests also if the top level test suite is empty.voidsetRunFailed(String runFailed) Re-run failed tests, based on output.xml String.voidsetRunMode(String runMode) Sets the execution mode for this tests run.voidsetSkipTeardownOnExit(boolean skipTeardownOnExit) Sets whether the teardowns are skipped if the test execution is prematurely stopped.voidsetSplitOutputs(String splitOutputs) Splits output and log files.voidSelects the tests suites by name.voidsetSuiteStatLevel(String suiteStatLevel) Defines how many levels to show in the Statistics by Suite table in outputs.voidsetSummaryTitle(String summaryTitle) Sets a title for the generated summary report.voidsetTagDocs(String tagDocs) Adds documentation to the specified tags.voidSets the tags(s) to all executed tests cases.voidsetTagStatExcludes(String tagStatExcludes) Excludes these tags from the Statistics by Tag and Test Details by Tag tables in outputs.voidsetTagStatIncludes(String tagStatIncludes) Includes only these tags in the Statistics by Tag and Test Details by Tag tables in outputs.voidsetTagStatLinks(String tagStatLinks) Adds external links to the Statistics by Tag table in outputs.voidSelects the tests cases by name.voidsetTimestampOutputs(boolean timestampOutputs) Adds a timestamp to all output files.voidsetVariableFiles(String variableFiles) Sets variables using variables files.voidsetVariables(String variables) Sets individual variables.voidsetWarnOnSkippedFiles(boolean warnOnSkippedFiles) Show a warning when an invalid String is skipped.voidsetXunitFile(String xunitFile) Sets the path to the generated XUnit compatible result String, relative to outputDirectory.
-
Constructor Details
-
RobotFrameworkCamelConfiguration
public RobotFrameworkCamelConfiguration()
-
-
Method Details
-
getName
-
getDocument
-
getMetadata
-
getTags
-
getTests
-
getSuites
-
getIncludes
-
getExcludes
-
getCriticalTags
-
getNonCriticalTags
-
getRunMode
-
isDryrun
public boolean isDryrun() -
isSkipTeardownOnExit
public boolean isSkipTeardownOnExit() -
isExitOnFailure
public boolean isExitOnFailure() -
getRandomize
-
getVariables
-
getVariableFiles
-
getOutputDirectory
-
getOutput
-
getLog
-
getReport
-
getXunitFile
-
getDebugFile
-
isTimestampOutputs
public boolean isTimestampOutputs() -
getSplitOutputs
-
getLogTitle
-
getReportTitle
-
getSummaryTitle
-
getReportBackground
-
getLogLevel
-
getSuiteStatLevel
-
getTagStatIncludes
-
getTagStatExcludes
-
getCombinedTagStats
-
getTagDocs
-
getTagStatLinks
-
getListeners
-
getListener
-
isWarnOnSkippedFiles
public boolean isWarnOnSkippedFiles() -
getMonitorWidth
-
getMonitorColors
-
getArgumentFiles
-
isRunEmptySuite
public boolean isRunEmptySuite() -
getRunFailed
-
isNoStatusReturnCode
public boolean isNoStatusReturnCode() -
setName
Sets the name of the top-level tests suites. -
setDocument
Sets the documentation of the top-level tests suites. -
setMetadata
Sets free metadata for the top level tests suites. comma seperated list of string resulting as List -
setTags
Sets the tags(s) to all executed tests cases. List -
setTests
Selects the tests cases by name. List -
setSuites
Selects the tests suites by name. List -
setIncludes
Selects the tests cases by tags. List -
setExcludes
Selects the tests cases by tags. List -
setCriticalTags
Tests that have the given tags are considered critical. List -
setNonCriticalTags
Tests that have the given tags are not critical. List -
setRunMode
Sets the execution mode for this tests run. Note that this setting has been deprecated in Robot Framework 2.8. Use separate dryryn, skipTeardownOnExit, exitOnFailure, and randomize settings instead. -
setDryrun
public void setDryrun(boolean dryrun) Sets dryrun mode on use. In the dry run mode tests are run without executing keywords originating from test libraries. Useful for validating test data syntax. -
setSkipTeardownOnExit
public void setSkipTeardownOnExit(boolean skipTeardownOnExit) Sets whether the teardowns are skipped if the test execution is prematurely stopped. -
setExitOnFailure
public void setExitOnFailure(boolean exitOnFailure) Sets robot to stop execution immediately if a critical test fails. -
setRandomize
Sets the test execution order to be randomized. Valid values are all, suite, and test -
setVariables
Sets individual variables. Use the format "name:value" List -
setVariableFiles
Sets variables using variables files. Use the format "path:args" List -
setOutputDirectory
Configures where generated reports are to be placed. -
setOutput
Sets the path to the generated output String. -
setLog
Sets the path to the generated log String. -
setReport
Sets the path to the generated report String. -
setXunitFile
Sets the path to the generated XUnit compatible result String, relative to outputDirectory. The String is in xml format. By default, the String name is derived from the testCasesDirectory parameter, replacing blanks in the directory name by underscores. -
setDebugFile
A debug String that is written during execution. -
setTimestampOutputs
public void setTimestampOutputs(boolean timestampOutputs) Adds a timestamp to all output files. -
setSplitOutputs
Splits output and log files. -
setLogTitle
Sets a title for the generated tests log. -
setReportTitle
Sets a title for the generated tests report. -
setSummaryTitle
Sets a title for the generated summary report. -
setReportBackground
Sets background colors for the generated report and summary. -
setLogLevel
Sets the threshold level for logging. -
setSuiteStatLevel
Defines how many levels to show in the Statistics by Suite table in outputs. -
setTagStatIncludes
Includes only these tags in the Statistics by Tag and Test Details by Tag tables in outputs. List -
setTagStatExcludes
Excludes these tags from the Statistics by Tag and Test Details by Tag tables in outputs. List -
setCombinedTagStats
Creates combined statistics based on tags. Use the format "tags:title" List -
setTagDocs
Adds documentation to the specified tags. List -
setTagStatLinks
Adds external links to the Statistics by Tag table in outputs. Use the format "pattern:link:title" List -
setListeners
Sets multiple listeners for monitoring tests execution. Use the format "ListenerWithArgs:arg1:arg2" or simply "ListenerWithoutArgs" List -
setListener
Sets a single listener for monitoring tests execution -
setWarnOnSkippedFiles
public void setWarnOnSkippedFiles(boolean warnOnSkippedFiles) Show a warning when an invalid String is skipped. -
setMonitorWidth
Width of the monitor output. Default is 78. -
setMonitorColors
Using ANSI colors in console. Normally colors work in unixes but not in Windows. Default is 'on'.- 'on' - use colors in unixes but not in Windows
- 'off' - never use colors
- 'force' - always use colors (also in Windows)
-
setArgumentFiles
A text String to read more arguments from. -
setRunEmptySuite
public void setRunEmptySuite(boolean runEmptySuite) Executes tests also if the top level test suite is empty. Useful e.g. with --include/--exclude when it is not an error that no test matches the condition. -
setRunFailed
Re-run failed tests, based on output.xml String. -
setNoStatusReturnCode
public void setNoStatusReturnCode(boolean noStatusReturnCode) If true, sets the return code to zero regardless of failures in test cases. Error codes are returned normally. -
isAllowTemplateFromHeader
public boolean isAllowTemplateFromHeader() -
setAllowTemplateFromHeader
public void setAllowTemplateFromHeader(boolean allowTemplateFromHeader) Whether to allow to use resource template from header or not (default false). Enabling this allows to specify dynamic templates via message header. However this can be seen as a potential security vulnerability if the header is coming from a malicious user, so use this with care. -
isAllowContextMapAll
public boolean isAllowContextMapAll() -
setAllowContextMapAll
public void setAllowContextMapAll(boolean allowContextMapAll) Sets whether the context map should allow access to all details. By default only the message body and headers can be accessed. This option can be enabled for full access to the current Exchange and CamelContext. Doing so impose a potential security risk as this opens access to the full power of CamelContext API. -
copy
-