Kasasm
Kasasm

Reputation: 39

Performance/Load test using selenium webdriver prerecorded steps

I have been using selenium webdriver as my main method to do functional tests. So far its been working greate with our product.

I need to do some performance and/or load tests on the website, I was wondering if there is a tool that would incorporate my selenium tests or a tool which i can use with the recorded tests as the base.

Currently i am using selenium webdriver with C#

Any help is appreciated.

Upvotes: 3

Views: 3208

Answers (2)

James Pulley
James Pulley

Reputation: 5682

Why do you need to run full browsers. HTTP layer tests are far simpler? You also should be looking at only a subset of business processes in performance which generate a preponderance of load.

Upvotes: 0

Dmitri T
Dmitri T

Reputation: 167992

Given you have tests written in C# the most obvious way would be using Visual Studio Load Testing capabilities.

If you are looking for a free and open-source solution I would recommend going for Apache JMeter. JMeter has integration with Selenium via WebDriver Sampler plugin so you should be able to run your Selenium tests in multi-threaded manner. However you will need to convert your C# code into one of the WebDriver Sampler supported languages (default is JavaScript)

JMeter WebDriver Sampler Languages

Remember that Selenium tests are very resource-intensive as real browsers consume a lot of CPU/RAM so the number of virtual users you will be able to mimic this way will be very limited. So recommended approach is creating main load on a HTTP protocol level and use one Selenium instance to check rendering speed while your application is under the load.

You can install WebDriver Sampler plugin using JMeter Plugins Manager.

JMeter Selenium WebDriver Sampler Installation

Upvotes: 1

Related Questions