Closed tariqghalib closed 8 years ago
@tariqghalib A fix for this bug has been added in #582, and will be rolled out within the next Newman release.
@tariqghalib This bug should have been fixed in Newman v3.1.1
, please check it out and get back to us if your issue persists. Thanks!
Problem Statement: I am seeing an error when I try to create an HTML report while running the collection through newman. The whole execution completes and at the end when its trying to generate an HTML report its throwing exception. Following are the details:
Newman Version : 3.1.0
Command: newman -c .\collection.json -y 500 --environment .\enviornment.json -H myReport.html
Error Message: C:\Users\AppData\Roaming\npm\node_modules\newman\node_modules\pretty-ms\i
ndex.js:8
throw new TypeError('Expected a finite number');
^
TypeError: Expected a finite number at module.exports (C:\Users\AppData\Roaming\npm\node_modules\newman\n
ode_modules\pretty-ms\index.js:8:9)
at C:\Users\AppData\Roaming\npm\node_modules\newman\lib\reporters\htm
l\index.js:75:27
at arrayEach (C:\Users\AppData\Roaming\npm\node_modules\newman\node_m
odules\lodash\lodash.js:522:11)
at Function.forEach (C:\Users\AppData\Roaming\npm\node_modules\newman
\node_modules\lodash\lodash.js:9011:14)
at EventEmitter. (C:\Users\AppData\Roaming\npm\node_module
s\newman\lib\reporters\html\index.js:67:11)
at EventEmitter.emit (C:\Users\AppData\Roaming\npm\node_modules\newma
n\nodemodules\eventemitter3\index.js:138:33)
at .assignIn.done (C:\Users\AppData\Roaming\npm\node_modules\newman\
lib\run\index.js:156:29)
at C:\Users\AppData\Roaming\npm\node_modules\newman\nodemodules\post
man-runtime\lib\backpack\index.js:56:34
at PostmanCollectionRun..extend._process (C:\Users\AppData\Roaming\n
pm\node_modules\newman\node_modules\postman-runtime\lib\runner\run.js:107:20)
at PostmanCollectionRun. (C:\Users\AppData\Roaming\npm\nod
e_modules\newman\node_modules\postman-runtime\lib\runner\run.js:118:18)