Hi Dariusch,

You can get the html via a groovy step

             groovy(description:"Store the html of the page","""
                      def document = step.context.currentResponse.asXml()
                      def props = step.webtestProperties
                      props.putAt("htmlPage",document)
                   """)

or
<groovy description="Store the html of the page">
                       def document = step.context.currentResponse.asXml()
                      def props = step.webtestProperties
                      props.putAt("htmlPage",document)
</groovy>
in a less groovy way...

Then you have your html code (cleaned up with Tidy) in the htmlPage property

Hope that helps

Florent

Pingwy
27, rue des arènes
49100 Angers



dariusch a écrit :
Hi,

if i use storexpath with ='/', i get the text without the elements, but i
need all.

Someone has an idea?

Dariusch


dariusch wrote:
Hello,

i just want to store all source code from a response page. It is possible
to do that (inside a variable)? I need this, because i will check these
sources it is valid (the page is an rss-feed).

Thanks
Dariusch


Reply via email to