jmeterjmeter-5.0jmeter-4.0

SHould i ignore ajax,css,call in jmeter load testing


I am new to jmeter load testing. i am using jmeter test script recorder to record and run the load testing and jmeter capture all type of calls including css,ajax etc.While doing load testing should i ignore css,ajax or i have to include them as well?


Solution

  • Well-behaved JMeter test assumes that each JMeter thread (virtual user) replicates real user with all its stuff including

    So you:

    1. Should not be recording these calls as if you record them - JMeter will execute the calls sequentially
    2. Instead you need to configure JMeter to download these CSS, images, etc. using parallel pool of 6 threads (this is what real browsers do). The same applies to AJAX calls, they're being executed by the same pool of 6 parallel threads. Also remember that JMeter cannot execute client-side JavaScript so you will have to take care of simulating AJAX requests yourself using i.e. Parallel Controller