New answers tagged

0

I would suggest using a JSR223 post processor, where you will need to do a little scripting to get what you need to save as a CSV file. Here is basic pseudo-code to help with this. //use PREV to get response data from previous sampler prev.getResponseDataAsString() //format this data (remove commas) and output to CSV file outLog.write(csvResponse + "\n") ...


1

Constant Throughput Timer can only slow down JMeter thread(s) in order to limit the throughput to the desired value. If you want to reach 24000 requests per minute (400 requests per second) with 100 threads it means that application response time must be 250ms. If response time will be higher - you won't be able to achieve your goal. If you're absolutely ...


1

Just don't use JMeter GUI for running the tests, you should use GUI only for tests development and/or debugging. 50 users may be too high for GUI mode. Once you finish test script creation and run it with 1-2 users/loops to ensure that it's doing what it is supposed to be doing you should close JMeter GUI and run your test like: jmeter -n -t test.jmx -l ...


0

If your computer looses Internet connection most probably it's your computer issue, make sure that it has enough headroom to operate in terms of CPU, RAM, Network and Disk IO. You need to have sufficient amount of resources as if JMeter won't be able to send requests fast enough - you will get false-negative results. You can check your operating system ...


0

As per Optimal Heap Size chapter: "If the occupancy of the Java heap is too high, garbage collection occurs frequently. If the occupancy is low, garbage collection is infrequent but lasts longer... Try to keep the memory occupancy of the Java heap between 40% and 70% of the Java heap size... The highest point of occupancy of the Java heap is preferably ...


0

Double check that the extracted ${form_key} variable really has the value using Debug Sampler and View Results Tree listener combination Try recording the request for creating the account using JMeter's HTTP(S) Test Script Recorder, it might be the case your Magento instance requires some custom parameters I cannot reproduce your issue using online Magento ...


2

https://www.psav.com/bandwidth-calculator Use the above site to calculate the bandwidth required for 500 requests. Say u kept 500 concurrent users with usage high , then u need roughly 70mb/s network bandwidth. If you are interacting with your API using internet ,you can send max of 4mb/s. The remaining packets will get que and you will feel like your ...


1

BlazeMeter article recommends: Just increase the maximum heap size to ~80% of your total available physical RAM. HEAP="-Xms512m -Xmx512m" Now change the -Xmx value accordingly. For example: if you want to set the maximum heap > size to 4 gigabytes, you’ll need to change the line to: HEAP="-Xms512m -Xmx4096m"


-1

what is the size of a single request/response:- Bytes:- 720 and the sent bytes are 300. Whats your network bandwidth


0

JMeter threads are absolutely independent, their context (session state, variables, etc) are stored locally hence each thread represents an individual virtual user. Each thread executes samplers upside down (or according to Logic Controllers), this way you can pass the variables from one request to another within one thread As you can see in below example ...


1

With JMeter you can do whatever you want, if you need to hit multiple API endpoints with multiple threads (virtual users) at exactly the same moment you need to consider following configuration: List your endpoints in a CSV file, for example: http://example.com/endpoint1 http://example.com/endpoint2 http://example.com/endpoint3 Use CSV Data Set Config so ...


1

Your server expects some value which must be present in the request and JMeter fails to provide the value. There could be different reasons for this, one of possible ones is that you don't provide the relevant Content-Type header via HTTP Header Manager so the server is not able to parse the value even if it's present in the request body.


0

Double check that the form_key element is present in the response using View Results Tree listener: Check out How to Debug your Apache JMeter Script for more information on getting to the bottom of your JMeter test problem. It might be the case you're being redirected to a page which doesn't have this form_key parameter.


0

CSS selector should be input[name="form_key"]. You have input[name=form_key].


0

It might be the case you need to pass SOAPAction header as well In general given the request works fine in SoapUI you should be able to record it in JMeter: Start JMeter's HTTP(S) Test Script Recorder Configure SoapUI to use JMeter as the proxy Start the request in SoapUI JMeter should store the relevant HTTP Request sampler under the Recording ...


0

Try to remove this: <!--Optional:--> <web1:PhoneNumber>?</web1:PhoneNumber> The fact this is optional means you can just not specify this part in your query. However you send ? value that might break server logic.


1

Your "doesn't work" statement doesn't work for us as it doesn't provide enough details so we cannot come up with the comprehensive answer. Most probably your request doesn't work due to the same form_key correlation problem, double check that it: Exists The value is the same as in the response for the /account/create request I also don't know where did ...


0

It should be enough to have 2 thread groups: one with HTTP Cache Manager and another without the HTTP Cache Manager. Remember that the HTTP Cache Manager works only for Embedded Resources (images, scripts, styles, fonts, sounds, etc.) and given well-behaved JMeter test should have the same network footprint as the real browser - your use case "without cache" ...


1

You need to use correlation to store ViewState, EventValidation, and possibly other values (Session, Key, ViewStateGen, etc) inside vars. As mentioned above, this can be done using the Regex extractor. I have written jmeter scripts where the ViewState changes for every page transition in the workflow, so you might need to use multiple vars for ViewState. ...


0

I've used WebLoad before. Its scripting language is basically JS, so you may be able to find controls on the page using JS and invoke them as part of your load script. WebLoad is free.


1

View State is one of client-side state management techniques, if you want to load test application which uses this technique - it means that you will not be able to successfully replay a recorded script without prior correlation. You should design your test as follows: Request 1 - open first page Extract ViewState value from the response using a suitable ...


1

It seems you're suffering from the same problem as it's described in Sigar 1.6.4 is crashing: EXCEPTION_ACCESS_VIOLATION article, one of the reasons I can think of is that Windows PerfMon doesn't have CPU counters enabled so SIGAR fails to read this information and causes JVM crash due to a bug in its native sigar-amd64-winnt.dl Try inspecting Windows ...


0

import java.io.*; import java.lang.*; import java.util.*; import java.io.FileOutputStream; **//Extract all variables using Regular Expression Extractor** Name = vars.get("AB"); Requests = vars.get("CD"); Errors = vars.get("EF"); trnxs = vars.get("GH"); log.info("Name is = " +Name ); log.info("Requests is = " +Requests ); log.info("Errors is = " +...


Top 50 recent answers are included