install the package with: `npm install centinela-bug-reporter`
-
First you will be required to configure 3 parameters.
Add to your application config file in:
config\default.json
The config file must contain the following parameters"centinela-bug-reporter": { "server_url": "<<REST_url_to_post_bugs>>" , "keyConnection": "<<evironment_defined_token_string>>" , "server_timeout": 1000 } }
-
Include this package into your application
const CentinelaBugReporter = require('centinela-bug-reporter')
let result = await CentinelaBugReporter.reportBug(<<bug_title>>, <<bug_description>>, <<bug_severity>>)
Required parameters: <<bug_title>>, <<bug_severity>>
Available severities:
* SEVERITY.HIGH
* SEVERITY.MEDIUM_HIGH
* MEDIUM_LOW
* LOW
* If Successfull
Returns an integer meaning the JobId for the bug to be processed
* If UnSuccessfull
Throws Exeption with Error
* Missing Required bug title
* Missing Required severity number
* Severity number out of range ( 1 - 4 )