You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Nikhil Joshi <ni...@lntinfotech.com> on 2006/03/01 07:34:21 UTC
Extracting a number from Html response and storing in another file.
i am using jmeter 2.1.1. I am using added a "View Results Tree" listener.
In that i ma getting response in Html format.
now i want a FETCH pirticular number from html file and store it into a text
file.
e.g : Lets say following is a rsponse html
<body>
...............
alert("Client number is 7000");
...............
</body>
i want to fetch number 7000 from response and store it into a text file.
can anybody put a light on this problem....?
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Extracting a number from Html response and storing in another file.
Posted by sebb <se...@gmail.com>.
The Regex Extractor can extract it.
You can then use a Java Sampler to generate a Sample; attach a Simple
DataWriter to the Java Sampler so the sample is written to a file.
Otherwise you will need to write some Java code.
S.
On 01/03/06, Nikhil Joshi <ni...@lntinfotech.com> wrote:
>
> i am using jmeter 2.1.1. I am using added a "View Results Tree" listener.
> In that i ma getting response in Html format.
> now i want a FETCH pirticular number from html file and store it into a text
> file.
>
> e.g : Lets say following is a rsponse html
>
> <body>
> ...............
> alert("Client number is 7000");
> ...............
> </body>
>
> i want to fetch number 7000 from response and store it into a text file.
>
> can anybody put a light on this problem....?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org