All Questions

Tagged with
Filter by
Sorted by
Tagged with
6 votes
2 answers
14k views

How to get access token with JMeter JSON Extractor and use it?

I'm trying to extract access token from the body response and use it in Header Manager for authorization. The response of the first request is Response Then I use regular expression for extracting ...
Andrew Chichick's user avatar
4 votes
1 answer
9k views

JMeter JSON Extractor, extract all values of one key in a string

Using Apache JMeter ver 3.2 r1790745 (the latest) to test a JSON Web Service, the response is like: [ { "id" : 3, "description" : "Back", "name" : "back" }, { "id" : 1, "description" : ...
brewphone's user avatar
  • 1,326
4 votes
3 answers
4k views

Jmeter Regular Expression Extractor find ItemID in xml

I am new to jmeter; I hope that I can describe my problem to you well enough. I am trying to use regex to extract an ItemID attribute from an xml element. Which I then use in another request. This is ...
Explicitsoul's user avatar
2 votes
4 answers
4k views

jmeter grab value from response data

I have a question about grabbing a certain value from the html response data in Jmeter. I've been trying both regular expression and xpath extractor(see below) but having no luck. This is part of the ...
stenwolf's user avatar
  • 311
2 votes
2 answers
2k views

Regular Expression Extractor Jmeter - I want to send email for 404 response codes

I am writing a test case which will hit a URLs and send email if response code is 404. Request is going well and Response also coming but I am stuck at Regular Expression Extractor.Sample Request ...
husnain's user avatar
  • 153
2 votes
1 answer
5k views

How to use variable extracted in JSON path extractor for further steps of scenario?

I have created one scenario in Jmeter where i am loging in. (For this scenario i am using REST APIs) For this i took one "HTTP Header Manager" , "HTTP Request Sampler". After login i am extracting ...
abhishek's user avatar
  • 335
2 votes
1 answer
196 views

jmeter: I want to extract 2 values from 2 different json objects where 1 json object will validate my condition & other value I want to extract

My JSON Response is : { "results": [ { "attributes": [ { "format": "internal", "name": "resourceid", "type": "STRING", "value": "...
Shraddha Shelke's user avatar
2 votes
1 answer
826 views

How to use variable in extractor with unescaped body?

I have a JMeter user variable x = abc and an extractor from a response, with regex = abc\d, using the unescaped body option. If I try to change the regex to ${x}\d, it doesn't work, however, if I ...
user998692's user avatar
  • 5,202
1 vote
3 answers
2k views

JMeter JSON Path Extractor with input variable

Is it possible to use input variables in the JSON Path Extractor expression? I tried expression $.[${someInputVariable}].name, but it didn't work. Data format: [ {name=a}, {name=b}, {name=c} ] ...
Bernie Lenz's user avatar
  • 2,047
1 vote
1 answer
93 views

Jmeter regular extractor default values when there are two or more templates

How to pass default values to Jmeter regular extractor when there are two or more templates. In the screenshot below, I like to set the values for Code_Id_article_g1=""g1_default" and ...
Ashish18's user avatar
1 vote
2 answers
949 views

Use XPath in JMeter to get attribute value

Below is a sample response from JMeter tool. <input name="requestId" type="hidden" value="-1859748216"/> I try the following XPath //input[@name='requestId'], but ...
Celso's user avatar
  • 13
1 vote
1 answer
472 views

Regular expression - skip characters in jMeter testing

I have the below regular expression which retrieves me all characters begins with (state%3)((?:(?!#).)*) I want to ignore the state%3. I have tried all kinds of lookback but nothing seems to work ...
Shankar's user avatar
  • 157
1 vote
1 answer
79 views

JMeter: Shows "Object Moved Here", though value is extracted using Regular Expression Extractor

I am capturing token value using Regular Expression Extractor, still I can see "Object moved to here." in response data. Below are the details: Regular Expression: name="__RequestVerificationToken"...
Anonymous's user avatar
  • 868
1 vote
2 answers
537 views

How to run for each loop on value extracted from regular expression extractor

Problem Statement: in my API response, I am getting same set of xml tag repeated multiple times but with different values of the underlying tags which are also repeating across xml response. Also ...
vsingh's user avatar
  • 135
1 vote
1 answer
1k views

Jmeter json path extractor - How to Remove String

I have a problema with the next point: { "id":"3be62315-cd79-4e13-9536-0ee496e72184;1.0", "objectType":"DOCUMENT", "metadata": { "gdoc:filePath":null, "gdoc:filename":...
Samuel's user avatar
  • 13
0 votes
3 answers
776 views

JMeter - Extract value from the variable having JSON data

I am getting following response in one GET API call. { "id": 78929, "created": "04-12-2021 02:37:52", "modified": "04-12-2021 02:37:52", "name": "Applebee", "url": "https://applebee-2....
Prashant Vadher's user avatar
0 votes
1 answer
2k views

Jmeter Json Extractor: JSONPath Expression works on evaluators but not inside jmeter?

I'm facing issue with a jsonpath to extract element from json. Here is an example of the json: [ { "idA":"104", "idB":"2941", "idC&...
BenDev's user avatar
  • 369
0 votes
2 answers
1k views

JMeter Extract Redirected Request Body URL

GET https://www.example/a/resource1?id=24 - I have this URL This gets redirected to https://www.example/a/resource1-New-York - I need this URL -- This is how it looks like in the View Tree I ...
Sandeep Sharma's user avatar
0 votes
1 answer
624 views

Cannot install JMeter's JSON Path Extractor Plugin

I cannot install JSON Path Extractor Plugin from Plugin manager nor manually. I saw this answer but I cannot find the plugin by name using plugin manager and the same here https://jmeter-plugins.org/...
eeadev's user avatar
  • 3,722
0 votes
1 answer
973 views

Getting oauth token using Jmeter xpath extractor

What should be the Xpath query if I want to extract the value for access token, ie 93ee29b4-74dc-4uu7-8e10-6eac6845511b from below http response. I tried using the Xpath extractor with different xpath ...
Anand's user avatar
  • 15
0 votes
1 answer
61 views

How can i extract the order id from below stringy json in jmeter?

How to extract the order id from below code {"status": "OK", "data": {"ExecutionComplete": true, "Result": "{\"status\": \"OK\&...
Muthu's user avatar
  • 33
0 votes
2 answers
146 views

Jmeter - JSON Extractor - Large numbers erroring

Hope someone can help me :) I have the response json below : "endValue":{"amount":12515920.97,"currencyCode":"EUR"} and I'm using the JSON extractor to ...
AnaBF's user avatar
  • 3
0 votes
2 answers
72 views

How to extract the "ZTlhMDNhOGVkZV8xNTY3Mjk3MjAw" value from the respective response in JMeter? This value "ZTlhMDNhOGVkZV8xNTY3Mjk3MjAw" is dynamic

Response: { "service_name": "signup", "message": "Sign Up has been done successfully", "global_error": "", "error": [], "data": { "session_key": "8f29d7c93e7089841208e94a7d98fc22", "...
C_J's user avatar
  • 9
0 votes
1 answer
2k views

Extracting values from JSON with top level array using Jmeter JSON Extractor

In my JMeter test plan, I have a sampler which returns the list of authors and their books in JSON format. I would like get the id of all authors only. That is, In this case, I should get [1,2,3] in a ...
JSDeveloper's user avatar
0 votes
2 answers
10k views

Jmeter Retry Request if failed or ResponseCode not equal to 200

I have a CSV File with hundreds of records which I am using in the HTTP Sampler with Multiple Threads now sometime or multiple threads returns an error which I am OK but I want to retry in case we don'...
Sandeep Sharma's user avatar
0 votes
3 answers
1k views

Jmeter JSON Extractor with one node empty

I have a JSON Response like this `{ "data": [ { "id": "1", "type": "status", "created_time": "2010-08-02T22:27:44+0000", "updated_time": "2010-08-02T22:...
Sandeep Sharma's user avatar
0 votes
1 answer
404 views

JMeter -XPath2 Extractor not working as XPath

I tried to use JMeter recommendation to move to XPath2 over XPath Extractor Since JMeter 5.0, you should use XPath2 Extractor as it provides better and easier namespace management, better ...
Ori Marko's user avatar
  • 57.5k
0 votes
1 answer
974 views

In JMeter when I try to pass a value using JSON Extractor only the default value is passed

My JMeter script seems to only want to pass the default value from the JSON Extractor to the next call. I think the issue maybe with my expression. Response JSON looks like this: {"...
Bob Small's user avatar
  • 123
0 votes
2 answers
700 views

JMeter - Extract Form's action attribute using Regular Expression Extractor

In JMeter, using a post processor Regular Expression Extractor, i want to extract the form's action attribute. What regular expression should i use?
ZiggY's user avatar
  • 111
0 votes
2 answers
732 views

JMeter repeat Regular Expression extractor for all requests

I have a JMeter script that goes through a bunch of requests, each being different, GETs, POSTs and so on... Each request returns a custom header from the server that has some numeric values in it. ...
Ralph's user avatar
  • 1,558
0 votes
1 answer
4k views

How to extract JDBC Request response?

My JDBC request response is as below, request_token create_date Vve5vyD42ZPr5ssTIduzy1l6cvb/hDPaCMXnF8cFcpaCfdRMvNChB43I+JSgmgvy2owklXPRGvIVolDhb12lU2dIXko6ajlqyKoh3RjhPYo= 2015-02-25 18:56:00.0 ...
Amit dange's user avatar
0 votes
1 answer
901 views

How to Fetch or extract value from Div tag using Jmeter

I want to fetch OTP value(123456) from Div tag, as it changes every time. How can i do this in Jmeter? I have some idea that, it can done by xpath extractor & reguler expression..but doesn'...
TRILOKI Gupta's user avatar
0 votes
2 answers
4k views

JMeter XPath Extractor Issue

I am trying to retrieve data from below XML but all the options i tried are giving me null value. Can someone please help!!! <?xml version='1.0' encoding='UTF-8'?> <S:Envelope xmlns:S="http:...
Akshay's user avatar
  • 669
0 votes
0 answers
8 views

JMETER Regular Expression Extracto. How can i get the specific extractor using the response i get below

Im not sure why the regexp extractor gives me a 'null' value Response GET http://t1vm-esource01/eSourceUAT/esoa%20printing/Reports/soa.ashx?docIndex=null&mastKey=SF8962 Heres my regular expression:...
Von Prejillana's user avatar
0 votes
1 answer
122 views

I cannot pass my bearer token onto proceeding requests in jmeter

I have this test plan where I recorded my login via HTTP(S) Test Script Recorder in JMeter. It works just fine for the recorded user. But when I tried to change the user info it won't work. Here's my ...
mrvnrfm's user avatar
0 votes
1 answer
35 views

How to extract 1 value from multiple JSON bodies in JMeter JSON Extractor?

Hope all is well with you guys. In JMeter, I have a thread group to add items to cart for 2 users which results in 2 responses with 2 different bodies and different Cart IDs. What I want is to extract ...
Mohammad Wadi's user avatar
0 votes
1 answer
37 views

trying to pass the value (which is extracted from json path extractor) to the next http request

I have extracted 10 values from a Json path extractor, naming device_1,device_2,device_3 to device_10. I am able to see these 10 values in debug sampler and now i want to pass on these value to the ...
khushbu's user avatar
0 votes
1 answer
278 views

How to identify the specific true or false value from json assertion using jmeter?

The requirement is we have to identify "elements" and then check if its true or false. { "first": { "second": [ { "element": 1, "...
Test's user avatar
  • 49
0 votes
1 answer
49 views

Jmeter Extractor to recover string into a file

I would like to know if someone knows the solution to recover a string into a file with Jmeter (the string could change each time into the file then is not static). I have a file like this: device-...
Leandro P's user avatar
0 votes
1 answer
2k views

How to extract nested elements in JSON response using JSON extractor in JMeter

I would like to extract an element based on a condition inside a nested JSON response. Using the widely searched example below, I would like to extract the storeid of all books authored by "Foo ...
achan's user avatar
  • 1
0 votes
1 answer
137 views

How to send authorization code from 1 API to another API using Regular Expression Extractor in Jmeter

I have an API name loginUser, which generates the authorization Token, that is to be passed in other subsequent APIs. Below is the response:- HTTP/1.1 200 OK Date: Sat, 10 Nov 2018 07:08:45 ...
shank's user avatar
  • 3
0 votes
0 answers
71 views

Need to get the xpath for tags in the below xml [duplicate]

<?xml version="1.0" encoding="UTF-8"?> <OutputParameters xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/sp/SearchBPDBService" xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/" xmlns:ns0="...
ILG's user avatar
  • 1
0 votes
1 answer
671 views

Using JSON extractor to extract values from the response

I have 2 requests. In one request I have used the random text generator and generated some random string and passed that to a variable. After that a new record is created with than random name and ...
rutujit diwate's user avatar
0 votes
1 answer
568 views

Jmeter - Extract id value from url with xpath

I've the following URL https://x.x.x.x/x/continue?processId=1234567&formAction=register I need to extract the proccessId to use in the following request, but in JMeter with XPATH extractor value ...
Albert's user avatar
  • 1
0 votes
0 answers
288 views

JSON Extractor : Extract from Sampler Result and from response and use in another HTTP request

I am new to JMeter and trying to extract the ApplicationCookie from Sampler Result, which looks like below .AspNet.ApplicationCookie=j6rRWJLR44frKxJn3skUv-...
Jaydev's user avatar
  • 21
0 votes
1 answer
766 views

In jmeter : how to extract values from two different json response and use that extracted values as a parameter for new http request

In jmeter: I’m using two http requests in one thread group, so I’m getting two response from those http requests. I need ‘member id’ from one response and some string(digest) from other response, in ...
Kruti's user avatar
  • 1
0 votes
0 answers
146 views

Jmeter response search

We have a html 12345 I want to extract 12345 through CSS/JQuery and tried the following . $("#ContentPlaceHolder1_WinLabel").html() But it is not working in jmeter and but and able to get the value ...
user3702620's user avatar
0 votes
2 answers
939 views

jmeter variable can not be referenced as expected

I have a problem with my Test Plan. If I add User Defined Variable, let's say csrftoken and assign NOT_INITIALIZED to it in User Defined Variables config element, it is passed to http request where it ...
hdjur_jcv's user avatar
  • 726
0 votes
1 answer
72 views

Json extractor make HTTP request stop

After i installed jmeter component from link [enter link description here][1][1]: https://github.com/ATLANTBH/jmeter-components, i create HTTP request to login and use json extractor to get access ...
Luasg's user avatar
  • 93
0 votes
1 answer
793 views

How to in JMeter use regular expression extractor to fill request in loop

I've got simple test plan: Jdbs Conection JDBC request For Each Loop on jdbc response |-Regular Expression Extractor (Post processor) |-Soap Request where I need extracted value from Regular ...
user2420602's user avatar