Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to perform load testing using Selenium WebDriver? [closed]

Tags:

I have to perform the load testing the application using Selenium WebDriver for 100 users. 100 users login and hit the server at a time.

How to do this process using Selenium WebDriver?

like image 264
tsr_qa Avatar asked Apr 07 '14 04:04

tsr_qa


People also ask

Can we perform load testing using Selenium?

Selenium is used to perform load testing and JMeter is used to measure the performance of the same. One can measure how fast HTML pages take to load, and also check javascript and CSS performances. This is done using a combination of the graphical JMeter interface and some scripting to invoke Selenium code.

Can you use Selenium grid for performance testing?

Using a selenium grid for performance testing gives you the advantage of being able to easily and quickly implement performance tests into your continuous testing environment re-purposing familiar selenium tests as performance tests.

Can load testing be done manually?

Load testing can be done manually as well as by using a tool. But manual load testing is not advised as we don't test the application for a lesser load.


1 Answers

UPDATE As mentioned in the comments, this is a bad idea. If you are considering Load Testing with Selenium Grid, reconsider your purpose and verify whether Selenium Grid really is the only option you have.


For a free solution:

Selenium provides an easily scalable testing framework called Selenium Grid. You can use this in conjunction with TestNG to create a scalable load-testing framework.

From the link:

scale by distributing tests on several machines ( parallel execution )

manage multiple environments from a central point, making it easy to run the tests against a vast combination of browsers / OS.

minimize the maintenance time for the grid by allowing you to implement custom hooks to leverage virtual infrastructure for instance.

I have leveraged Selenium Grid to load-test our web-app with about a dozen concurrent browser sessions (so far). I used several references to achieve this:

  • http://testng.org/doc/documentation-main.html#parallel-tests
  • http://blog.wedoqa.com/2013/07/how-to-run-parallel-tests-with-selenium-webdriver-and-testng-2/
  • http://www.mkyong.com/unittest/testng-selenium-load-testing-example/
like image 110
Vish Avatar answered Oct 25 '22 09:10

Vish