Publish results simple and easy.
npm install newman-reporter-qase
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
})
You should also have an active item in the project settings at
https://app.qase.io/project/QASE_PROJECT_CODE/settings/options
options in the Test Runs
block:
Auto create test cases
and
Allow submitting results in bulk
QASE_RUN_ID=34 # Specify Run ID using ENV
newman run \
-r qase \ # Enable Qase logger
--reporter-qase-logging \ # Use reporter logger (like debug)
--reporter-qase-projectCode project_code \ # Specify Project Code
--reporter-qase-apiToken api_token \ # Specify API token
--reporter-qase-runId 34 \ # Specify Run ID using CLI parameters
--reporter-qase-basePath https://api.qase.io/v1 \ # URL Qase.io
--reporter-qase-runName 'API test Execution' \ # Specify Run name using CLI parameters
--reporter-qase-runDescription 'Check API consistency' \ # Specify Run description using CLI parameters
--reporter-qase-rootSuiteTitle 'Newman tests' \ # A parent suite for your autocreated tests
-x # WA for issue https://github.com/postmanlabs/newman/issues/2148#issuecomment-665229759
A test run will be performed and available at:
https://app.qase.io/run/QASE_PROJECT_CODE
We maintain the reporter on LTS versions of Node. You can find the current versions by following the link