jmeter , using JMeter proxy recorder behind company proxy with SSL manager

using JMeter proxy recorder behind company proxy with SSL manager


Tag: jmeter

Hi I am facing following issue when try to use JMeter proxy recorder behind company proxy

There are two environments one is not using company proxy(QA env) other is using company proxy(UAT env)

Also both sites are using client side certificate to identify user(saml2).

When recording in the QA environment I only need to use ssl manager and when I start the jmeter proxy jmeter will ask for browser certificate password. After providing that I can successfully record the requests.

But when access the UAT env directly I have to set the browser proxy setting ( and port 2212)

So to record the same application I started JMeter using following command

jmeter.bat -H -P 2212

also set the browser proxy settings to localhost and 8080(same as jmeter proxy server settings)

Jmetr recording start fine and requests are captured but it does not evaluate the browser certificate which is loaded in SSL manager. Therefore I am unable to recorded correct scenario as connection says not authorized due to browser certificate unidentification.

Any suggestions on this pls


I have found out the solution for above issue

As stated we can start the JMeter using jmeter.bat -H -P 2212 -N localhost (you can use other parameters as required like username and password for the proxy)

Load the valid browser side certificate(not the JMeter root CA) in to the SSL manager(Assume you are not loading certificates from java Keystore)

The main point I have missed was the value in JMter Work Bench > HTTP(S) Test Script Recorder > HTTP Sampler Setting > Type

Had to use Java implementation as Type (or you can change the value and check)

After completing above configurations I have successfully recorded the script from behind the cooperate proxy.


How to get value from property in BeanShell (jmeter)

I have got several thread groups. I want to use variable from the first group. In second group this var should be used in BeanShell. So: in first thread group I created BeanShell Assertion with this code: ${__setProperty(erroriden, ${erroriden1})}; In second thread group I have BeanShell pre-processor. If has line...

Which is the best performance testing tool when i dont know the client application behaviour. As i am going to have number of web based clients

My organization is looking to perform a performance testing externally. The performance testing is going to be only for web based applications. Can you guide me which tool is best to choose as performance testing tool. Right now there is no idea about the client web application behaviour. Beacuse there...

run sh script in jmeter

For load testing I want to randomize my testvalues before I run the test in jmeter. To do so, I want to use this bash script: #! /bin/bash cat data.dsv | shuf > randomdata.dsv This should be executed in jmeter. I tried using a BeanShell Sampler with this command (I...

How to handle multi language website in jmeter script

I have website which supports English and French.I have already created script for website in English but now they want me to test against french website.So how can i extended my script that asssertions does not fail i test script any of those languages.

JMeter Requests are concurrent requests or sequential requests?

I am new to JMeter, I want to do load testing on a particular web site. I have to do load test for the following requests on my web site -->Visiting login page -->Login to website -->visiting to products page -->Visiting to product details page for this I made script...

Need help testing a web service method with a char parameter

I'm trying to use JMeter 2.13 to test my web service. One of the methods that I need to call has a parameter that is defined as char. The parameter is sex. Here is my HTTP request body data. <S:Envelope xmlns:S=""> <S:Body> <ns2:SaveDocument xmlns:ns2=""> <DocumentID>0</DocumentID> <StatusCode>DRA</StatusCode> <TemplateID>17839</TemplateID> <Document>Testing save document.</Document>...

if-else block in JMeter

I expect two possible cases in my application: Search was successful and search was failed. In both cases I have two different sets of HTTP requests, which JMeter should execute. How can I implement if-else block in JMeter scenario? I've tried to use if controller with Regular Expression Extractor, but...

JMeter test on Netty-based impl produces error for every second request

I've implemented an HTTP service based on the HTTP server example as provided by the project. When I execute a GET request on the service URL from command-line (wget) or from a browser, I receive a result as expected. When I perform a load test using ApacheBench (ab -n...

Jmeter Beanshell error

