-
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
Summary of the results and exported output files are not generated #564
Comments
@BalanagarajanArumugam: Could you provide the command used please? |
In bamboo, we configured the executable command as below: -c "node/node lib/node_modules/newman/bin/newman run src/test/resources/collection.json --environment src/test/resources/env.json --reporters html,json,junit --reporter-json-export src/test/resources/output.json --reporter-junit-export src/test/resources/output.xml --reporter-html-export src/test/resources/output.html --timeout-request 30000" |
@BalanagarajanArumugam We're looking into this, thanks for letting us know. |
@BalanagarajanArumugam Is it possible that you are running out of memory? Since a very large object will cause this type of error. |
If it is a memory issue then the following could be solutiuon:
|
@BalanagarajanArumugam Apologies for the delay. Newman |
@kunagpal : Will check and update you. |
@BalanagarajanArumugam Cool 👍 |
@kunagpal : It's working fine.. |
Still running into the same problem on version 3.9.3. |
@kunagpal, Below is the error that user is experiencing on the version 3.9.3 for your reference
|
@mrtibs2000 @Ramyasri1212 This is happening because the resultant stringified summary is larger than the largest possible string in JavaScript, which is just under 2^28 for Node v6, and just under 2^30 for Node v8 and Node v9. Could you try updating to the latest v8.x release of Node (which is 8.11.3 at the time of writing) and check if the issue still persists? Another alternative is to try the following reporter: https://www.npmjs.com/package/newman-reporter-json-light, which trims down JSON reports to their essentials. |
I'm now getting a "FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory". Any recommendation there? |
@mrtibs2000 Could you share the command/script used to run the collection? |
Full dump:
|
@mrtibs2000 See the workaround described in #1516 (comment) |
Still the same error:
|
@mrtibs2000 Looks like your specific run is consuming large amounts of memory. Could you increase the value to 4096 and re-try? |
4096 did work. Any idea where things are heavy? Would it be my specific version of newman/postman/node? Or would it be the size of my Postman collection? Would it be my application server/docker/infrastructure? |
Just in case anyone is still facing issues like
I have created a reported for my personal use case where I needed to save json results for long time and I had around 1000 APIs and json result file used to be of +400MB in size by shedding/dropping extra information I'm able to reduce size under 10MB. https://www.npmjs.com/package/newman-reporter-json-extralight |
Hi Team,
After execution of the test suite, the summary of the test results are not generated.We got the following error message.Is it an issue from our side(the command which we used for execution)?
Result:
C:\Users\x087528\AppData\Roaming\npm\node_modules\newman\lib\reporters\json\index.js:13
content: JSON.stringify(_.omit(o.summary, 'exports'), 0, 2)
^
RangeError: Invalid string length
at join (native)
at Object.stringify (native)
at EventEmitter. (C:\Users\x087528\AppData\Roaming\npm\node_modules\newman\lib\reporters\json\index.js:13:27)
at EventEmitter.emit (C:\Users\x087528\AppData\Roaming\npm\node_modules\newman\node_modules\eventemitter3\index.js:138:33)
at .extend.done (C:\Users\x087528\AppData\Roaming\npm\node_modules\newman\lib\run\index.js:152:29)
at C:\Users\x087528\AppData\Roaming\npm\node_modules\newman\node_modules\postman-runtime\lib\backpack\index.js:56:34
at PostmanCollectionRun..extend._process (C:\Users\x087528\AppData\Roaming\npm\node_modules\newman\node_modules\postman-runtime\lib\runner\run.js:107:20)
at PostmanCollectionRun. (C:\Users\x087528\AppData\Roaming\npm\node_modules\newman\node_modules\postman-runtime\lib\runner\run.js:118:18)
at tryOnTimeout (timers.js:228:11)
at Timer.listOnTimeout (timers.js:202:5)
The text was updated successfully, but these errors were encountered: