Giter Club home page Giter Club logo

newman-reporter-junitfull's People

Contributors

martijnvandervlag avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

newman-reporter-junitfull's Issues

TypeError: hostName.join is not a function error running

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

Junitfull report dont respect the iteration

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.

failure count is not increasing in junitfull report

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??

Error: Missing attribute value. attribute: {value}, parent: <property>

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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.