Skip to content

Cucumber - Steps

Steps

Steps

Process steps in the Cucumber plug-in

Compile Step Definition

Compile the step definitions.

NameTypeDescriptionRequired
Classpath IncludeStringThe directories to include. Use the double-astrick(**) to include all directories and the astrick(*) to include all files. For example, the pattern dist/**/*.jar would retrieve the all JAR files.No
Implementation BaseStringThe implementation base directory, for example:/opt/myProjectName/src/.No
Implementation IncludeStringList of implementation files to include. Use the double-astrick(**) to indicate include all directories and the astrick(*) to include all files. For example, the pattern dist/**/*.java retrieves the all JAVA files.No
JAVA_HOMEStringThe fully-qualified path to the Java installation for the javac compiler. The default is the value specified in the JAVA_HOME environment variable of the agent.No
Java ClassPath BaseStringThe base directory of the Java class path, for example: /jars/.No
Step Definitions BaseStringThe bases directory of the step definitions. For example, /opt/step_definitions/.Yes
Step Definitions IncludeStringThe step definitions to include. Use the double-astrick(**) to include all directories and the astrick(*) to include all files. For example, the pattern dist/**/*.java retrieves the all JAVA files.Yes

Run Testing

Run the test scenarios.

NameTypeDescriptionRequired
Dry-runBooleanSkip execution of the Glue code.No
FeaturesStringThe directory containing the feature files. Feature files contain the test scenarios.Yes
JAVA_HOMEStringThe fully-qualified path to the Java installation. The default is the value specified in the JAVA_HOME environment variable for the agent.No
Java ClassPathStringThe directory of the Java classpath, such as: /jars/.No
Name RegexpStringRun test scenarios with the name that matches REGEXP.No
Plugin TypeStringA reporting plug-informat links tags to external tools, such as: junit, html, pretty, progress, json, usage, and rerun. Built-in plug-ins include default_summary andnull_summary. Third-party plug-ins can also be included by specifying thefully qualified class name of the plug-in. The default value is pretty.No
Step DefinitionsStringThe directory containing the step definitions.Yes
StrictBooleanUndefined and pending steps are treated as errors.No
TagsStringRun test scenarios with the same tag as TAG_EXPRESSION.No