You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by tiffany <ti...@yahoo.ca> on 2007/05/03 21:46:08 UTC

how to get value from HTML

Hi,

I could see a response data(HTML format) from my request, how can I get the
value from it?

I need to get the value of the productID and it looks like  
name="productID" value="10" in the HTML.

Any idea?

Thanks,
  Tiffany
-- 
View this message in context: http://www.nabble.com/how-to-get-value-from-HTML-tf3688549.html#a10311887
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: how to get value from HTML

Posted by chris <hi...@gmx.at>.
use regex extractor (post processor), like this:

reference name: productID
regex: "productID" value="([0-9]+)"
template: $1$
match no: 1
default value: not_found

you now have access to your product id with ${productID}

//chris 




---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: how to get value from HTML

Posted by Scott Cederberg <ce...@gmail.com>.
Hi Tiffany,

    Use the Regular Expression Extractor (a Post-Processor).

    http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor

                                                                  Scott

On 5/3/07, tiffany <ti...@yahoo.ca> wrote:
>
> Hi,
>
> I could see a response data(HTML format) from my request, how can I get the
> value from it?
>
> I need to get the value of the productID and it looks like
> name="productID" value="10" in the HTML.
>
> Any idea?
>
> Thanks,
>   Tiffany
> --
> View this message in context: http://www.nabble.com/how-to-get-value-from-HTML-tf3688549.html#a10311887
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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