0
0
Postmantesting~20 mins

Load testing basics (Postman) - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Load Testing Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Load Testing Purpose

What is the main goal of load testing in Postman?

ATo check how the system behaves under expected user load
BTo find security vulnerabilities in the API
CTo verify the correctness of API responses
DTo test the user interface responsiveness
Attempts:
2 left
💡 Hint

Think about what happens when many users use the system at the same time.

Predict Output
intermediate
2:00remaining
Interpreting Load Test Results in Postman

After running a load test with 50 virtual users for 1 minute in Postman, the average response time is 1200 ms, and error rate is 0%. What does this indicate?

AThe API is not responding because response time is too high
BThe API is failing because response time is over 1000 ms
CThe test failed because error rate should not be zero
DThe API handles the load well with no errors and acceptable response time
Attempts:
2 left
💡 Hint

Consider what a 0% error rate means and if 1200 ms is acceptable.

assertion
advanced
2:00remaining
Correct Assertion for Response Time in Postman Load Test

Which Postman test script assertion correctly checks that the response time is less than 2000 milliseconds during a load test?

Postman
pm.test('Response time is less than 2000ms', function () {
    // Fill in assertion here
});
Apm.expect(pm.response.responseTime).to.be.below(2000);
Bpm.expect(pm.response.time).to.be.above(2000);
Cpm.expect(pm.response.responseTime).to.equal(2000);
Dpm.expect(pm.response.time).to.be.belowOrEqual(2000);
Attempts:
2 left
💡 Hint

Look for the correct property name and assertion method to check less than a value.

🔧 Debug
advanced
2:00remaining
Identifying Load Test Script Error in Postman

Given this Postman test script snippet for load testing, what error will occur?

Postman
pm.test('Status code is 200', () => {
    pm.expect(pm.response.status).to.eql(200);
});
ATypeError because pm.response.status is undefined
BNo error, test passes if status is 200
CAssertionError because status code is not 200
DSyntaxError due to arrow function usage
Attempts:
2 left
💡 Hint

Check the correct property name for status code in Postman response object.

framework
expert
3:00remaining
Configuring Load Test in Postman Runner

Which sequence correctly describes the steps to configure a load test with 100 virtual users running for 2 minutes in Postman Collection Runner?

A1,2,4,3
B1,2,3,4
C1,3,2,4
D2,1,3,4
Attempts:
2 left
💡 Hint

Remember that delay is the wait time between requests, and iterations control how many times the collection runs.