How to Use the DataProvider in TestNG with a JAVA Example
A DataProvider feeds many input sets into one test method, which keeps cases out of the code.
Newest first. 310 load testing, JMeter, test automation and monitoring guides, plus tool comparisons. Browse by topic from the blog home.
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.
Appium reaches the Android system buttons through key events rather than element clicks.
Wrap the literal in double quotes instead, which is the simplest fix. Use concat() when the text contains both quote characters.
Find all links on a page with Selenium WebDriver in Java: findElements(By.tagName("a")), filtering hrefs, checking status codes and avoiding stale elements.
Why a GET or POST request returns 500 Internal Server Error: a body the server cannot parse, missing headers or cookies, exhausted pools, and how to debug it.
Hover needs the Actions class; a plain click will not trigger CSS or JS hover states.
Above-the-fold render time matters more than total page load. Measure the change in conversion, not just the change in milliseconds.
Continuous mobile emulation turns a one-off check into a trend you can act on. Alert on regression rather than reviewing every run.
Which Selenium locator is fastest? A measured test of By.id, name, CSS and XPath in Selenium 4: XPath costs a few ms more, and stability matters more.
Emulators catch layout and viewport problems quickly and cheaply. Test the viewports in your analytics rather than a generic device list.
UI steps let you script a real journey rather than checking a single URL.
Use the Select class for real select elements, and normal clicks for custom widgets.
How to add User Defined Variables in Apache JMeter, reference them with ${name}, override them from the CLI with -J, and keep environments in one place.
Start Apache JMeter from the command line with -n -t -l -e -o, why GUI mode skews results, and how to run the same JMX at scale in the cloud.
Scrolling is done through the JavaScript executor, since WebDriver has no native scroll command.
Page speed is a ranking factor, so a slow site costs you traffic before anyone reads a word.
gzip on NGINX is a few lines of config and usually the cheapest bandwidth win available.
Use JMeter's XPath2 Extractor to pull values from XML and SOAP responses, map namespaces, and see why XPath on HTML returns your default value. Tested on 5.6.3.
Assert on content as well as status, since a wrong body is still a failure. Keep assertions cheap. Heavy ones distort the timings you are measuring.
JMeter load testing step by step: install JMeter 5.6.3, build a test plan, run it in CLI mode, read the HTML report and scale past one machine to the cloud.
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.