Configuration

The Reporter 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:

Common

DescriptionConfig fileEnvironment variableDefault valueRequiredPossible values
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 stderrcaptureLogsQASE_CAPTURE_LOGSFalseNoTrue, False

Qase Report configuration

DescriptionConfig fileEnvironment variableDefault valueRequiredPossible values
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

DescriptionConfig fileEnvironment variableDefault valueRequiredPossible values
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
    }
  }
}