i am getting following error ERROR - jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval In file: inline evaluation of: ``import java.text.*; import*; import java.util.*; import org.apache.jmet . . . '' Encountered "/" at line 15, column 74. could anyone tell what is causing the problem.Thanks....

Why jMeter show transaction controller data in its summary report?

Here i have A recording controller and test script recorder. I recorded the user activities using template. This automatically creates a Recording controller and then transaction controller. Each transaction controller has child HTTP request wrapped inside it. Now when I run the test after creating a test script, I see...

Deleting unnecessary symbols from variable in Jmeter

I have variable as string in this view: ["564546","56454654","3123123","868987"] I need the script that deletes unnecessary symbols [ ] " and put it to another variable . (something like trim method) I assume it should be made in BeanShell pre-processor....

Why does HTTP Authorization Manager only work if HTTP Request implementation is HTTPClient3.1?

I have configured the HTTP Authorization Manager, but for some reason it only logs in if HTTPClient3.1 is selected as the implementation of my HTTP Request. Furthermore it does not seem like JMeter sends the information at all if Java or HTTPClient4 is selected. I'd like to know why that...

How to extract All of reg expression matches from html page via JMeter

I have a html page containing userIds of students. I need to extract all the userId values from this html page and use them in a parameter of JMeter HTTP request.. For example i have following data on htm page. <input type="checkbox" StudentID="1503" <input type="checkbox" StudentID="1504" <input type="checkbox" StudentID="1505" so...

Apache httpd connection refused during stress test using jmeter

Now, I do stress test using jemter in windows(jmeter.bat). Number of Threads = 100 Ramp-up period = 0 Loop count = 1000 But raise connection refused error in jmeter, after 20~30 seconds. I can not find connection refused error in /usr/local/apache/logs/error.log or /usr/local/apache/logs/access.log. Test is HTTP GET, index.html("It's works") Apache...

Jmeter BeanShell - compare between int to counter

I'm trying to compare int (parse from string) to counter in BeanShell assertion. my code: int i = Integer.parseInt(vars.get("count_2")); counter = vars.get("counter"); if (i != counter) { Failure = true; FailureMessage = "failed"; } else { Failure = false; } On debug sampler I can see that both "count_2" and...

JMeter: Is it possible to assign a UI value to a JMeter variable

I want to login in to an email server and read the value '5' from inbox(5) in a variable to use it further.Is this possible?

Ignoring the Http Request Defaults in jMeter

Is there a way to tell an HTTP Request in jMeter to ignore the HTTP Request Defaults element? I've got a string of about 100 HTTP Requests that need the defaults but the last few I need to keep them from posting what's in the defaults.

JMeter: How to use the RESTful API key for authorization of the next set of API

I am creating a jmeter load test plan for RESTful API request. I need to use the dynamic API key generated in my first sampler SignIn API in the next set of API requests I am going to create. Can someone help out with how to pass the selected data...

Not able to record HP Webtour app using Jmeter

I am new to Jmeter and I took HP Loadrunner Webtour application for testing. I am not able to record the Webtour app using Jmeter. I have already changed my settings for firefox browser to its proxy port where it will record the Jmeter scripts. I tried other web application...

JMeter 2.10 Random Variable that gets data from string

I have 1st thread group that GETs some id's and writes it to the variable. This var has view like that "654564546,564564,56454,56456454,21231321,8972341,65423187". I need to pick up randomly one of the id and put it to the another variable. In jmeter 2.07 I used this code: import java.util.Random; String[] erroridcox...

JMeter Beanshell sampler caches image

I'm using a JMeter (2.13 r1665067) to test a site with Google Kaptcha on log in and registration until they can be disabled in a test environment. I've recorded a session and set up a Save Responses to a file sampler to extract the kaptcha image. I then have a...

Diameter protocol testing using Jmeter

