
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
This framework is designed to help you get quickly started with test automation on any project. It is based on WebdriverIO and cucumber (cucumberJS to be exact). Integrating this module provides a ready-to-go environment to write and execute functional test scenarios on Google Chrome and Mozilla Firefox. It includes:
fillInForm to ease and accelerate test automation writing. See related JSDoc for more details.This framework is suitable for big solutions that will be covered by an important number of scenarios. Note that it requires good development skills as well as good knowledge and understanding of JavaScript.
npm install -g npxnpm init. More information about the different options here.npm install --save ntaf. It creates a node_modules directory containing all the dependencies needed to run the project.npx ntaf install to generate the skeleton of your test project.Set the configuration of your proxy by editing the .npmrc file in your home directory:
proxy=http://localhost:3128
https-proxy=http://localhost:3128
npx ntaf run to launch the tests as they would be played remotely.npx ntaf run wdio.local.conf.js to run the tests with local configuration.npx ntaf run wdio.debug.conf.js to run the tests with debug configuration (see Running Tests in Debug Mode section
for mode details).Note that the local and debug configurations have to be generated first (see Configuration section).
wdio.conf.js file, in the root folder of your project.wdio.local.conf.js. This local configuration can be reset by running
npx ntaf generate-local-conf.wdio.debug.conf.js. This debug configuration can be reset by running
npm ntaf generate-local-conf.To pass parameters to the command, add --: npx ntaf run --parameter1=value1
Add command line parameter --baseUrl="https://base.url" or update the wdio configuration file accordingly.
Add command line parameter --locale="en" or update the wdio configuration file accordingly.
Add command line parameter --tagExpression='@tag'.
Tags can be combined:
--tagExpression='@tag1 or @tag2' runs test tagged with @tag1 or @tag2--tagExpression='@tag1 and @tag2' runs test tagged with both @tag1 and @tag2--tagExpression='not @tag1' runs tests not tagged with @tag1See Cucumber Tag Expressions documentation for more details.
A realm is a configuration file that defines some wdio properties specific to a realm. A realm can be seen as a market,
a brand, an environment (such as dev or staging), etc. or a combination of them. Realm files are stored in the
conf/realm directory.
Usually realms define at least the following properties:
baseUrl: website to testspecs: list of features to runAdd command line parameter --realm="xxx". Where xxx is the file name in conf/real without the .js extension.
For example:
npx ntaf run --baseUrl="https://mywebsite.com" --tagExpression='@nrt and @catalog'us-dev: npx ntaf run --realm="us-dev" --tagExpression='@nrt'For IntelliJ, follow instructions at Debug with Chrome Debugging Protocol.
At step #4, run npx ntaf run wdio.debug.conf.js
npx ntaf test-unit to run unit testsnpx ntaf test-unit-with-coverage to run unit tests with code coverage computationRead detailed explanations in Framework.md.
FAQs
Nestlé Test Automation Framework
We found that ntaf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.