Hello guys,
I have a test that is working perfectly, so I need to replicate the test in different URLs. I can’t set a variable because I am able to set only one option and that’s not the purpose, I need to execute the same test in almost 15 different URLs.
so is any option to set different URLs in the same request?
w4dd325
(w4dd325)
March 27, 2023, 9:30pm
2
Hi @JuanesMesa
The first option that springs to mind is to create a CSV with your URL’s and import it via the collection runner (or Newman/Cli using the -d <source>
or --iteration-data <source>
options).
You can then grab the value using
pm.iterationData.get("value")
### Newman v5 has been released. Check the [migration guide](MIGRATION.md#migrating-from-v4-to-v5) and [changelog](https://github.com/postmanlabs/newman/blob/v5.0.0/CHANGELOG.yaml#L1) for more details.
<a href="https://www.postman.com/"><img src="https://assets.getpostman.com/common-share/postman-logo-horizontal-320x132.png" /></a><br />
_Manage all of your organization's APIs in Postman, with the industry's most complete API development environment._
# newman <sub>_the cli companion for postman_</sub> [![Build Status](https://travis-ci.org/postmanlabs/newman.svg?branch=develop)](https://travis-ci.com/postmanlabs/newman) [![codecov](https://codecov.io/gh/postmanlabs/newman/branch/develop/graph/badge.svg)](https://codecov.io/gh/postmanlabs/newman)
Newman is a command-line collection runner for Postman. It allows you to effortlessly run and test a Postman collection directly from the command-line. It is built with extensibility in mind so that you can easily integrate it with your continuous integration servers and build systems.
## Table of contents
1. [Getting Started](#getting-started)
2. [Usage](#usage)
1. [Using Newman CLI](#using-newman-cli)
2. [Using Newman as a Library](#using-newman-as-a-library)
3. [Using Reporters with Newman](#using-reporters-with-newman)
3. [Command Line Options](#command-line-options)
1. [newman-options](#newman-options)
2. [newman-run](#newman-run-collection-file-source-options)
This file has been truncated. show original
Hi @w4dd325 Thank you very much, Thank you very much, I did it with you advice
1 Like