2
votes

jmeter 5.0 windows 10

I am using jmeter to load test a localhost:5000 app and want to record it using htts test script recorder I go file-->templates-->select template --create and it scaffolds a test for me I then go to firefox and go to proxy and change setting and also install the certificate

I then click on the http(s) test script recorder on the left and hit the start button which results in a pop up to install the certificate

then there is another pop up enter image description here

what values should i be selecting in html sampler setting and the highlighted

this is what I want to achieve

go to http://localhost:5000/ then upload a xml file(I have stored it in my jmeter/bin dir) and get a multi checkbox item results back then check some of the check boxes and then hit submit button

1

1 Answers

0
votes
  1. Prefix - is just a string which will be added to the generated HTTP Request sampler labels. If you don't provide any prefix you will have the names like 1, 2, 3, 4, etc.:

    enter image description here

    If you set something as the prefix - it will be added to each sampler name

    enter image description here

  2. Create new transaction after request (ms) - if you put i.e. 5000 into this field and during recording you will not click anywhere for 5+ seconds - JMeter will put all subsequent requests into a new Transaction Controller. Transaction Controller's main function is to measure the total child of its children. for example on the above image foo10 is the Transaction Controller and it will measure the cumulative time of execution of samplers from foo10 to foo17 and report it as a single transaction. For example you can have your whole sequence as a single transaction or have 2 separate transactions: upload file and submit.

  3. Just in case make sure your Firefox proxy settings look like:

    enter image description here

    to wit:

    • proxy is being used for all protocols
    • no exclusions are being made
  4. You should be importing certificate into the Firefox after starting the proxy as the certificate has limited life time span (7 days) and if you will not be recording for more than 7 days you will not be able to use the certificate anymore without regenerating it. So make sure that "fresh" certificate is imported into the Firefox.