Test Overview
This test verifies that a Postman request description supports Markdown formatting correctly. It checks if the description renders bold and italic text as expected.
This test verifies that a Postman request description supports Markdown formatting correctly. It checks if the description renders bold and italic text as expected.
pm.test("Description renders Markdown correctly", () => { const description = pm.request.description.toString(); pm.expect(description).to.include("**bold text**"); pm.expect(description).to.include("*italic text*"); });
| Step | Action | System State | Assertion | Result |
|---|---|---|---|---|
| 1 | Test starts | Postman request with description containing Markdown syntax '**bold text**' and '*italic text*' | — | PASS |
| 2 | Access request description as string | Description string retrieved from request | — | PASS |
| 3 | Check if description includes '**bold text**' | Description string contains Markdown bold syntax | pm.expect(description).to.include('**bold text**') | PASS |
| 4 | Check if description includes '*italic text*' | Description string contains Markdown italic syntax | pm.expect(description).to.include('*italic text*') | PASS |
| 5 | Test ends | All assertions passed | — | PASS |
### Test Steps 1. Send request 2. Check response - Status code should be 200 - Body should contain 'success'
**Test Result: Passed**
API Docs and points to https://docs.example.com. Which Markdown syntax is correct?Pass the test and this pattern moves unknown