newman-reporter-qase v1.0.7
Qase TMS Newman reporter
Publish results simple and easy.
How to integrate
npm install newman-reporter-qase
Example of usage
Define in tests
The Newman reporter has the ability to auto-generate test cases and suites from your test data.
But if necessary, you can independently register the ID of already existing test cases from TMS before the executing tests. Example:
//qase: 10
// Qase: 1, 2, 3
// qase: 4 5 6 14
pm.test('expect response be 200', function () {
pm.response.to.be.info
})
Execute rom CLI:
QASE_MODE=testops newman run ./sample-collection.json -r qase
A test run will be performed and available at:
https://app.qase.io/run/QASE_PROJECT_CODE
Configuration
Qase reporter supports passing parameters using two ways:
using .qaserc
/qase.config.json
file and using ENV variables.
.qaserc
parameters, (* - required):
mode
-testops
/off
Enables reporter, default -off
debug
- Enables debug logging, defaule -false
environment
- To execute with the sending of the envinroment information- *
testops.api.token
- Token for API access, you can find more information here - *
testops.project
- Code of your project (can be extracted from main page of your project:https://app.qase.io/project/DEMOTR
-DEMOTR
is project code here) testops.run.id
- Pass Run IDtestops.run.title
- Set custom Run name, when new run is createdtestops.run.description
- Set custom Run description, when new run is createdtestops.run.complete
- Whether the run should be completed
Example configuration file:
{
"mode": "testops",
"debug": true,
"environment": 1,
"testops": {
"api": {
"token": "api_key"
},
"projectCode": "project_code"
}
}
Supported ENV variables:
QASE_MODE
- Same asmode
QASE_DEBUG
- Same asdebug
QASE_ENVIRONMENT
- Same asenvironment
QASE_TESTOPS_API_TOKEN
- Same astestops.api.token
QASE_TESTOPS_PROJECT
- Same astestops.project
QASE_TESTOPS_RUN_ID
- Pass Run ID from ENV and override reporter optiontestops.run.id
QASE_TESTOPS_RUN_TITLE
- Same astestops.run.title
QASE_TESTOPS_RUN_DESCRIPTION
- Same astestops.run.description
Requirements
We maintain the reporter on LTS versions of Node. You can find the current versions by following the link
newman >= 5.3.0
8 months ago
8 months ago
9 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
4 years ago
4 years ago