Best Practices for Implementing E2E (End-to-End) UI Tests
E2E tests earn their cost only on the journeys that make money; everything else belongs lower in the pyramid.
Newest first. 319 load testing, JMeter, test automation and monitoring guides, plus tool comparisons. Browse by topic from the blog home.
E2E tests earn their cost only on the journeys that make money; everything else belongs lower in the pyramid.
OpenSTF gives you remote access to real Android devices, which emulators cannot fully replace.
How to design load testing scenarios: set pass/fail goals, build a workload model from real traffic, add think time and test data, then choose the load profile.
Puppeteer's page.click does not wait for the selector and throws if it is missing; wait with waitForSelector or use a locator that waits for a visible element.
WireMock lets you produce failures a real API will not give you on demand: timeouts, 500s, malformed bodies.
Categories let one suite be sliced by speed or area, so CI can run the fast set per commit.
The closer the parity, especially in data and scale, the more useful it is. A staging environment that drifts from production gives false confidence.
Compare the same viewport and state, or the diff is dominated by noise. Review differences rather than gating on pixel equality, which fails constantly.
Image comparison catches visual breakage that assertions never check for. Run in a consistent environment; a different OS produces different pixels.
linkText matches the full visible text; partialLinkText matches a substring.
Exchanges fail at the order book and matching engine, not at the marketing pages.
Puppeteer captures viewport, full-page or single-element screenshots.
A campaign delivers its traffic in minutes, which is a spike rather than a load curve.
Pixel comparison catches visual regressions that functional tests never assert on. Set a tolerance, or antialiasing and fonts will fail every run.
A screen recording captures the exact sequence that reproduces a bug, which a description rarely does.
Debugging transpiled code needs source maps, or breakpoints land on the wrong lines.
A proxy between the device and the network is the only reliable way to see native app traffic.
The WebDriver Sampler measures real browser rendering, which HTTP samplers cannot see. Use it to measure front-end timing, not to generate volume.
A DataProvider feeds many input sets into one test method, which keeps cases out of the code.
Two ways to save Apache JMeter results: the -l flag with jmeter.save.saveservice properties for CSV, or XML for the full sample detail. With examples.
Open a new tab in Selenium WebDriver with Java: Selenium 4's switchTo().newWindow(WindowType.TAB), Ctrl+click on a link, and switching between tabs by handle.
Backgrounding and resuming is where state bugs surface, so it belongs in the test suite. Verify state after resume, not just that the app reopened.
Explicit waits target a condition; implicit waits apply a blanket timeout to every lookup.
Wrap the literal in double quotes instead, which is the simplest fix. Use concat() when the text contains both quote characters.
Don’t miss out on the latest testing tips and tricks, tools and news related to software testing.
Already +20,000 members in the list.
Load test websites and APIs from 25 cloud regions, monitor page speed and uptime, and get AI analysis that explains your results in plain English.