You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Anil Gaur <an...@live.com> on 2022/05/19 14:58:12 UTC

Help for browser query string

Hello Team,

I am blocked in below logic.

When I hit the login button then a query string generated with multiple parameter values which are required to login in application.

I checked all the request but there is no parameter going . On Login click event its generated the below string.

Query String:- https://qa-identityservice.cimi.online/Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3DCIMI3%26redirect_uri%3Dhttps%253A%252F%252Fqa.cimi.online%252F%2523%252Fsignin-oidc%26response_type%3Dcode%26scope%3DCIMI3%2520openid%2520profile%2520email%26state%3Dff37eafbbff84ffabce6f086e8405cb6%26code_challenge%3DJG722Vh5J8YdWYOO8eXj9XzjcMbESq5T969q1EwPzWc%26c

In this query string Code_Challange and State are dynamic values which I need to capture.

Can someone help me here?


Regards,
Anil Gaur

Re: Help for browser query string

Posted by Antonio Gomes Rodrigues <ra...@gmail.com>.
You can use an extractor regex or Boundary extractor

For example :
6state%3Dff37eafbbff84ffabce6f086e8405cb6%26code_challenge%3DJG722Vh5J8YdWYOO8eXj9XzjcMbESq5T969q1EwPzWc%26c
<https://qa-identityservice.cimi.online/Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3DCIMI3%26redirect_uri%3Dhttps%253A%252F%252Fqa.cimi.online%252F%2523%252Fsignin-oidc%26response_type%3Dcode%26scope%3DCIMI3%2520openid%2520profile%2520email%26state%3Dff37eafbbff84ffabce6f086e8405cb6%26code_challenge%3DJG722Vh5J8YdWYOO8eXj9XzjcMbESq5T969q1EwPzWc%26c>

For state, you can use an Boundary extractor with left = state%3D and right
= %26code_challenge
You will capture the value ff37eafbbff84ffabce6f086e8405cb6
<https://qa-identityservice.cimi.online/Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3DCIMI3%26redirect_uri%3Dhttps%253A%252F%252Fqa.cimi.online%252F%2523%252Fsignin-oidc%26response_type%3Dcode%26scope%3DCIMI3%2520openid%2520profile%2520email%26state%3Dff37eafbbff84ffabce6f086e8405cb6%26code_challenge%3DJG722Vh5J8YdWYOO8eXj9XzjcMbESq5T969q1EwPzWc%26c>





Le jeu. 19 mai 2022 à 18:22, Anil Gaur <an...@live.com> a écrit :

> This method only captured static values. I need runtime values from query
> string.
>
>
> Regards,
> Anil
> ________________________________
> From: Antonio Gomes Rodrigues <ra...@gmail.com>
> Sent: Thursday, May 19, 2022 3:35 PM
> To: JMeter Users List <us...@jmeter.apache.org>
> Subject: Re: Help for browser query string
>
> Hi
>
> You can use an Extractor like a Boundary Extractor to capture your data in
> a variable
> In Extractor "field to check" select URL
>
> Le jeu. 19 mai 2022 à 16:58, Anil Gaur <an...@live.com> a écrit :
>
> > Hello Team,
> >
> > I am blocked in below logic.
> >
> > When I hit the login button then a query string generated with multiple
> > parameter values which are required to login in application.
> >
> > I checked all the request but there is no parameter going . On Login
> click
> > event its generated the below string.
> >
> > Query String:-
> >
> https://qa-identityservice.cimi.online/Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3DCIMI3%26redirect_uri%3Dhttps%253A%252F%252Fqa.cimi.online%252F%2523%252Fsignin-oidc%26response_type%3Dcode%26scope%3DCIMI3%2520openid%2520profile%2520email%26state%3Dff37eafbbff84ffabce6f086e8405cb6%26code_challenge%3DJG722Vh5J8YdWYOO8eXj9XzjcMbESq5T969q1EwPzWc%26c
> >
> > In this query string Code_Challange and State are dynamic values which I
> > need to capture.
> >
> > Can someone help me here?
> >
> >
> > Regards,
> > Anil Gaur
> >
>

Re: Help for browser query string

Posted by Anil Gaur <an...@live.com>.
This method only captured static values. I need runtime values from query string.


Regards,
Anil
________________________________
From: Antonio Gomes Rodrigues <ra...@gmail.com>
Sent: Thursday, May 19, 2022 3:35 PM
To: JMeter Users List <us...@jmeter.apache.org>
Subject: Re: Help for browser query string

Hi

You can use an Extractor like a Boundary Extractor to capture your data in
a variable
In Extractor "field to check" select URL

Le jeu. 19 mai 2022 à 16:58, Anil Gaur <an...@live.com> a écrit :

> Hello Team,
>
> I am blocked in below logic.
>
> When I hit the login button then a query string generated with multiple
> parameter values which are required to login in application.
>
> I checked all the request but there is no parameter going . On Login click
> event its generated the below string.
>
> Query String:-
> https://qa-identityservice.cimi.online/Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3DCIMI3%26redirect_uri%3Dhttps%253A%252F%252Fqa.cimi.online%252F%2523%252Fsignin-oidc%26response_type%3Dcode%26scope%3DCIMI3%2520openid%2520profile%2520email%26state%3Dff37eafbbff84ffabce6f086e8405cb6%26code_challenge%3DJG722Vh5J8YdWYOO8eXj9XzjcMbESq5T969q1EwPzWc%26c
>
> In this query string Code_Challange and State are dynamic values which I
> need to capture.
>
> Can someone help me here?
>
>
> Regards,
> Anil Gaur
>

Re: Help for browser query string

Posted by Antonio Gomes Rodrigues <ra...@gmail.com>.
Hi

You can use an Extractor like a Boundary Extractor to capture your data in
a variable
In Extractor "field to check" select URL

Le jeu. 19 mai 2022 à 16:58, Anil Gaur <an...@live.com> a écrit :

> Hello Team,
>
> I am blocked in below logic.
>
> When I hit the login button then a query string generated with multiple
> parameter values which are required to login in application.
>
> I checked all the request but there is no parameter going . On Login click
> event its generated the below string.
>
> Query String:-
> https://qa-identityservice.cimi.online/Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3DCIMI3%26redirect_uri%3Dhttps%253A%252F%252Fqa.cimi.online%252F%2523%252Fsignin-oidc%26response_type%3Dcode%26scope%3DCIMI3%2520openid%2520profile%2520email%26state%3Dff37eafbbff84ffabce6f086e8405cb6%26code_challenge%3DJG722Vh5J8YdWYOO8eXj9XzjcMbESq5T969q1EwPzWc%26c
>
> In this query string Code_Challange and State are dynamic values which I
> need to capture.
>
> Can someone help me here?
>
>
> Regards,
> Anil Gaur
>