Test Reports and Analysis
A test is only as good as its report. If 50 tests failed but you don't know why, you've wasted your time.Apidog generates comprehensive reports for every test run, whether manual, scheduled, or from CI/CD. This chapter explains how to read them and act on them.The Test Report Overview#
After running a scenario, you are presented with a summary dashboard.Key Metrics at a Glance#
When you open a report, focus on these three numbers first:Pass Rate: The percentage of steps that succeeded. Ideally, this is always 100%.
Total Duration: How long the entire test suite took to execute.
Failed Steps: The exact count of specific failures that need your attention.
Drilling Down into Failures#
The most important part of the report is the Failed Steps list.The Failed Steps list is your debugging starting point. Here's how to investigate:1.
Identify the Step: Find which specific action failed (e.g., "Step 5: Create Order failed").
2.
Check the Cause: Was it a logic error (e.g., Expected 200, got 500) or a data error (e.g., Field 'id' is missing)?
3.
Inspect the Traffic: Click "More" to see the actual HTTP envelope. Did you send the wrong body? Did the server return a helpful error message?
This detailed trace is what allows you to debug issues in seconds rather than hours.
As seen in the previous chapter, Performance Reports look different. They focus on Trends rather than individual request details.Look for Spikes: Response time shooting up?
Look for Plateaus: Throughput hitting a wall?
Exporting and Sharing#
Reports aren't just for you; they are for your team and stakeholders.Sharing Methods#
Sharing Methods#
Online Link: Generate a permalink to the report for instant sharing in Slack or Teams.
HTML Export: Download a standalone HTML fileβperfect for archiving compliance records.
PDF/Markdown: Use these formats for integrating test results into your static documentation.
Best Practices#
1.
Treat Failures Seriously: Avoid "flaky tests" (tests that fail randomly). If a test fails, promptly fix the code or update the test to maintain trust in your suite.
2.
Trend Analysis: Don't just look at today's report. Monitor if the API is getting slower week over week to catch performance regressions early.
3.
Automated Notifications: Don't rely on manually checking reports. We'll cover how to push alerts to you in the next chapter.
Key Takeaways#
Interpret detailed test reports
Analyze failure patterns and performance data
Share insights with the team
What's Next#
Checking reports manually is fine for development. But for a professional engineering team, tests should run automatically on every code commit.In the next chapter, we'll integrate Apidog with CI/CD pipelines. Modified atΒ 2025-12-25 09:54:19