cds-cucumber

Local SAP UI5

Hosting SAP UI5 locally is beneficial due to the following reasons:

Using ui5 tools helps to build local UI5 that consists of all files required by the UI application.

The local UI5 build will be performed using the following command sequence:

npm i @ui5/cli
npx ui5 use sapui5@1.118.1
npm version "1.118.1"
npx ui5 build self-contained --all --include-task generateVersionInfo

In order to use the ready UI5 builds, the cds-cucumber module provides the following cds plugins:

In order to activate one of the plugins you can use the following command:

npx cds-add-cucumber-plugin -p <plugin name> <options>

Options:

Examples:

npx cds-add-cucumber-plugin -p local-ui5-tgz -w fiori -f app/fiori-apps.html

npx cds-add-cucumber-plugin -p local-ui5-tgz -f app/travel_processor/webapp/index.html

The repository provides shell scripts that help to perform the UI5 build but they are are not part of the released module. The scripts uses the tmp/sapui5 directory relative to the current directory. You can create a symlink if you want to target another build target directory.

Serving archived version (tgz file)

test/bin/build.ui5.tgz.sh

npx cds-add-cucumber-plugin -p local-ui5-tgz -w fiori -f app/fiori-apps.html

Serving build directory

test/bin/build.ui5.sh

npx cds-add-cucumber-plugin -p local-ui5-build -w fiori -f app/fiori-apps.html