jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niraj <niraj.khatm...@gmail.com>
Subject Re: Regular expression extraction
Date Fri, 06 Jul 2012 13:50:35 GMT
Hey  Flávio,

It works sir. You are really like a god to me. You saved me from coming to
office on weekend.

I am really thankful to you. Once again you rocks.

Thanks a lot,
Niraj



On Fri, Jul 6, 2012 at 7:06 PM, Flavio Cysne <flaviocysne@gmail.com> wrote:

> Niraj,
>
> If you are using an HTTP Request and ${SAMLart} is a parameter (name or
> value), you could change this
>
> AAQAALMcsRYkKm5hGFT+negwZpYrTeF8${SAMLart}
>
> to this
>
> ${SAMLart}
>
> You'll have to
>
>     1. modify the Regex to \?RelayState=\w+&SAMLart=([%a-zA-Z0-9]+)%3D
>     2. Uncheck "Codify?" column of the row where ${SAMLart} is used
>
> Hope it helps you.
> Flávio Cysne
>
> 2012/7/6 Niraj <niraj.khatmode@gmail.com>
>
> > I am really thankful that u r taking time to resolve my issue.
> >
> > when my request is
> >
> >
> https://test/sp/ACS.saml2?RelayState=x2PbRkt9M5xNpf8IYzGkPNCgdxH64S&SAMLart=AAQAALMcsRYkKm5hGFT%2BnegwZpYrTeF8TE0EtzDymZj3GRZeuR3N%2BhaxAGU%3D
> >
> >
> > And i extract using rex ex : TE0EtzDymZj3GRZeuR3N%2BhaxAGU, when i passed
> > this to next request i get error saying
> >
> > HTTP/1.1 500 Error parsing artifact
> > (AAQAALMcsRYkKm5hGFT+negwZpYrTeF8TE0EtzDymZj3GRZeuR3N%2BhaxAGU) -
> expected
> > length of 44 bytes but was 45
> >
> > When my request URL is
> >
> >
> >
> https://180.179.206.165:9031/sp/ACS.saml2?RelayState=IAEfw9x2iCyvVjIxvy7sdTBJOlmiZU&SAMLart=AAQAALMcsRYkKm5hGFT%2BnegwZpYrTeF8uNs19zyyK1W3dKoQJkPh7xjaAMo%3D
> >
> > I extracted : 8uNs19zyyK1W3dKoQJkPh7xjaAM
> >
> > Jmeter passed the test without any issue.
> >
> > This is how i have use extracted value in next request :
> >
> > AAQAALMcsRYkKm5hGFT+negwZpYrTeF8${SAMLart}
> >
> > Now please let me wht i am doing wrong.
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message