Is there any opensource plugin available for diameter protocol testing using JMeter? I found "Computaris Top Testing Suite" which is based on JMeter and supports diameter protocol testing, but it is paid.

using JMeter proxy recorder behind company proxy with SSL manager

Hi I am facing following issue when try to use JMeter proxy recorder behind company proxy There are two environments one is not using company proxy(QA env) other is using company proxy(UAT env) Also both sites are using client side certificate to identify user(saml2). When recording in the QA environment...

Jmeter + Chrome driver config: empty page while processing

I configured jmeter to run tests using Chrome Driver Config. Test run with no errors: 2015/06/01 20:14:14 INFO - jmeter.engine.StandardJMeterEngine: Running the test! 2015/06/01 20:14:14 INFO - jmeter.samplers.SampleEvent: List of sample_variables: [] 2015/06/01 20:14:14 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*) 2015/06/01 20:14:14 INFO - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group 2015/06/01...

Will jmeter function FileToString(path) takes dynamic values

Will jmeter function FileToString(path) takes dynamic values. I need to use around 400 json files as a input. so planning to use FileToString($fileName}) in body data. By providing the filename column in csv. But it seems Jmeter is checking filename as file instead of getting value from csv....

Running Java class with JMeter (Bean Shell)

I have written a Java Class for use in JMeter, packaged the project as a .jar file and moved that file into the lib/ext folder in the jmeter directory. I have seen documentation on how to proceed but they give contradictory answers. The first way is to use the BeanShell...

Can anyone explain me following RandomString

Can anyone explain me following syntax which is used to create randomstring ${__time(ddHHMMmmss)}${__javaScript(Math.floor((Math.random() * 10) + 1))} ...

Where is HTML renderer of View Results Tree hidden in Jmeter 2.13

Where is hidden HTML response renderer option? This happened to me after update jMeter to 2.13 r1665067. ...

How to decide the ideal hold time in Ultimate Thread Group in Jmeter

How can we decide the ideal hold time in Ultimate Thrad Group in Jmeter

JMeter script that loops and increases throughput until failure

Curious if anyone has any ideas on how I might create a jmeter script that will loop the scenario while increasing throughput and load until an error is received. Any guidance would be appreciated....

Empty Response In BSF Post Processor

