-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While executing collection in node , not able to send my data file #1926
Comments
Hey, It looks like you're mixing up the commands for the CLI use and the library use of Newman. You will need to use More information about the different commands available for the script can be found here: |
I have tried using IterationData in node script along with iterationCount in number value ,but still its not reading my csv file. |
Would you be able to elaborate more on not reading your file. Those 2 changes would have solved the error that you were seeing. Is this now a question around the way the data from the file is used in your collection? Can you provide an example of the file and the way you have the data references in the requests. |
Hi Danny
Yes.This is about using the data from file in collection.The data file is
in csv format with key value pairs .
I have referenced them in collection by {{key}} value.
Thanks,
Subhashin
…On Sun, 3 Mar 2019, 1:05 am Danny Dainton ***@***.*** wrote:
Would you be able to elaborate more on *not reading* your file.
Those 2 changes would have solved the error that you were seeing.
Is this now a question around the way the data from the file is used in
your collection? Can you provide an example of the file and the way you
have the data references in the requests.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1926 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Aq4-DEo6WRurgK1XOHrOQgtc0jffIOzCks5vStJkgaJpZM4baiww>
.
|
Able to read and reference the data file after node reinstallation ! |
While executing collection in node , not able to send my data file
Version and environment information:
Refered below
1.https://github.com/postmanlabs/newman#command-line-options
2.https://learning.getpostman.com/docs/postman/collection_runs/command_line_integration_with_newman/
Please help addressing what should be the option for data file .
JS File 👍
const newman = require('newman')
const nodemailer = require('nodemailer')
const MailComposer = require("nodemailer/lib/mail-composer");
const from_who = 'subhashiniarumugham@gmail';
var pdfcrowd = require("pdfcrowd");
newman.run({
collection: 'Downloads/Smoke_Suite.postman_collection.json',
environment: 'Downloads/Aircanada_Int.postman_environment.json',
iteration-data: 'Downloads/Data.csv', (Also tried using data:'Downloads/Data.csv )
iteration-count: '1',
d: 'Downloads/Data.csv',
reporters: 'htmlextra',
reporter: {
htmlextra: {
template: 'Downloads/EIP_INT.hbs',
export:'Desktop/SmokeReport.html',
The text was updated successfully, but these errors were encountered: