0
0
Postmantesting~10 mins

SSL certificate validation in Postman - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to disable SSL certificate verification in Postman settings.

Postman
pm.settings.set('[1]', false);
Drag options to blanks, or click blank then click option'
AsslVerification
BcertificateCheck
CverifySSL
DsslCertValidation
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect setting names like 'certificateCheck' or 'verifySSL'.
Forgetting to set the value to false.
2fill in blank
medium

Complete the test script to check if SSL certificate verification is enabled.

Postman
pm.test('SSL verification is enabled', () => { pm.expect(pm.settings.get('[1]')).to.be.true; });
Drag options to blanks, or click blank then click option'
AcertificateValidation
BsslCheck
CsslVerification
DverifyCertificate
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong setting keys like 'sslCheck' or 'verifyCertificate'.
Checking for false instead of true.
3fill in blank
hard

Fix the error in the test script to correctly assert SSL verification is disabled.

Postman
pm.test('SSL verification disabled', () => { pm.expect(pm.settings.get('[1]')).to.be.false; });
Drag options to blanks, or click blank then click option'
AcertificateCheck
BsslVerify
CsslCertValidation
DsslVerification
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect keys that cause the test to fail or throw errors.
Mixing up true and false in the assertion.
4fill in blank
hard

Fill both blanks to create a test that disables SSL verification and confirms it is disabled.

Postman
pm.settings.set('[1]', false);
pm.test('SSL verification is disabled', () => { pm.expect(pm.settings.get('[2]')).to.be.false; });
Drag options to blanks, or click blank then click option'
AsslVerification
BcertificateCheck
DverifySSL
Attempts:
3 left
💡 Hint
Common Mistakes
Using different keys for setting and getting the SSL verification status.
Using keys that do not exist in Postman settings.
5fill in blank
hard

Fill all three blanks to write a test that disables SSL verification, sends a request, and checks the response status is 200.

Postman
pm.settings.set('[1]', false);
pm.sendRequest('https://example.com', (err, res) => {
  pm.test('Response status is [2]', () => {
    pm.expect(res.code).to.eql([3]);
  });
});
Drag options to blanks, or click blank then click option'
AsslVerification
B200
DsslCheck
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong setting keys or status codes.
Not matching the status code type (string vs number).