4 messages in com.canoo.lists.webtestAW: [Webtest] How to pick a Value fro...
FromSent OnAttachments
nalin jain24 Oct 2007 07:56 
Dierk Koenig24 Oct 2007 08:47 
Michael Habbert24 Oct 2007 23:18 
Christoph Witych25 Oct 2007 04:09 
Subject:AW: [Webtest] How to pick a Value from a Web Page & Store it in a Variable
From:Christoph Witych (Wit@atrada.net)
Date:10/25/2007 04:09:31 AM
List:com.canoo.lists.webtest

Trittst du jetzt unter einem Pseudonym auf? ;-)

-----Ursprüngliche Nachricht----- Von: webt@lists.canoo.com [mailto:webt@lists.canoo.com] Im
Auftrag von Michael Habbert Gesendet: Donnerstag, 25. Oktober 2007 08:19 An: webt@lists.canoo.com Betreff: Re: [Webtest] How to pick a Value from a Web Page & Store it in a
Variable

Hi Nalin,

Dierk Koenig wrote:

Hi Nalin,

have a look into the steps storeRegex and storeXpath.

[...] I do it like:

extract the value out of the html-page: --------- <storeRegEx description="create new release: Extract realID." text="&lt;a\shref=&apos;/release/detail\.do\?release=(\d{4})&apos;\s&gt;" group="1" property="real.release.id" propertyType="dynamic" /> ---------

and reuse the value as property="real.release.id" or save the value in a file: --------- <echo file="../data/${chewi.release1.file.name}"
message="real.release1.id=#{real.release.id}"/> ---------

Greetings