Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@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
The npm package @cap-js-community/cds-cucumber receives a total of 21 weekly downloads. As such, @cap-js-community/cds-cucumber popularity was classified as not popular.
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.