this plugin uses the following configuration to control its operation via aftconfig.json and if the logLevel is unset it will be set from the value in AftConfig.logLevel before falling back to a value of warn

{
"TestRailConfig": {
"logLevel": "warn",
"maxLogCharacters": 300,
"planId": 1234,
"projectId": 12,
"suiteIds": [34, 567]
}
}

NOTE:

if no value is set for planId and a logLevel value other than none is used then a new TestRail Plan will be created from the specified projectId and suiteIds configuration keys

Hierarchy

  • ReportingPlugin
    • TestRailReportingPlugin

Constructors

Properties

_api: TestRailApi
_level: "trace" | "debug" | "info" | "step" | "warn" | "pass" | "fail" | "error" | "none"
_logs: Map<string, string>
_maxLogChars: number
initialise: ((logName) => Promise<void>)

Type declaration

    • (logName): Promise<void>
    • called by the parent ReportingManager on load to allow any plugins to configure themselves for a new logger

      Parameters

      • logName: string

        the name of the ReportingManager instance calling dispose

      Returns Promise<void>

Accessors

  • get aftCfg(): AftConfig
  • Returns AftConfig

  • get aftLogger(): AftLogger
  • Returns AftLogger

  • get enabled(): boolean
  • Returns boolean

Methods

Generated using TypeDoc