Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Test Web App Empty & Error States (Screenshots)

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide walks you through systematically testing the empty and error states of a web application and capturing screenshots as evidence. You'll learn what to look for, how to document issues, and how to ensure your UI handles these edge cases gracefully. Before you start, you'll need access to the application, a way to trigger these states (e.g., a test account with no data), and a screenshot tool.

What You'll Need

  • A test environment or staging version of the web app.
  • Test accounts or data configurations that can produce empty states (e.g., a new user with no orders).
  • Ability to simulate errors (e.g., network throttling, mock API responses, or a backend that can be forced to fail).
  • A screenshot tool (built-in OS tools, browser extensions, or a dedicated capture app).
  • A note-taking app or spreadsheet to record results.

Step-by-Step

  1. List all user-facing states. Identify every screen that can be empty (e.g., a list, a dashboard, a search result) or can show an error (e.g., a form submission failure, a network timeout, a 404 page). Create a checklist.
  2. Prepare your test environment. Use a clean test account with no data. If needed, clear the database or use a fixture that guarantees an empty state. For errors, prepare a way to force them—such as disabling your network, using browser dev tools to block requests, or adding a query parameter that triggers a mock error.
  3. Test the empty state on a list page. Navigate to a page that should show a list (e.g., “My Orders”). If it's empty, observe: Does it show a friendly message? Does it offer a call-to-action (like “Create your first order”)? Does the layout look intentional or broken?
  4. Capture the screenshot. Use your screenshot tool to capture the full viewport. Ensure the browser window is a consistent size (e.g., 1280x800) for all captures. Save the file with a descriptive name like empty-orders.png.
  5. Test the empty state on a search page. Perform a search with a query that returns no results. Observe the message, any suggested actions, and whether the page still shows the search bar. Capture a screenshot.
  6. Test the empty state on a dashboard or widget. If the app has a dashboard with charts or metrics, access it with no data. Check that charts don't crash, and that placeholder text or “No data available” is shown. Capture a screenshot.
  7. Force a network error. Open the browser's developer tools (F12), go to the Network tab, and set throttling to “Offline” or block a specific API endpoint. Refresh the page or trigger an action that requires that API. Observe the error message: Is it user-friendly? Does it offer a “Retry” button? Capture a screenshot.
  8. Test a form submission error. Submit a form with invalid data (e.g., an invalid email, or a required field left blank). Observe the validation messages. Then, if possible, force a server-side error (e.g., by submitting a duplicate entry that the server rejects). Capture screenshots of each.
  9. Test the 404 page. Navigate to a non-existent URL. Observe the 404 page: Does it have a link back to a valid page? Does it match the app's design? Capture a screenshot.
  10. Test the 500 error page. If you can trigger a server error (e.g., by causing an exception in the backend), do so. Capture the error page. If you can't, note that it's untested.
  11. Document your findings. For each state, record: the URL, the steps to reproduce, whether the state was handled correctly, and any issues (e.g., broken layout, missing message, unclear text). Attach the screenshot.
  12. Review and report. Compile your screenshots and notes into a bug report or test summary. Include the severity of each issue (e.g., high if the user is stuck, low if it's just cosmetic).

Common Mistakes

  • Not testing on a real device or browser—emulators may not replicate the exact behavior.
  • Forgetting to test with a user who has no data, or using an account that still has old data.
  • Not capturing the full page—only the visible viewport, which may miss a broken footer or empty content area below the fold.
  • Ignoring the console for JavaScript errors—an empty state might look fine but have underlying errors.
  • Not testing both the first load and subsequent interactions (e.g., after filtering).
  • Assuming that a generic error message is acceptable—users need to know what went wrong and how to proceed.

Tips

  • Use a consistent viewport size and zoom level for all screenshots to make comparisons easy.
  • Take a screenshot of the browser console as well if there are errors—it helps developers debug.
  • Use a tool like Selenium or Playwright to automate the process if you need to repeat it frequently.
  • Check that the empty state doesn't show raw error messages, stack traces, or database queries—these are security risks.
  • Verify that the “Retry” button actually works—it should reload the data without a full page refresh.
  • Make sure the empty state is accessible: check that the message is read by screen readers (use aria-live or proper heading structure).

Troubleshooting

  • You can't trigger an empty state. If the account has data, create a new test user or delete the existing data via an admin panel. If that's not possible, use a query parameter or URL hash that forces an empty response (if the app supports it).
  • You can't force an error. Use the browser's Network tab to block a specific request. Right-click on the request in the Network log and select “Block request URL”. Refresh the page to see the error state.
  • Screenshots are blurry or too small. Ensure your browser zoom is at 100% and the device pixel ratio is set to 1x in the screenshot settings. For full-page screenshots, use a browser extension like “Full Page Screen Capture” or the built-in capture in Chrome DevTools (Ctrl+Shift+P, then “Capture full size screenshot”).
  • The app crashes instead of showing an empty state. This is a bug. Note it in your report and include the console errors. If possible, check if it happens in all browsers.
  • You're not sure what the expected behavior should be. Check the design specifications or ask the product owner. If none exist, use common sense: the user should never see a blank white page or a technical error.

Frequently Asked Questions

What is an empty state in web design?

An empty state is the UI shown when there is no data to display, such as a list with zero items. It should guide the user on what to do next (e.g., “Create your first project”).

What is an error state?

An error state is shown when something goes wrong, like a network failure or a server error. It should clearly explain the problem and offer a solution, like a retry button.

Why are screenshots important?

Screenshots provide visual evidence of the state, making it easier for developers to reproduce and fix issues. They also serve as documentation for QA and stakeholders.

How do I test error states if I don't control the backend?

You can simulate errors using browser dev tools (e.g., offline mode, blocking requests) or by using a proxy tool like Charles or Fiddler to return mock error responses.

Should I test empty states on mobile too?

Yes, empty and error states can render differently on smaller screens. Test on at least one mobile viewport to ensure responsive design works.

How many screenshots should I take?

Take at least one per state per viewport. If there are multiple variations (e.g., different error messages), capture each. More is better for documentation, but keep them organized.