Maybe It can help you, I used:
HTTP URL Re-writing modifier
Session argument Name: jsessionid
Path Extension (use ";" as separator) checked
And after in the HTTP request:
Send Parameter with the request:
Name : org.apache.struts.taglib.html.TOKEN
Value: ${__regexFunction(<input type="hidden"
name="org.apache.struts.taglib.html.TOKEN" value="(.*)">,$1$,1,,null,token)}
And in the other HTTP request:
Name: org.apache.struts.taglib.html.TOKEN
Value: ${token}
Elisabeth
-----Original Message-----
From: Mitch K. White [mailto:[EMAIL PROTECTED]
Sent: 25 January 2006 23:50
To: JMeter Users List
Subject: RE: Need help on Regular Expression
Have you used the Preprocessor : User Parameters
On the 2nd request? This needs to reference the variable name "token" also.
Mitchell White
Atone Inc
2880 Sunrise Blvd suite 121
Rancho Cordova, CA 95742
Direct 916.635.8343
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 24, 2006 11:20 PM
To: [email protected]
Subject: AW: Need help on Regular Expression
Hi,
How can I transport a struts-token from the first to the second request.
I tried to use Regular Expression but it doesn´t work.
Thats the result from the first Request:
<form name="Form" method="post"
action="start.do;jsessionid=DXmqIlM2J22f01AY2n55Dp0j2UO1kH5qgySnUBZkE8HqUT9C
Ge8q!-487074956"><input type="hidden"
name="org.apache.struts.taglib.html.TOKEN"
value="a153f04fd391eb629a7a905ba976c65e">
This what I do:
Regular Expression Extractor
Name: token
Expression:(<input type="hidden" name="org.apache.struts.taglib.html.TOKEN"
value="([a-f0-9]*)">)
Template : $1$
Match No. 1
HTTP Request:
Send parameters with request:
org.apache.struts.taglib.html.TOKEN : ${token}
What is the mistake ?
Regards Torsten
-----Ursprüngliche Nachricht-----
Von: Sivakumar V. ECS-Chennai [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 25. Januar 2006 07:18
An: 'JMeter Users List'
Betreff: RE: Need help on Regular Expression
Use the regular expression (value="(....)">)
And use $1$ as the template. Which will fetch the inner group (....)
Regards,
Siva
-----Original Message-----
From: Rupendra Butola [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 25, 2006 11:32 AM
To: JMeter Users List
Subject: Need help on Regular Expression
Hi All,
Need some help on regular expression.
This is the output I receive in one of steps in my URL and I want to use
"3911" in rest of my url.
<input name="msgId" type="hidden" value="3911">
Can you also please provide me the steps to be executed in jmeter to achieve
this.
Any help on this will be appreciated.
Regards,
Rupendrasingh
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Disclaimer:
This message and any attachment(s) contained here are information that is
confidential, proprietary to HCL Technologies and its customers, privileged
or otherwise protected by law. The information is solely intended for the
individual or the entity it is addressed to. If you are not the intended
recipient of this message, you are not authorized to read, forward, print,
retain, copy or disseminate this message or any part of it. If you have
received this e-mail in error, please notify the sender immediately by
return e-mail and delete it from your computer.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
******************************************************************
Bitte nutzen Sie die E-Mail-Verbindung mit uns ausschliesslich zum
Informationsaustausch. Wir koennen auf diesem Wege keine
rechtsgeschaeftlichen Erklaerungen (Auftraege etc.) entgegennehmen.
Der Inhalt dieser Nachricht ist vertraulich und nur fuer den angegebenen
Empfaenger bestimmt. Jede Form der Kenntnisnahme oder Weitergabe
durch Dritte ist unzulaessig. Sollte diese Nachricht nicht fur Sie bestimmt
sein, so bitten wir Sie, sich mit uns per E-Mail oder telefonisch in
Verbindung zu setzen.
Please use your E-mail connection with us exclusively for the exchange
of information. We do not accept legally binding declarations (orders,
etc.) by this means of communication. The contents of this message is
confidential and intended only for the recipient indicated. Taking
notice of this message or disclosure by third parties is not
permitted. In the event that this message is not intended for you,
please contact us via E-mail or phone.
******************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]