Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
636 views
in Technique[技术] by (71.8m points)

regex - Extracting value from HTML Responce using Regular expression in JMETER?

I am getting response from Jmeter like this:

<input type="hidden" id="queueItemId" name="queueItemId" value="3256"/>

I wanted to get value 3256 from this and store it in a variable. Then i can use this variable further use like ${variable}. For this i am using RegularExpressionExtractor in scope of the Sampler.

Please give me the regular expression to extract this value.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Try something like:

encounterId=([0-9]+)

and use group 1 as the result.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...