runCucumberTests

An operation for running Cucumber tests.

Test results will be converted to FlexDeploy tests results and available in FlexDeploy UI.

This runs Cucumber 5.1.3

Inputs

Input Name

Input Code

Required

Description

Input Name

Input Code

Required

Description

Path to Feature Files

FDCUCUMBER_PATH_TO_FEATURE_FILES

Yes

The path to the .feature files (e.g. /tests). If a relative path is given it is assumed, it is in FD_TEMP_DIR.

Package Name

FDCUCUMBER_PACKAGE_NAME

Yes

Package name (e.g. com.flexagon.flexdeploy). Make sure your folders are layed out in this way. i.e. if a class is in the com.flexagon.flexdeploy package make sure it is in the com/flexagon/flexdeploy folder. This will look in all the lower packages i.e. if a class is in com.flexagon.flexdeploy and you put com.flexagon it will still find it.

Path to Class Files

FDCUCUMBER_PATH_TO_CLASS_FILES

Yes

The ClassPath for your compiled Step Definitions and code that you are testing. Use the Java ClassPath separator. ';' on Windows and ':' on Unix systems to separate multiple files/directories. Wildcards are not supported. However, any Jar files in a given directory will be added to the ClassPath instead of that directory. If a relative path is given, it will be assumed to be inside of FD_TEMP_DIR.

  • Windows Example

    • User Input: "classes;c:\\libraries\\;"

    • ClassPath derived: FD_TEMP_DIR\\classes;c:\\libraries\\library.jar;c:\\libraries\\anotherlibrary.jar

  • UNIX Example

    • User Input: "classes:lib/abc.jar:/opt/app/tomcat/lib/:"

    • ClassPath derived: FD_TEMP_DIR/classes:FD_TEMP_DIR/lib/abc.jar:/opt/app/tomcat/lib/library.jar:/opt/app/tomcat/lib/anotherLibrary.jar

Artifacts

This operation consumes artifacts from the artifacts repository.

Endpoint Selection

This operation delegates endpoint selection to the workflow developer. The workflow editor will default the selection to "All", which selects all available endpoints associated to the target.

Selecting a specific resource will result in selection of endpoints associated to the target which have that resource defined

Endpoint Execution

This operation delegates endpoint execution to the workflow developer. The workflow editor will default to "Any", which will execute on any one of the selected endpoints, which will be randomly picked from selected endpoints or a specific endpoint where previous step may have executed. Changing this value to "All" to will result in execution on all selected endpoints.

The following macros are not currently supported in the footer:
  • style