Applitools Eyes SDK for TestCafe.
Install Eyes-Testcafe as a local dev dependency in your tested project:
npm i -D @applitools/eyes-testcafe
To get started with this SDK, you need to set the following:
- Applitools API key
- Eyes server URL - Required only if the Eyes server is not deployed on the Eyes public server.
To authenticate via the Applitools server and run tests, you need to set the environment variable APPLITOOLS_API_KEY
to the API key provided from Applitools Eyes. For details how to retrieve your API key, see the Applitools documentation in the Eyes Knowledge Center.
To to this, set the environment variable APPLITOOLS_API_KEY
to the API key before running your tests.
export APPLITOOLS_API_KEY=<your_key>
npx testcafe chrome:headless some-test-dir
set APPLITOOLS_API_KEY=<your_key>
npx testcafe chrome:headless some-test-dir
You can also specify the API key in the applitools.config.js
file. The property name is apiKey
.
module.exports = {
apiKey: 'YOUR_API_KEY',
...
}
For further information, see: