newman-reporter-qase
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

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_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

Requirements

We maintain the reporter on LTS versions of Node. You can find the current versions by following the link

Readme

Keywords

none

Package Sidebar

Install

npm i newman-reporter-qase

Weekly Downloads

242

Version

1.0.7

License

Apache-2.0

Unpacked Size

7.48 MB

Total Files

13

Last publish

Collaborators

  • qaseio
  • zeburek