
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@cap-js-community/cds-cucumber
Advanced tools
A library to write behaviour-driven tests for CAP applications
Provides a library for behaviour-driven tests of CAP applications. It contains ready-to-use steps that help you write tests in a BDD style. The cucumber project provides framework for that.
As of now, the library supports SAP Fiori® Elements as UI framework and OData as communication protocol.
A typical test looks like this:
Feature: Fiori preview page
Scenario: Open first Fiori preview page
Given we have started the application
And we have opened the url "/"
When we click on first Fiori preview page
And we search for "jane"
Then we expect to have 1 table records
The project is in early beta phase, please expect changes.
List of steps and details is available in the documentation.
Install the CAP development toolkit:
npm add -g @sap/cds-dk
Make sure you have a CAP project. You can create one with the following command:
cds init --add sample bookshop
cd bookshop
npm add -D @cap-js-community/cds-cucumber
npx cds-add-cucumber
File: test/features/first.feature
Feature: Bookshop first feature file
Scenario: Open "Manage Books" as "alice" and search for "jane"
Given we have started the application
And we have opened the url "/" with user "alice"
When we select tile "Manage Books"
And we search for "jane"
Then we expect to have 2 table records
For existing projects you have to adjust the example above.
npx cucumber-js test
A recent version of the chrome browser should be present on the system.
For additional information see the details page.
This project is open to feature requests/suggestions, bug reports etc. via GitHub issues. Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines.
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.
Copyright 2023 SAP SE or an SAP affiliate company and cds-cucumber contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.
Version 0.4.2 - 2024-07-24
FAQs
A library to write behaviour-driven tests for CAP applications
We found that @cap-js-community/cds-cucumber demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.