sudheer reddy | 1 Feb 2010 05:56
Picon

help required for regular expression

Hi  All

 I need help for regular expression.

I got a response code  from one http sample  and using the regular
expression extractor ( post processor) the response code in html  is as
below . In the below code the VALUE ( which is highlighted in bold )
attribute will be changed for every http request , now i have to write a
regular expression for this value in order to use this value in other
requests .

Pls canone assist me in writing this regular expression for this

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">
<xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">
<BASE href="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">

<TITLE>
View
-

</TITLE>
<SCRIPT LANGUAGE="Javascript1.1" SRC="ext/pim/js/pim.js"></SCRIPT>
<LINK REL="stylesheet" TYPE="text/css" HREF="ext/pim/css/pim.css">
</HEAD>
<BASE href="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">

(Continue reading)

mahesh kumar | 1 Feb 2010 06:40
Picon

Re: help required for regular expression

Hi Sudheer,

I didn't find anything which is in bold.As of now I assumed that the name is
not changing(mentioned in red color) and it is constant then below is the
regular expression for extracting the value in the corresponding statement

INPUT\s+type=\"hidden\"\s+name=\"xxxxxx\"\s+value=\"(.*?)\"

---PMK
On Mon, Feb 1, 2010 at 10:26 AM, sudheer reddy <gsudheer.08 <at> gmail.com>wrote:

> Hi  All
>
>  I need help for regular expression.
>
> I got a response code  from one http sample  and using the regular
> expression extractor ( post processor) the response code in html  is as
> below . In the below code the VALUE ( which is highlighted in bold )
> attribute will be changed for every http request , now i have to write a
> regular expression for this value in order to use this value in other
> requests .
>
> Pls canone assist me in writing this regular expression for this
>
>
>
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2//EN">
> <HTML>
> <HEAD>
> <xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">
(Continue reading)

jeanlouis.pasturel | 1 Feb 2010 08:07

RE: help required for regular expression

 humm i think it is the *VALUE* that the OP wants to match ( more below in
the post).
But the principle is the same, getting the correct group

Cordialement / Best regards

Jean-Louis Pasturel

-----Message d'origine-----
De : mahesh kumar [mailto:pmkumar <at> gmail.com] 
Envoyé : lundi 1 février 2010 06:40
À : JMeter Users List
Objet : Re: help required for regular expression

Hi Sudheer,

I didn't find anything which is in bold.As of now I assumed that the name is
not changing(mentioned in red color) and it is constant then below is the
regular expression for extracting the value in the corresponding statement

INPUT\s+type=\"hidden\"\s+name=\"xxxxxx\"\s+value=\"(.*?)\"

---PMK
On Mon, Feb 1, 2010 at 10:26 AM, sudheer reddy <gsudheer.08 <at> gmail.com>wrote:

> Hi  All
>
>  I need help for regular expression.
>
> I got a response code  from one http sample  and using the regular 
(Continue reading)

sudheer reddy | 1 Feb 2010 08:54
Picon

Re: help required for regular expression

Hi Mahesh

Thanks for your reply .

But am asking  foe the attribute which is in the bottom of the code i made
it bold .

i tried out with this expression but its not working

<TD CLASS="attribut-value" style="width: 17%;">+\W+(\D.*)

can anyone pls help me out of this problem

thanks & regards

Sudheer

On Mon, Feb 1, 2010 at 11:10 AM, mahesh kumar <pmkumar <at> gmail.com> wrote:

> Hi Sudheer,
>
> I didn't find anything which is in bold.As of now I assumed that the name
> is
> not changing(mentioned in red color) and it is constant then below is the
> regular expression for extracting the value in the corresponding statement
>
> INPUT\s+type=\"hidden\"\s+name=\"xxxxxx\"\s+value=\"(.*?)\"
>
> ---PMK
> On Mon, Feb 1, 2010 at 10:26 AM, sudheer reddy <gsudheer.08 <at> gmail.com
(Continue reading)

jeanlouis.pasturel | 1 Feb 2010 09:52

RE: help required for regular expression

 To get more help, you must give to us an example of *VALUE* 

Cordialement / Best regards

Jean-Louis Pasturel

-----Message d'origine-----
De : sudheer reddy [mailto:gsudheer.08 <at> gmail.com] 
Envoyé : lundi 1 février 2010 08:54
À : JMeter Users List
Objet : Re: help required for regular expression

Hi Mahesh

Thanks for your reply .

But am asking  foe the attribute which is in the bottom of the code i made
it bold .

i tried out with this expression but its not working

<TD CLASS="attribut-value" style="width: 17%;">+\W+(\D.*)

can anyone pls help me out of this problem

thanks & regards

Sudheer

On Mon, Feb 1, 2010 at 11:10 AM, mahesh kumar <pmkumar <at> gmail.com> wrote:
(Continue reading)

Sangem, Omkaram | 1 Feb 2010 16:04

Protocol https with cetificate exception

I have a problem to test with https protocol.
I am able to test successfully with the HTTP server without SSL.
Where as same tests with different environment having the SSL are failing.
Can you please suggest me how to add exceptions, in case of Firefox/IE browser, I can add exceptions to
certificate and proceed with HTTPS.

Thanks
Omkar
sebb | 1 Feb 2010 16:09
Picon

Re: Protocol https with cetificate exception

On 01/02/2010, Sangem, Omkaram <omkaram.sangem <at> etrade.com> wrote:
> I have a problem to test with https protocol.
>  I am able to test successfully with the HTTP server without SSL.
>  Where as same tests with different environment having the SSL are failing.

In what way are they failing?
What version of JMeter?
What version of Java?

>  Can you please suggest me how to add exceptions, in case of Firefox/IE browser, I can add exceptions to
certificate and proceed with HTTPS.

Not necessary, as JMeter allows all certificates.

>  Thanks
>  Omkar
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe <at> jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help <at> jakarta.apache.org
>
>
Sangem, Omkaram | 1 Feb 2010 17:30

RE: Protocol https with cetificate exception

I am using  Jmeter Version 2.3.4 r785646.
Version 2.3.4 r785646
java.version=1.6.0_03
java.vm.name=Java HotSpot(TM) Client VM
os.name=Windows XP
os.arch=x86
os.version=5.1

Thanks
Omkar

-----Original Message-----
From: sebb [mailto:sebbaz <at> gmail.com]
Sent: Monday, February 01, 2010 10:09 AM
To: JMeter Users List
Subject: Re: Protocol https with cetificate exception

On 01/02/2010, Sangem, Omkaram <omkaram.sangem <at> etrade.com> wrote:
> I have a problem to test with https protocol.
>  I am able to test successfully with the HTTP server without SSL.
>  Where as same tests with different environment having the SSL are failing.

In what way are they failing?
What version of JMeter?
What version of Java?

>  Can you please suggest me how to add exceptions, in case of Firefox/IE browser, I can add exceptions to
certificate and proceed with HTTPS.

Not necessary, as JMeter allows all certificates.
(Continue reading)

sebb | 1 Feb 2010 17:37
Picon

Re: Protocol https with cetificate exception

On 01/02/2010, Sangem, Omkaram <omkaram.sangem <at> etrade.com> wrote:
> I am using  Jmeter Version 2.3.4 r785646.
>  Version 2.3.4 r785646
>  java.version=1.6.0_03
>  java.vm.name=Java HotSpot(TM) Client VM
>  os.name=Windows XP
>  os.arch=x86
>  os.version=5.1

OK, but you have not answered the most important question:

>  In what way are they failing?

>  Thanks
>  Omkar
>
>
>  -----Original Message-----
>  From: sebb [mailto:sebbaz <at> gmail.com]
>  Sent: Monday, February 01, 2010 10:09 AM
>  To: JMeter Users List
>  Subject: Re: Protocol https with cetificate exception
>
>  On 01/02/2010, Sangem, Omkaram <omkaram.sangem <at> etrade.com> wrote:
>  > I have a problem to test with https protocol.
>  >  I am able to test successfully with the HTTP server without SSL.
>  >  Where as same tests with different environment having the SSL are failing.
>
>  In what way are they failing?
>  What version of JMeter?
(Continue reading)

Sangem, Omkaram | 1 Feb 2010 17:46

RE: Protocol https with cetificate exception

I am sorry, Here are the details.

I am using WebService(SOAP) Request.

It is printing this one in the log and showing Error as 100% in Summary Report,

2010/02/01 11:43:50 WARN  - jmeter.protocol.http.sampler.WebServiceSampler: [SOAPException:
faultCode=SOAP-ENV:Client; msg=Error opening socket: javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification
path to requested target; targetException=java.lang.IllegalArgumentException: Error opening
socket: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX
path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to
find valid certification path to requested target]

Thanks Again
Omkar

-----Original Message-----
From: sebb [mailto:sebbaz <at> gmail.com]
Sent: Monday, February 01, 2010 11:38 AM
To: JMeter Users List
Subject: Re: Protocol https with cetificate exception

On 01/02/2010, Sangem, Omkaram <omkaram.sangem <at> etrade.com> wrote:
> I am using  Jmeter Version 2.3.4 r785646.
>  Version 2.3.4 r785646
>  java.version=1.6.0_03
>  java.vm.name=Java HotSpot(TM) Client VM  os.name=Windows XP
>  os.arch=x86
(Continue reading)


Gmane