Package Exports
- @applitools/eyes-testcafe
- @applitools/eyes-testcafe/dist/api
- @applitools/eyes-testcafe/dist/extract-environment
- @applitools/eyes-testcafe/dist/index
- @applitools/eyes-testcafe/dist/index-legacy
- @applitools/eyes-testcafe/dist/legacy
- @applitools/eyes-testcafe/dist/spec-driver
- @applitools/eyes-testcafe/next
Readme
Applitools Eyes SDK for TestCafe.
Installation
Install Eyes-Testcafe as a local dev dependency in your tested project:
npm i -D @applitools/eyes-testcafeGetting started
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.
Entering the Applitools API key
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.
Entering the API Key on Linux or a Mac
export APPLITOOLS_API_KEY=<your_key>
npx testcafe chrome:headless some-test-dirEntering the API Key on Windows
set APPLITOOLS_API_KEY=<your_key>
npx testcafe chrome:headless some-test-dirEntering the API Key in the config.js file
You can also specify the API key in the applitools.config.js file. The property name is apiKey.
Example
module.exports = {
apiKey: 'YOUR_API_KEY',
...
}Further information
For further information, see: