Re: [Grinder-use] Capture information with Grinder

"Ruth Stella Castillo Sandoval" <[email protected]> Tue, 28 Jun 2005 09:26:41 -0500
Newsgroups gmane.comp.java.grinder.announce,gmane.comp.java.grinder.devel,gmane.comp.java.grinder.user
Message-ID <[email protected]>

Hi:

I am using The Grinder 2 and working string bean with Java.  How can I 
in Java do what you comment in Python?

Thanks.
Att: Ruth

---------- Original Message ----------------------------------
From: sebastien.lemeunier-s9ACF+TQ1dFWk0Htik3J/[email protected]
Date:  Tue, 28 Jun 2005 10:44:23 +0200

>import re
>
>class TestRunner:
>
>    continuationIdRE =3D re.compile('.*<input value=3D"(.*)" 
>type.*continuation-id">.*')
>    continuationId =3D ''
>
>...
>
>    def page10005(self):
>        HtmlResult =3D 
>request.GET('https://111.111.111.111:443/cocoon/search/basic_search_form')=

>
>        # extract continuationId number
>        MO =3D self.continuationIdRE.search(HtmlResult.text)
>        self.continuationId =3D MO.group(1)
>
>        return HtmlResult
>
>...
>
>    def page10007(self):
>        HtmlResult =3D 
>request.POST('https://111.111.111.111:443/cocoon/search/basic_search-submi=
t',
>            ( NVPair('forms_submit_id', ''), 
>                NVPair('continuation-id', self.continuationId), 
>                NVPair('surname', 's*'), 
>                NVPair('forename', ''), 
>                NVPair('postcode', ''), 
>                NVPair('city', ''), 
>                NVPair('specialist_area', ''), 
>                NVPair('trial_name', ''), 
>                NVPair('facility_type', ''), 
>                NVPair('facility', ''), 
>                NVPair('source', ''), 
>                NVPair('screening', ''), 
>                NVPair('id', ''), 
>                NVPair('search', 'search'), ))
>
>
>regards,
>Sebastien
>
>
>
>
>
>
>"Ruth Stella Castillo Sandoval" <[email protected]>
>Sent by: grinder-use-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>27/06/2005 18:21
>Please respond to rcastillo
>
> 
>        To:     <[email protected]>
>        cc:     <grinder-development-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>, 
><grinder-announce-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>, (bcc: Sebastien 
>Lemeunier/PH/Novartis)
>        Subject:        [Grinder-use] Capture information with Grinder
>        Category: 
>
>
>
>
>I have the following hiperlink: 
>
><a 
>href=3D3D"/pruebas/app?service=3D3Ddirect/1/ParametrosAdministracion/$Find=
er=3D 
>Instituciones2.$DirectLink&sp=3D3DOH4sIAAAAAAAAAFvzloG1uIhBOzk_Vy81JbU4US=
=3D 
>83saQoUy8xpzQ3L79Yzzc_JTUn3zOvuCSzpDQ5Mz8vtVjP_3HE1akNBUwM7FEMPDmJxSXBqTmp=
y=3D 
>
>SWpKVEMHMVQpg8DR0piXipIYwmDkE9WYlmifk5iXrp-MND0vHRrHwbezBQkY0sYBJAU-eSDlXD=
l=3D 
>
>5ecmFYENKWSoY2D0YRCAiAQB7cgvQhLnySvNDQa5Hy5WUcDAUMLAYWpkYWxoaW4K9CMfyHw9kP=
l=3D 
>
>6YPO7n0w40698n4mB0YuBtQzo4dSKIgYBhCK_0tyk1KK2NVNluac86GZiYAAZCQYiJQxczo4Br=
k=3D 
>
>Ghzp4hjiUMgm6OIZ6-jgrIYowmAIXP7epbAQAA"> 
>
>This hiperlink is generated by a consultation that is in a Test of 
>Grinder.=3D 
>
>This hiperlink has information that is generated dinamic and I cannot 
>gener=3D 
>ate it manually. 
>With this hyperlink I make the elimination of a registry. 
>
>How can I do for that Grinder captures the hyperlink's information,  and 
>to=3D 
>use it in the following test? 
>
>Please,  how can I generate the information of hyperlink from a data? 
>becau=3D 
>se I dont know how is it codified. 
>
>Att: Ruth 
>
> 
>
> 
>____________________
>Sent via the WebMail system at ecoinfo.com.co
>Enviado a trav=E9s del sistema WebMail de ecoinfo.com.co
>
>
> 
> 
>
>______
>[Email scanned for viruses by Panda Consulting -www.pandacons.com-]
>[Email escaneado contra virus por Panda Consulting -www.pandacons.com-]
>
>
>
>-------------------------------------------------------
>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>from IBM. Find simple to follow Roadmaps, straightforward articles,
>informative Webcasts and more! Get everything you need to get up to
>speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id=16492&op=3Dclick
>_______________________________________________
>Grinder-use mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/grinder-use
>
>
>
>
 

 
____________________
Sent via the WebMail system at ecoinfo.com.co
Enviado a trav=E9s del sistema WebMail de ecoinfo.com.co


 
                   

______
[Email scanned for viruses by Panda Consulting -www.pandacons.com-]
[Email escaneado contra virus por Panda Consulting -www.pandacons.com-]



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click