Installation
Install and configure QAFlow Reporter in your project
Installation
This page provides detailed instructions for installing and configuring QAFlow Reporter in your project.
Requirements
QAFlow Reporter requires:
- Node.js 14 or higher
- A QAFlow account with an API key
Installing the Package
Install QAFlow Reporter using your preferred package manager:
This will add QAFlow Reporter to your project dependencies.
Configuration Options
Using the CLI
The easiest way to configure QAFlow Reporter is by using the CLI to generate a configuration file:
This will:
- Prompt you for your QAFlow API key
- Create a
reporter.config.js
file in your project root - Set up the initial configuration
If you already have your API key and want to bypass the interactive prompt:
Manual Configuration
You can also create the configuration file manually:
- Create a
reporter.config.js
file in your project root - Add the following content:
Programmatic Configuration
If you prefer, you can configure QAFlow Reporter programmatically in your code:
Configuration Options
QAFlow Reporter supports the following configuration options:
Option | Type | Default | Description |
---|---|---|---|
apiKey | string | required | Your QAFlow API key |
Verifying Installation
To verify your installation and configuration:
- Create a simple test file with the following content:
- Run the test file:
If everything is set up correctly, you should see a successful test result in your console and in your QAFlow dashboard.
Troubleshooting
If you encounter issues during installation:
- Check that your API key is correct
- Ensure you have an active internet connection
- Verify that your Node.js version is 14 or higher
- Check for any firewall or network restrictions
For additional support, contact the QAFlow support team with the error details.