简体   繁体   中英

Performance testing using Jmeter and WebDriver Sampler

I am creating a performance test suite in jmeter with webdriver sampler. I am able to do it but when I see the results(load time).It keeps changing every time I run the test for same URL (homepage). How do I get accurate results?

Performance testing using WebDriver Sampler is not what it is designed for.

As per WebDriver Sampler Tutorial

Note: It is NOT the intention of this project to replace the HTTP Samplers included in JMeter. Rather it is meant to compliment them by measuring the end user load time.

and

The Web Driver Sampler is meant to be run in conjunction with a HTTP Sampler so that from the server's perspective, the load is production like. At the same time, the web sampler will simulate the user experience of interacting with the website/webapp whilst the server is under load, hence measuring the real user's experience at the same time.

So I would recommend the following approach:

  1. Develop your test using HTTP Request Samplers
  2. Follow recommendations from How to make JMeter behave more like a real browser guide
  3. Add a separate Thread Group with 1 virtual user and put WebDriver Sampler in there to measure real-life user experience during load test .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM