jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Schumacher <felix.schumac...@internetallee.de>
Subject Re: URL extracting from JMeter in Real time
Date Thu, 09 Nov 2017 09:59:07 GMT
Am 09.11.2017 um 10:56 schrieb Flavio Cysne:
> The provided URL have other 2 parameters: scope and id_token.
>
> You can't guarantee that access_token will be always the first parameter.
> But, I think, it will always come after the character #.
>
> #[.*]access_token=([^#&;"']*)
Why do you have [.*] in between # and access_token?

Regards,
  Felix
>
> This expression can be used to extract the other 2 parameters. Just change
> the parameter name in it.
>
> Hope it helps.
>
> Em 8 de nov de 2017 7:51 AM, "Srinivas Shenoy" <ts.shenoy@gmail.com>
> escreveu:
>
> Hi All,
>
> The unique token comes in a URL . I am supposed to read this and capture in
> a variable. I have added a regular expression extractor for URL. It is not
> working. Anyone knows about how to extract the URL using regular expression
> extractor. Left hand of the token has a format like
> https://applicationURL.com/ems-web-ui/#access_token=
> However Right hand is blank.
> For Ex: An unique token is given below
> https://applicationURL.com/#access_token=eyJ0eXAiOiJKV1QiLCJ
> 6aXAiOiJOT05FIiwia2lkIjoiYi9PNk92VnYxK3krV2dySDVVaTlXVGlvTHQ
> wPSIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiJzc2hlbm95IiwiYXVkaXRUcmF
> ja2luZ0lkIjoiZDRkOTgyYmUtMWI4Yy00M2IyLWI1MzYtOThmYmI2NWQxZDR
> kIiwiaXNzIjoiaHR0cHM6Ly9vcGVuYW1xYS53di5tZW50b3JnLmNvbTo0NDM
> vb3BlbmFtL29hdXRoMiIsInRva2VuTmFtZSI6ImFjY2Vzc190b2tlbiIsInR
> va2VuX3R5cGUiOiJCZWFyZXIiLCJhdXRoR3JhbnRJZCI6IjQzNzU2MTc3LWE
> 4OWItNDQ3MC05NmQ4LWI4ZDJlNmEyMjg5OSIsIm5vbmNlIjoiZjRBcWt5NmV
> UZ3NJaVlKblZ6am9ORFZ1ckU5YzNBazJJZ1BVR1FONiIsImF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sZVRpbWUiOjMwLCJn
>
> Thank You
>
> Regards
> Shenoy
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Mime
View raw message