martijnvandervlag / newman-reporter-junitfull Goto Github PK
View Code? Open in Web Editor NEWA Newman JUnit Reporter providing full reports (without aggregation of results)
License: Apache License 2.0
A Newman JUnit Reporter providing full reports (without aggregation of results)
License: Apache License 2.0
When running the below command:
newman run ipfile.postman_collection.json -e jo.ipas\ (docker\ dev).postman_environment.json -r junitfull --reporter-junitfull-export newman/junitfull.xml
I get this response:
/usr/local/lib/nodejs/node-v16.15.0-linux-x64/lib/node_modules/newman-reporter-junitfull/lib/index.js:69
testsuite.att('hostname', protocol + hostName.join('.'));
^
TypeError: hostName.join is not a function
at /usr/local/lib/nodejs/node-v16.15.0-linux-x64/lib/node_modules/newman-reporter-junitfull/lib/index.js:69:50
at arrayEach (/usr/local/lib/nodejs/node-v16.15.0-linux-x64/lib/node_modules/newman-reporter-junitfull/node_modules/lodash/lodash.js:530:11)
at Function.forEach (/usr/local/lib/nodejs/node-v16.15.0-linux-x64/lib/node_modules/newman-reporter-junitfull/node_modules/lodash/lodash.js:9410:14)
at EventEmitter. (/usr/local/lib/nodejs/node-v16.15.0-linux-x64/lib/node_modules/newman-reporter-junitfull/lib/index.js:58:5)
at EventEmitter.emit (/usr/local/lib/nodejs/node-v16.15.0-linux-x64/lib/node_modules/newman/node_modules/eventemitter3/index.js:203:33)
at done (/usr/local/lib/nodejs/node-v16.15.0-linux-x64/lib/node_modules/newman/lib/run/index.js:314:29)
at /usr/local/lib/nodejs/node-v16.15.0-linux-x64/lib/node_modules/newman/node_modules/postman-runtime/lib/backpack/index.js:58:34
at PostmanCollectionRun._process (/usr/local/lib/nodejs/node-v16.15.0-linux-x64/lib/node_modules/newman/node_modules/postman-runtime/lib/runner/run.js:160:13)
at PostmanCollectionRun. (/usr/local/lib/nodejs/node-v16.15.0-linux-x64/lib/node_modules/newman/node_modules/postman-runtime/lib/runner/run.js:166:76)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
I run on Amazon Linux with:
newman 5.3.2
Node v16.15.0
reporter-junitfull 1.1.1
this is my code but when the report is generated my report only contain the values of the last iteration
newman.run({
collection: regretionToTest,
iterationData: ./Data/${iteratorData}
,
environment,
delayRequest: 300,
reporters: 'junitfullreport',
reporter: {
junitfullreport: {
export: './reports/xml/report.xml', // If not specified, the file will be written to newman/
in the current working directory.
}
},
iterationCount: 2,
My data is
[
{
“value1”:“xxx”,
“value2”:“xxx”,
“value3”:“xxx”
},
{
“value1”:“xxx”,
“value2”:“xxx”,
“value3”:“xxx”
}
]
The report display 2 iterations but all the values on the report are of the second iteration.
Hi, i am getting junitfull report. but failure count is not increased as we have failure tag inside testcase.
Issue:
<testsuite id="2" hostname="https://hpe-cep--dcedevpiu..com" package="" name="dce-contacts/search/" tests="1" failures="0" errors="0" timestamp="2023-05-31T13:31:10.539" time="1.740">
<properties>
<property name="instance_url" value="https://hpe-cep--dcedevpiu.com"/>
<property name="nimbleToken" value=""/>
<property name="access_token" value=""/>
</properties>
<testcase classname=" / dce-contacts/search/" name="All Onboarded Email id Check (record,status,error code,record count):" time="1.740">
<failure type="AssertionError" message="expected 200 to deeply equal 201">
<![CDATA[ AssertionError: expected 200 to deeply equal 201 at Object.eval sandbox-script.js:1:3) ]]>
</failure>
</testcase>
</testsuite>
here <failure>
tag is present inside <testcase>
tag, but under <testsuite>
tag "failures" count is showing as 0.
Expected: failures count should increase and show number of failed test cases.
Any suggestion on this issue??
Hello,
I'm receiving the following error when running collection using Newman with junitfull reporter:
/usr/local/lib/node_modules/newman-reporter-junitfull/node_modules/xmlbuilder/lib/XMLAttribute.js:14
throw new Error("Missing attribute value. " + this.debugInfo(name));
^
Error: Missing attribute value. attribute: {value}, parent: <property>
at new XMLAttribute (/usr/local/lib/node_modules/newman-reporter-junitfull/node_modules/xmlbuilder/lib/XMLAttribute.js:14:15)
at XMLElement.module.exports.XMLElement.attribute (/usr/local/lib/node_modules/newman-reporter-junitfull/node_modules/xmlbuilder/lib/XMLElement.js:72:35)
at XMLElement.module.exports.XMLElement.att (/usr/local/lib/node_modules/newman-reporter-junitfull/node_modules/xmlbuilder/lib/XMLElement.js:100:19)
at /usr/local/lib/node_modules/newman-reporter-junitfull/lib/index.js:107:15
at arrayEach (/usr/local/lib/node_modules/newman-reporter-junitfull/node_modules/lodash/lodash.js:516:11)
at Function.forEach (/usr/local/lib/node_modules/newman-reporter-junitfull/node_modules/lodash/lodash.js:9342:14)
at /usr/local/lib/node_modules/newman-reporter-junitfull/lib/index.js:104:7
at arrayEach (/usr/local/lib/node_modules/newman-reporter-junitfull/node_modules/lodash/lodash.js:516:11)
at Function.forEach (/usr/local/lib/node_modules/newman-reporter-junitfull/node_modules/lodash/lodash.js:9342:14)
at EventEmitter.<anonymous> (/usr/local/lib/node_modules/newman-reporter-junitfull/lib/index.js:58:5)
at EventEmitter.emit (/usr/local/lib/node_modules/newman/node_modules/eventemitter3/index.js:203:33)
at done (/usr/local/lib/node_modules/newman/lib/run/index.js:280:29)
at /usr/local/lib/node_modules/newman/node_modules/postman-runtime/lib/backpack/index.js:58:34
at PostmanCollectionRun._process (/usr/local/lib/node_modules/newman/node_modules/postman-runtime/lib/runner/run.js:163:13)
at PostmanCollectionRun.<anonymous> (/usr/local/lib/node_modules/newman/node_modules/postman-runtime/lib/runner/run.js:169:76)
at ontimeout (timers.js:498:11)
I have 10 collection in my workspace and only one of them returns this error.
I even tried to execute a single request from the collection but still run is failing with the same error( all other collections are executed without any issues).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.