Load Testing using Selenium Web Driver.

Does anyone know how to do load testing in using selenium web driver? I need detailed steps to do it.

Thanks in advance.

Doctor Asked on August 12, 2014 in Selenium WebDriver.
Add Comment
  • 7 Answer(s)

    Hi Vaidy,

    We can do some level of load testing using selenium, but be aware its not a feature of Selenium. We have to write logic around your load scenarios. Can you please specify the scenario you want to load test. That way we can provide more clear information.

    Thanks
    Virender

    Professor Answered on August 12, 2014.
    Add Comment

    You can use TestNG along with webdriver to achieve this. You can google it.

    Thanks,
    Vishal

    Doctor Answered on August 12, 2014.
    Add Comment

    I already used TestNG in selenium. We cannot use TestNG for load testing. We can only generate and run the selenium scripts using TestNG and can convert the Juint code to TestNG.

    Doctor Answered on August 12, 2014.
    Add Comment

    you can use selenium grid and distribute you test cases on various machines

    Vice Professor Answered on August 12, 2014.
    Add Comment

    Virendar, I just want to do load Testing for a product based project. But the scenario is just login and logout. Can you just tell me the steps to follow?

    Regards,
    Vaidy

    Doctor Answered on August 12, 2014.
    Add Comment

    Thanks Ankitra for the interest taken to solve my issue. But selenium grid is for running the scripts in various machines. Here we cannot specify the number of users. So, In grid we cannot achieve this.

    Regards,
    Vaidy

    Doctor Answered on August 12, 2014.
    Add Comment

    using invocationCount and threadPoolSize

    @Test(threadPoolSize = 3, invocationCount = 10, timeOut = 10000)
    public void login() { // TO DO CODE
    }

    public void logout() { // TO DO CODE
    }

    the method will be run a total of 10 times using 3 threads

    Helper link : http://www.asjava.com/…/testng-tutorial-time-test-with…/

    Although it is not recommended to use selenium for load, but we can use jmeter for this.

    Supporter Answered on April 6, 2015.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.