JMETER - Extractor Regular Expression (regex)

-2

Good afternoon, I have the following difficulty in JMETER:

"presignedUrlRequest": " link "

I need to extract the entire link, but in 3 parts. 1 with just https. The second with fng-contratos-dev.s3.amazonaws.com. And the third from d29e66 ....

Could someone help?

Thank you!

    
asked by anonymous 22.08.2018 / 20:49

1 answer

1

Add a Regular Expression Extractor

Use the following setting in your regular expression puller.

Field to Check : URL

Name of Created Variable : Value

Regular Expression : (.+?):\/\/(.+?)\/(.+?)\?X-Amz

Template : $1$2$3$

Match no:  1

Thiswillextractall3requiredvaluesonasinglegoandsavethesevaluesinvariablesValue_g1,Value_g2,Value_g3

Youcanuse${Value_g1}/${Value_g2/Value_g3}toreplacevalues

MoreInformation

Regular Expression Extractors

    
23.08.2018 / 07:35