I'm trying to use the BSF Post Processor with an HTTP request sampler. The body of the response is JSON, however it appears that I'm not seeing the body in my script. Test script below: var response = prev.getResponseDataAsString(); if (response.length > 0) { vars.put('foo', 'success'); } else { vars.put('foo',...

How to use multiple checkboxes in jmeter?

In my script i have multiple checkboxes,upon selecting which it populate values(like in first group -- Phone,tablets and in other group it --mac,android).I know that jmeter does not support javascript.If i want to automate it in my script that it selects random checkbox during execution.How can i do that?

Jmeter - BeanShell assertion is not running

When running the thread, it goes through the whole flow except for the last BeanShell assertion. My BeanShell code is: report = vars.get("status_1"); if (report=="active") { Failure = true; FailureMessage = "failed to report"; } else { Failure = false; } What could go wrong?...

Calculating Age by custom Program

There is one POST request which submits both Date of Birth & Age. I found the Date of Birth from previous request, extracted it through Regular Expression Extractor, and passing the Variable in the POST request. But I did not found the Age from the previous request. Tried figuring out...

Is this possible to automate the JMeter scripts running schedule?

Is this possible to schedule the JMeter scripts.for example I want to run the same script every hour and want to automate this process.Is this possible?

Jmeter- How to extract token id from Response Data

This is the response data from which i need to extract token value { "token":...

how can i exclude a URL in Jmeter while recording?

I want to exclude certain URL while recording in JMeter. I have added in the Script recorder in the URL Patterns to Exclude the URL that i don't want to get. E.g: It seems that it is not taken into consideration. What can i do? Where i am...

JMeter JDBC Call returns the value as parameter name if the value received from DB is null

I am using a JDBC PreProcessor in JMeter to fetch a value from the DB before firing a SOAP call which needs to be enriched with that information. I have assigned a variable XYZ to fetch the value returned from DB. If there is a value returned from DB, i...

Is it possible to remotely check a JMeter slave machine?

We are setting up a load testing platform and developping some tools in go. We'd like to remotely check a JMeter load generator and (if possible) get some statistics or infos from a JMeter daemon. This will be from a utility developed in go (the language isn't the concern here)...

Perfomance testing for XMPP Chat application with Jmeter & Blazemeter [closed]

We are trying to do a performance testing for a XMPP-based mobile chat application using Jmeter and Blazemeter. As we are new to XMPP web-services. Can anyone brief us how to use Jmeter or Blazemeter for XMPP and how to record the scripts using XMPP plugin?...

JMeter - Graphite Backend listener rootmetricsPrefix taking previously generated value

Background: I am using graphite to store the data generated during the performance test and ideally, we would like to look at the historical graphs as well. Hence, I am creating a rootMetricsPrefix folder name dynamically in a setup thread group and assigning it to a property. The backend listener...

Token Parsing Error: Lexical error

I am getting the following error when I use a BeanshellPostProcessor to regex some data and write to file: 2015/06/11 12:11:19 ERROR - jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: `` import; import java.util.Map; import java.u . . . '' Token Parsing Error: Lexical error...

SSLHandshakeException while connecting to a https site

I am trying to record a https site through jmeter (version 2.13, java version - 1.8u31) and I am getting SSLHandshakeException while connecting to a https site. The error message is Received fatal alert: handshake_failure at at at at at...

Using Jmeter OS Process Sampler to collect script data

Is it possible to collect the output of a python script using the "OS Process Sampler"? My python script does a database query and returns "r1=123 r2=456 r3=789" Is there a way to collect the r1, r2, r3 values and graph them?...

Why incremental load and ramping up the threads is considered a best practice?

I was looking into performance testing and wanted to ask why ramping up slowly and then running under max load and then slowly ramping down is considered a better paradigm .And test team spends a lot of time achieving a perfect graph for the same. Though its completly subjective but...

How to extract all the Id's value from the Json given below using Regular expression extractor or any other Extractor(Xpath, Beanshell etc)

[ { "id": 1, "name": "MetaOperationN1", "type": "Operation" }, { "id": 2, "name": "GreenOper2", "type": "Operation" }, { "id": 3, "name": "GreenOper4", "type": "Operation" }, { "id": 4, "name": "GreenOper5", "type": "Operation" }, { "id": 5, "name": "GreenOper6", "type": "Operation" }, { "id": 6, "name": "GreenOper7", "type": "Operation" }, {...

How to Print variable in aggregate report jmeter?

I want to pass variable to aggregate report to distinguish request .How to print/pass a variable in aggregate report jmeter?

Where is the request for a SOAP call stored in Jmeter

I am trying to print the SOAP Request into a file using BeanShell as i had to do some verifications. I am able to get the response for the SOAP call using String response = prev.getResponseDataAsString(); which can be printed to the file. Similarly what is the method that can...

JMeter variable scope in threads

I have a JMeter tests which does the following: It makes a GET request. The request returns some ID which is extracted by a Regular Expression Extractor and is set to a variable myId. Another GET request is made using this ID stored in myId. It is important that the...

How pass BeanShell param from one Thread Group to a Counter in another Thread Group

I need to pass a value from one Thread Group to another Thread Group, in particular I have to pass a value from BeanShell sampler to Counter. This is my BeanShell code: Counter.Calendar c = Calendar.getInstance(); long now = c.getTimeInMillis(); c.set(Calendar.HOUR_OF_DAY, 0); c.set(Calendar.MINUTE, 0); c.set(Calendar.SECOND, 0); c.set(Calendar.MILLISECOND, 0); long passed...