Thanks a lot guys, we are able to resolve this issue.
https://regex101.com/r/eNSsrl/1 - Link helps us very much. Thanks, Vamsi. ________________________________ From: jmeter tea <[email protected]> Sent: 13 November 2017 13:06:12 To: JMeter Users List Subject: Re: Help required in regular expression in Jmeter You can use the Regular Expression: login-actions\/([^&]*) See https://regex101.com/r/eNSsrl/1 On Mon, Nov 13, 2017 at 9:17 AM, Vamsi Krishna Maddali < [email protected]> wrote: > Hi All, > > > Required your help in resloving below issue: > > > Issue:Unable to capture the authenticate?code value which is generated > while logging in to a webpage, authenticate?code value which is being > generated is a dynamic value and not following a unique pattarn as in a > regular expression kind. > > > What i am trying to do here is capturing the authenticate?code value into > a variable named “token” by using the “Regular Expression Extractor” and > use that variable in the login script which is used to access the webpage. > But the authenticate?code is not being captured in the script and i am not > able to use in the login script. > > > My guess is that the Regular Expression Extractor which i am using may not > be the correct one, so couldn't capture the authenticate?code value . > > > Can anyone help me in finding a soluion or any other method to handel this > situation. > > > Below is the HTML tag in webpage: > > > <form id="kc-form-login" class="" action="http://localhost:8080/ > auth/realms/master/login-actions/authenticate?code=u22yiDCDtV-jm3_ > 1w2NP6HykFCTtePlgADFhFa17U3s&execution=570368df-fa0b-4bd1- > 9964-251d1448718e&client_id=security-admin-console" method="post"> > > > in the below , we are trying to capture > “authenticate?code=u22yiDCDtV-jm3_1w2NP6HykFCTtePlgADFhFa17U3s” > value and need to send as a parameter in next “Sample Controller”. > > > > > > Thanks, > > Vamsi >
