Selenium Load Testing / Performance Testing

90 views
Skip to first unread message

Dnyaneshwar Wagh

unread,
Sep 10, 2015, 11:40:51 AM9/10/15
to Selenium Users
Hello,

Can we use the same Selenium functional test scripts for load testing. if yes How ? Is there any other tool in which we can use the selenium scripts for load / performance testing ?

Thanks and Regards,
Dnyaneshwar Wagh

MWQA

unread,
Sep 16, 2015, 8:25:29 AM9/16/15
to Selenium Users
Try robotframework with the Selenium2 and JMeter libraries 

Praveen P

unread,
Sep 18, 2015, 4:58:43 PM9/18/15
to Selenium Users
Hi,

Technically 'yes' we can use Selenium test in a Load test (at least in LoadTest from MS Visual Studio).
But if the test scripts have lot of wait (or sleep) statements to perform something on the page, then these will not give a picture of how a test case is performing. So, usually UI Tests wont be included in performance testing.

If the test code does not have any wait statements, you can try executing them in Non-UI mode, like using a PhantomJS or a HTMLUnitDriver (headless browsers). These would be a better fit for load testing.

Other options that I know of is to use "Web Performance testing" in load test. This is also another way of testing the UI responsiveness w.r.to load.

If you want to know how to include Selenium test in load test, below is one way (C# and Visual Studio)

1. Write tests using MS Test framework
2. Use Selenium libraries to automate
3. Use LoadTest wizard to create a load test. Include the test method created above.

Regards,
Praveen

Dmitri T

unread,
Sep 20, 2015, 7:05:53 AM9/20/15
to Selenium Users
  1. If you use Java client libraries and TestNG framework - you can use parallel functionality
  2. Selenium Grid allows parallel execution 
  3. Use Taurus tool which has Selenium support
Reply all
Reply to author
Forward
0 new messages