I am currently trying to put load on HTTPS website by using Webdriver Sampler in Jmeter. Jmeter successfully runs the whole Selenium code in Webdriver Sampler; but in the end, marks the sampler as Failed in 'View Results Tree' listener. Response data > Response Body shows
java.net.MalformedURLException: unknown protocol: data
It's strange, as it already has executed the whole code successfully with even closing the browser. What's the point of giving this error in the end?
What is the way out to avoid this failure?
The error means that you open the browser and don't call WebDriver.get() function
Please inspect all your WebDriver Samplers and ensure that there is the following call in each of them:
WDS.browser.get('https://example.com')
replace example.com
with the URL of the application you're testing.
Check out The WebDriver Sampler: Your Top 10 Questions Answered article for more information on Selenium scripting in JMeter, troubleshooting, tips and tricks.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.