Qase TMS TestCafe Reporter
npm install testcafe-reporter-qasePublish results simple and easy.
To install the latest version, run:
``sh`
npm install -D testcafe-reporter-qase
To update a test project using testcafe-reporter-qaser@v1 to version 2:
1. Update reporter configuration in qase.config.json and/or environment variables —
see the configuration reference below.
The TestCafe reporter has the ability to auto-generate test cases
and suites from your test data.
You can also annotate the tests with the IDs of existing test cases
from Qase.io before executing tests. It's a more reliable way to bind
autotests to test cases, that persists when you rename, move, or
parameterize your tests.
- qase.title - set the title of the test caseqase.fields
- - set the fields of the test caseqase.suite
- - set the suite of the test caseqase.comment
- - set the comment of the test caseqase.parameters
- - set the parameters of the test caseqase.groupParameters
- - set the group parameters of the test caseqase.ignore
- - ignore the test case in Qase. The test will be executed, but the results will not be sent to Qase.qase.step
- - create a step in the test caseqase.attach
- - attach a file or content to the test case
For detailed instructions on using annotations and methods, refer to Usage.
For example:
`js`
const q = qase.id(1)
.title('Text typing basics')
.field({ 'severity': 'high' })
.parameters({ 'browser': 'chrome' })
.create();
test.meta({ ...q })(
'Click check boxes and then verify their state',
async (t) => {
await t;
},
);
---
To run tests and create a test run, execute the command (for example from folder examples):
`bash`
QASE_MODE=testops npx testcafe chrome test.js -r spec,qase
or
`bash`
npm test

A test run will be performed and available at:
``
https://app.qase.io/run/QASE_PROJECT_CODE

Qase Testcafe reporter can be configured in multiple ways:
- using a separate config file qase.config.json,
- using environment variables (they override the values from the configuration files).
For a full list of configuration options, see
the Configuration reference.
Example qase.config.json file:
`json`
{
"mode": "testops",
"debug": true,
"testops": {
"api": {
"token": "api_key"
},
"project": "project_code",
"run": {
"complete": true
}
}
}
Check out the example of configuration for multiple reporters in the
demo project.
We maintain the reporter on LTS versions of Node.
testcafe >= 2.0.0`
[auth]: https://developers.qase.io/#authentication