0

How can I use different urls within a single jmeter test plan for one browser, for example:

Given an e-commerce site called www.flipcart.com

I want to visit various pages on the site such as " search result ", " Home page", "Checkout page", one by one within a single jmeter test plan.

1 Answer 1

1

As per JMeter Home Page JMeter Is Not A Browser

JMeter is not a browser. As far as web-services and remote services are concerned, JMeter looks like a browser (or rather, multiple browsers); however JMeter does not perform all the actions supported by browsers. In particular, JMeter does not execute the Javascript found in HTML pages. Nor does it render the HTML pages as a browser does (it's possible to view the response as HTML etc., but the timings are not included in any samples, and only one sample in one thread is ever viewed at a time).

So you can use 3 different HTTP Request Samplers each having different Path and you'll be able to hit 3 pages, like:

3 different pages

If you need to simulate different distributions, like:

  • Search Results - 60% of users
  • Home Page - 30% of users
  • Checkout - 10% of users

You can use Throughput Controller. See Running JMeter Samplers with Defined Percentage Probability guide for several use cases, from simplest to more complex.

2
  • Hi Dimtri, I understand what you want to say, But can u please let me know how is the function of throughput controller OR It is different from recording controller???
    – CSachdev
    Dec 1, 2015 at 6:51
  • Throughput controller controls how often affected samplers are executed. See jmeter.apache.org/usermanual/… chapter
    – Dmitri T
    Dec 1, 2015 at 17:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.