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
2
votes
1answer
19 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
1answer
219 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
3answers
207 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
1answer
825 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)')]"))....
1
vote
2answers
651 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" ...
2
votes
1answer
96 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 ...
1
vote
1answer
110 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 ...