0
0
Postmantesting~20 mins

Reporter options (CLI, HTML, JUnit) in Postman - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Reporter Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Predict Output
intermediate
2: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
AA simple text summary printed in the terminal
BA JSON file with all test results
CA JUnit XML file generated automatically
DA detailed HTML report saved to disk
Attempts:
2 left
💡 Hint
Think about what you see immediately after running tests in terminal
🧠 Conceptual
intermediate
2: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?
AJSON reporter
BJUnit reporter
CCLI reporter
DHTML reporter
Attempts:
2 left
💡 Hint
Think about which format is best for viewing in a browser
assertion
advanced
2: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
Aassert(fs.existsSync(reportPath), 'JUnit report file should exist');
Bassert(fs.readFileSync(reportPath), 'JUnit report file should exist');
Cassert(fs.exists(reportPath), 'JUnit report file should exist');
Dassert(fs.fileExists(reportPath), 'JUnit report file should exist');
Attempts:
2 left
💡 Hint
Check Node.js fs module methods for checking file existence
🔧 Debug
advanced
2: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?
AThe CLI reporter disables HTML report generation
BThe HTML reporter is not supported in Newman
CYou forgot to specify the output file path with --reporter-html-export
DYou need to install a separate package for HTML reports
Attempts:
2 left
💡 Hint
Check how to specify output file for HTML reporter
framework
expert
3: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!');
});
Areporters: ['cli', 'html', 'junit'], reporter: { html: 'report.html', junit: 'results.xml' }
Breporters: ['cli', 'html', 'junit'], reporter: { html: { export: 'report.html' }, junit: { export: 'results.xml' } }
Creporters: ['cli', 'html', 'junit'], reporter: { html: { path: 'report.html' }, junit: { path: 'results.xml' } }
Dreporters: ['cli', 'html', 'junit'], reporter: { html: { file: 'report.html' }, junit: { file: 'results.xml' } }
Attempts:
2 left
💡 Hint
Check Newman reporter options object structure in documentation