Selenium scripts to jmeter scripts

122 views
Skip to first unread message

gop...@gmail.com

unread,
Oct 21, 2016, 3:49:46 AM10/21/16
to Selenium Users
What are the drawbacks of converting selenium scripts to jmeter scripts for load testing? Does it affect in a negative way?


David

unread,
Oct 21, 2016, 3:06:53 PM10/21/16
to Selenium Users
You can't evaluate page load times from the perspective of including the (javascript/CSS/AJAX-based) UI rendering (not simply fetching of files over HTTP). That requires Selenium.

To add that to jmeter load tests, you do either of the following:
  • run a selenium script separately while jmeter script is running
  • run the selenium script code in jmeter as a separate single thread using the WebDriver plugin for jmeter
in either case, this is only useful if you convert selenium scripts to jmeter in the form of translating navigation between pages into HTTP requests with jmeter. If you just blindly convert by putting in selenium code to jmeter via WebDriver plugin and multiple threads for that, you gain no real benefit.
Reply all
Reply to author
Forward
0 new messages