Search code examples
httpjmetertraffic

Sorting out the API traffic in Jmeter


I am beginner on Jmeter and many parts is complicated to understand. When I use "HTTP Test Script Recorder" to record my test script in Jmeter, it records a lot of API traffic calls. How to understand or sort out what API calls I needed, important for my Test Script? is there any rules or tips for sorting out it?

API call traffic

I am trying to look through call by call and figure out what each call means (HTTP request, method, response...)


Solution

  • I don't think you need both googleadservices.com and google.com (as long as you're not a Google employee who is doing performance testing of these services)

    If you create a Recording test plan from the template the requests to Google services (at lest the most popular ones) will be excluded from the recording scope

    enter image description here

    When it comes to "rules" and "tips" I can think of 2 major ones:

    1. Make sure that your test is targeting only the system under test, all 3rd-party images, banners, scripts, styles, fonts, etc. should be excluded

    2. Each JMeter thread (virtual user) must behave exactly like a real user using the real browser when it comes to handling: