Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
newman-reporter-reportportal
Advanced tools
Newman runtime reporter for EPAM report portal which provides information about collection run.
The installation should be global if newman is installed globally, otherwise - local (replace -g from the command below with -S for a local installation).
$ npm install -g newman-reporter-reportportal
There are two ways to enable this reporter - with command line or programmatically.
To enable this reporter you have to specify reportportal
in Newman's -r
or --reporters
option.
$ newman run https://postman-echo.com/status/200 -r reportportal \
--reporter-reportportal-debug=true \
--reporter-reportportal-endpoint=http://your-instance.com:8080/api/v1 \
--reporter-reportportal-token=00000000-0000-0000-0000-000000000000 \
--reporter-reportportal-launch=LAUNCH_NAME \
--reporter-reportportal-project=PROJECT_NAME
-x
Pay attention that you must add -x or --suppress-exit-code parameter while running newman using CLI.
const newman = require("newman");
newman.run(
{
collection: "./collections/newman-test_collection.json",
reporters: "reportportal",
reporter: {
reportportal: {
debug: true,
endpoint: "http://your-instance.com:8080/api/v1",
token: "00000000-0000-0000-0000-000000000000",
launch: "LAUNCH_NAME",
project: "PROJECT_NAME"
}
}
},
function(err) {
if (err) {
throw err;
}
console.log("collection run complete!");
}
);
Both CLI and programmatic runs support following options:
Parameter | Description |
---|---|
token | User's Report Portal toke from which you want to send requests. It can be found on the profile page of this user. |
endpoint | URL of your server. For example 'https://server:8080/api/v1'. |
launch | Name of launch at creation. |
project | The name of the project in which the launches will be created. |
debug | Determines whether newman's run should be logged in details. |
This reporter can also be used inside of a docker container.
The docker image for this reporter is available for download from our docker hub. So, first of all you have to ensure that you have docker installed and running in your system. Otherwise, see installation guideline for you operating systems.
Pull the newman docker image with installed reporter from docker hub:
$ docker pull reportportal/newman
Run newman commands on the image:
$ docker run -t reportportal/newman run https://www.getpostman.com/collections/8a0c9bc08f062d12dcda -r reportportal \
--reporter-reportportal-debug=true \
--reporter-reportportal-endpoint=http://your-instance.com:8080/api/v1 \
--reporter-reportportal-token=00000000-0000-0000-0000-000000000000 \
--reporter-reportportal-launch=LAUNCH_NAME \
--reporter-reportportal-project=PROJECT_NAME
-x
If you want to use this reporter for a specific collection JSON file, you have to mount a directory with this file:
$ docker run -v ~/collections:/etc/newman -t reportportal/newman run "example_postman-collection.json" -r reportportal \
--reporter-reportportal-debug=true \
--reporter-reportportal-endpoint=http://your-instance.com:8080/api/v1 \
--reporter-reportportal-token=00000000-0000-0000-0000-000000000000 \
--reporter-reportportal-launch=LAUNCH_NAME \
--reporter-reportportal-project=PROJECT_NAME
-x
Step 1:
Clone this repository:
$ git clone https://github.com/reportportal/agent-postman
Step 2:
Build the image:
$ docker build -t reportportal/newman --build-arg VERSION="full semver version".
Step 3:
Run a collection using the newman image:
$ docker run -t reportportal/newman run https://www.getpostman.com/collections/8a0c9bc08f062d12dcda -r reportportal \
--reporter-reportportal-debug=true \
--reporter-reportportal-endpoint=http://your-instance.com:8080/api/v1 \
--reporter-reportportal-token=00000000-0000-0000-0000-000000000000 \
--reporter-reportportal-launch=LAUNCH_NAME \
--reporter-reportportal-project=PROJECT_NAME
-x
Licensed under the Apache License v2.0
Implemented and supported by Ahold Delheize
FAQs
Reportportal reporter for newman
The npm package newman-reporter-reportportal receives a total of 14 weekly downloads. As such, newman-reporter-reportportal popularity was classified as not popular.
We found that newman-reporter-reportportal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.