Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

qase-javascript-commons

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qase-javascript-commons

Qase JS Reporters

  • 2.2.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Qase JavaScript Commons

This module is an SDK for developing test reporters for Qase TMS. It's using qaseio as an API client, and all Qase reporters are, in turn, using this package. You should use it if you're developing your own test reporter for a special-purpose framework.

To report results from tests using a popular framework or test runner, don't install this module directly and use the corresponding reporter module instead:

  • CucumberJS
  • Cypress
  • Jest
  • Newman
  • Playwright
  • TestCafe

Installation

npm install qase-javascript-commons

Configuration

Qase JS Reporters can be configured in multiple ways:

  • using a config file qase.config.json
  • using environment variables

All configuration options are listed in the table below:

DescriptionConfig fileEnvironment variableDefault valueRequiredPossible values
Common
Mode of reportermodeQASE_MODEoffNotestops, report, off
Fallback mode of reporterfallbackQASE_FALLBACKoffNotestops, report, off
EnvironmentenvironmentQASE_ENVIRONMENTundefinedNoAny string
Root suiterootSuiteQASE_ROOT_SUITEundefinedNoAny string
Enable debug logsdebugQASE_DEBUGFalseNoTrue, False
Enable capture logs from stdout and stderrtestops.defectQASE_CAPTURE_LOGSFalseNoTrue, False
Qase Report configuration
Driver used for report modereport.driverQASE_REPORT_DRIVERlocalNolocal
Path to save the reportreport.connection.pathQASE_REPORT_CONNECTION_PATH./build/qase-report
Local report formatreport.connection.formatQASE_REPORT_CONNECTION_FORMATjsonjson, jsonp
Qase TestOps configuration
Token for API accesstestops.api.tokenQASE_TESTOPS_API_TOKENundefinedYesAny string
Qase API host. For enterprise users, specify full address: api-example.qase.iotestops.api.hostQASE_TESTOPS_API_HOSTqase.ioNoAny string
Qase enterprise environmenttestops.api.enterpriseQASE_TESTOPS_API_ENTERPRISEFalseNoTrue, False
Code of your project, which you can take from the URL: https://app.qase.io/project/DEMOTR - DEMOTR is the project codetestops.projectQASE_TESTOPS_PROJECTundefinedYesAny string
Qase test run IDtestops.run.idQASE_TESTOPS_RUN_IDundefinedNoAny integer
Qase test run titletestops.run.titleQASE_TESTOPS_RUN_TITLEAutomated run <Current date and time>NoAny string
Qase test run descriptiontestops.run.descriptionQASE_TESTOPS_RUN_DESCRIPTION<Framework name> automated runNoAny string
Qase test run completetestops.run.completeQASE_TESTOPS_RUN_COMPLETETrueTrue, False
Qase test plan IDtestops.plan.idQASE_TESTOPS_PLAN_IDundefinedNoAny integer
Size of batch for sending test resultstestops.batch.sizeQASE_TESTOPS_BATCH_SIZE200NoAny integer
Enable defects for failed test casestestops.defectQASE_TESTOPS_DEFECTFalseNoTrue, False

Example qase.config.json config:

{
  "mode": "testops",
  "fallback": "report",
  "debug": false,
  "environment": "local",
  "captureLogs": false,
  "report": {
    "driver": "local",
    "connection": {
      "local": {
        "path": "./build/qase-report",
        "format": "json"
      }
    }
  },
  "testops": {
    "api": {
      "token": "<token>",
      "host": "qase.io"
    },
    "run": {
      "title": "Regress run",
      "description": "Regress run description",
      "complete": true
    },
    "defect": false,
    "project": "<project_code>",
    "batch": {
      "size": 100
    }
  }
}

FAQs

Package last updated on 11 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc