Quantcast
Channel: Pochampalli IT Labs
Viewing all articles
Browse latest Browse all 261

Append date and time to newman html extra report

$
0
0
Below command on node.js command line generates html report with date and time.  

newman run TestCollection.postman_collection.json  -e TestEnvironment.postman_environment.json -r htmlextra --reporter-htmlextra-export D:\posman\newman\TestCollectionReport_%date:~-4,4%%date:~-10,2%%date:~-7,2%_%time:~0,2%%time:~3,2%.html

Example:
D:/postman/newman/TestCollectionReport_20221507_1720.html


Tap on the below image for best view




Viewing all articles
Browse latest Browse all 261

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>