Questions tagged [regex]

Regex is short for regular expression - it is a string of characters that defines a search pattern used to validate against bodies of text.

Filter by
Sorted by
Tagged with
1 vote
1 answer
54 views

Passing variable created from Regular Expression Extractor to HTTP Cookie Manager does not work in JMeter

I've added a regular expression extractor as a child element of the HTTP request From the regular expression extractor I've created a new variable called variabletest. Name of created variable: ...
  • 11
1 vote
2 answers
220 views

Need help writing a regular expression to extract data from response in JMeter

I need to extract an ID from the response of an API call in JMeter. The response looks something like this: "sessionId":"Edhgjhsbdjkkmsdsd-dlkmsdl.Mkhsdiufhskjndjsbsbd.iusdhfjsnkdnsd&...
0 votes
0 answers
61 views

Can I use regex pattern matching for a CSS selector in Appium mobile automation?

I am trying to find a set of iOS UI elements in my automation script. The framework is Appium & WebdriverIO based. I was able to determine that the correct regex pattern I am searching for is this:...
  • 180
3 votes
1 answer
441 views

How to extract a token from form html using regex

I would like to know how I use the regex in Jmeter to capture tokens from HTML. I have created a regex but it's not getting what I required. My HTML code with the token is : <html><head>&...
0 votes
1 answer
387 views

Variables in jsonpath expression

I have tested this Json extractor - JSON path expression to extract the GET response's model_name which value matched previous POST data. POST data: "model_name": "Model-Test-${variable}...
2 votes
1 answer
3k views

Unable to get Response Header Cookie and set it to another Request Body in Jmeter script

Not able to pass Response Header (Set-Cookie value) to another request Body in order to place a reservation. To place a reservation i need to get HoldReservation cookie from Reservedate API but when ...
1 vote
1 answer
2k views

Handling a dynamic refresh token on JMeter

I have recorded JMeter script for a website. One of the HTTP request is the below screenshot where a refresh_token is already set as a hard-coded parameter when I recorded the script first time. This ...
1 vote
3 answers
451 views

JMeter not accepting Valid Regex, causing nothing to be posted

I'd like to prefix this question with the fact that i'm a novice when it comes to Jmeter and Regex. I have created a test plan for an ASP .Net application, which consists of a GET request, with a ...
1 vote
1 answer
1k views

How to construct a dynamic xpath with regex pattern [duplicate]

Pattern --> sometext + '(' + F|R|O|H|C + ')' String toolTipTextLabel = driver.findElement(By.xpath("//span[contains(@class,'chartTooltip-label')]/descendant::bdi[contains(text(),'(F|R|O|H|C)')]"))....
  • 11
1 vote
2 answers
1k views

How to extract dynamic values with jmeter Regular expression extractor?

Please let me know how to fetch the ID from the html using a regular expression & find the below expression i have used but am getting error response only. Response Body: "input type="hidden" ...
  • 19
2 votes
1 answer
193 views

getText() which is in between <div> </div> tag?

Get text which are in between tags DOM <div id="div_ResultMessage" class="AlertmsgDiv"> <div id="lblSuccessMessage" class="alert alert-success alert-dismissable"> <div ...
  • 276
1 vote
1 answer
114 views

How to write regular expression for given text [closed]

I have below text content: trusted/75XqScyKRbuRYEATFl2cWg==:IUMN4RxUoWGSFvJMTJ69TkaA/t Where I've to extract only 75XqScyKRbuRYEATFl2cWg==:IUMN4RxUoWGSFvJMTJ69TkaA text. Someone please help me to ...