Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
newman-reporter-aiotests
Advanced tools
AIO Tests for Jira is a Jira-native test management app covering the entire QA lifecycle with Test Cases, Cycles, Reports, Automation, Dashboards, providing a one stop shop for all your testing needs.
With it's Newman reporter, AIO Tests simplifies reporting of results from the automated Postman tests to AIO Tests for Jira.
By using Newman's event emitters, the AIO Tests Newman Reporter reports results in the beforeDone
event, at the end of a collection run.
The reporter can create a new cycle for the executions or reuse existing cycles, based on the configuration done either via command line options or through the reporter config when using newman programmatically.
npm install newman-reporter-aiotests
The first time the results are reported, if AIO Tests case keys have not been mapped, then new cases are created.
Field mapping (Postman → AIO Tests)
Refer Field Mapping to see how the fields of Postman request are translated into a new case in AIO Tests
The AIO Tests Case key can be added to the name of the API.
If there are multiple case keys in a single description, then the result of one test will be updated to multiple cases.
✒ Please note that the case key can appear anywhere in the name
The image below shows case keys in names of requests. For APIs, where no key is specified, a new case will be created. The newly created case will be identified using automation key.
AIO Tests can be configured for both Newman's programmatic as well as CLI runs. For both options, the authorization needs to be set. For Cloud, the AIO Tests API Token needs to be generated and for Jira Server/DC, a PAT token is required. More details on Authorization for both types can be found here.
Newman can be easily used within your JavaScript projects as a Node.js module. The entire set of Newman CLI functionality is available for programmatic use as well. If running Newman programmatically, the AIO Tests config can be set as below:
var newman = require('newman');
newman.run({
collection: '/path/to/collection.json',
reporters: 'aiotests',
reporter: {
aiotests: {
//enableReporting controls, if for this run, results have to be reported or not
'enableReporting': true,
// Jira Project Key
'jiraProjectId': 'PROJ1',
// Uncooment below : Jira Server URL and Jira PAT is required if on Jira Server/DC
// 'jiraServer': 'https://jira8.aioreports.com',
// 'jiraPat': '<PATToken>',
//AIO Tests API Key
'aioApiToken': '<AIO API Key>',
//createNewCycle - defaults to true, Set to true if new cycle needs to be created
'createNewCycle': false,
//newCycleTitle - defaults to collection name, if createNewCycle true, newCyclePrefix would be used to create new cycle, else cycleKey would be used to update existing cycle
'newCycleTitle': '',
//cycleKey - if createNewCycle is false, then set cycleKey to report to existing cycle
'cycleKey': 'NVTES-CY-403',
//createNewRun - defaults to false, set to true to create new run for each execution
'createNewRun': true,
//createCase - defaults to true, Set to false, if new cases should not be created for requests with no cake key mapped
'createCase': true,
//bddForceUpdateCase - defaults to true, updates step changes in AIO Case with changes in request data
'bddForceUpdateCase': true
}
}
});
Depending on the Jira hosting, the authentication information needs to be provided as below.
If Newman is being run from the command line, then use the reporter with the -r option.
Specify -r aiotests
to use the AIO Tests Reporter. The rest of the configuration option can go as
--reporter-aiotests-optionName optionValue
as below:
Please refer to the Programmatic section below to understand the usage of each option.
newman run /path/to/collection.json -r aiotests
--reporter-aiotests-enableReporting true
--reporter-aiotests-jiraProjectId 'PROJ1'
--reporter-aiotests-aioApiToken 'youapitoken'
--reporter-aiotests-jiraServer 'youapitoken'
--reporter-aiotests-jiraPat '<jiraPatToken>'
--reporter-aiotests-createNewCycle 'true'
--reporter-aiotests-newCycleTitle 'Daily API Smoke'
--reporter-aiotests-cycleKey 'PROJ1-CY-221'
--reporter-aiotests-createNewRun 'true'
--reporter-aiotests-createCase 'true'
--reporter-aiotests-bddForceUpdateCase 'true'
AIO Tests Newman Reporter logs can be seen in the run logs as below for successful updates
Errors received while updating will appear in a similar way
For any queries, suggestions or issues, please feel free to reach out @ help@aioreports.com
FAQs
Newman Custom reporter to report results to AIO Tests - Jira
The npm package newman-reporter-aiotests receives a total of 205 weekly downloads. As such, newman-reporter-aiotests popularity was classified as not popular.
We found that newman-reporter-aiotests demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.