Challenge - 5 Problems
Reporter Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
What is the output format of the default Postman CLI reporter?
When running Postman tests via CLI, what is the default format of the test report output?
Postman
newman run collection.json
Attempts:
2 left
💡 Hint
Think about what you see immediately after running tests in terminal
✗ Incorrect
By default, Newman (Postman's CLI tool) outputs a simple text summary directly in the terminal, showing passed and failed tests.
🧠 Conceptual
intermediate2:00remaining
Which reporter option generates a detailed interactive report in Postman?
You want to generate a detailed, interactive report with charts and test details after running Postman tests. Which reporter option should you use?
Attempts:
2 left
💡 Hint
Think about which format is best for viewing in a browser
✗ Incorrect
The HTML reporter generates a detailed interactive report viewable in a browser with charts and test details.
❓ assertion
advanced2:00remaining
Which assertion correctly checks if a JUnit report file was generated after running Newman with JUnit reporter?
You run Newman with the JUnit reporter option. Which assertion correctly verifies the JUnit XML report file exists?
Postman
const fs = require('fs'); const reportPath = './newman/results.xml'; // Assertion here
Attempts:
2 left
💡 Hint
Check Node.js fs module methods for checking file existence
✗ Incorrect
fs.existsSync(path) returns true if the file exists synchronously. Other options are invalid or asynchronous.
🔧 Debug
advanced2:00remaining
Why does the HTML reporter not generate a report file when running Newman with this command?
You run: newman run collection.json --reporters cli,html
But no HTML report file is created. What is the likely cause?
Attempts:
2 left
💡 Hint
Check how to specify output file for HTML reporter
✗ Incorrect
The HTML reporter requires an explicit output file path using --reporter-html-export option to save the report.
❓ framework
expert3:00remaining
How to configure multiple reporters in Newman programmatically to generate CLI, HTML, and JUnit reports?
You want to run Newman tests from a Node.js script and generate CLI output, an HTML report saved as 'report.html', and a JUnit report saved as 'results.xml'. Which code snippet correctly configures this?
Postman
const newman = require('newman'); newman.run({ collection: require('./collection.json'), reporters: [...], reporter: { html: { export: '...' }, junit: { export: '...' } } }, function (err) { if (err) { throw err; } console.log('Run complete!'); });
Attempts:
2 left
💡 Hint
Check Newman reporter options object structure in documentation
✗ Incorrect
The reporter options use 'export' key to specify output file paths for HTML and JUnit reporters.