[Webtest] Re: TR: Help testing frames in different windows.
Marc Guillemot
webtest@lists.canoo.com
Mon, 11 Oct 2004 11:23:36 +0200
Salut Fabien,
it's now committed, but it seems that the server isn't motivated to build...
You can get it from CVS if you want (version 1.14 of FollowFrame.java). The new attribtute's name is "relative".
Marc.
Fabien TISON wrote:
> Hi Marc
>
> I didn't see a new version of FollowFrame in CVS. Maybe I don't look at the
> right place
> (http://webtest.canoo.com/viewrep/Canoo%20Webtest%20CVS/webtest/src/com/cano
> o/webtest/steps/request/FollowFrame.java), or you didn't have time to do
> that.
>
> Just for testing purpose, maybe you could send it to me by mail waiting for
> your real commit.
>
> Best regards.
> Fabien
>
>
> -----Message d'origine-----
> De : webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com] De
> la part de Fabien TISON
> Envoyé : vendredi 24 septembre 2004 18:19
> À : webtest@gate2.canoo.com
> Objet : RE: [Webtest] Re: TR: Help testing frames in different windows.
>
> Thank you, Marc.
>
> The decision process for choosing Canoo is blocked because of this lack of
> functionality.
>
> I know that if we miss a functionality, we have to implement it. But if it's
> already done, I thank you in advance for the contribution.
>
> Canoo is now finally against Compuware. And your contribution will be able
> to tip the scales.
> We have chosen Canoo against Solex, Anteater, Jameleon, ....
> And currently, I don't regret it.
>
> Best regards
> Fabien
>
>
> -----Message d'origine-----
> De : webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com] De
> la part de Marc Guillemot Envoyé : vendredi 24 septembre 2004 10:34 À :
> webtest@lists.canoo.com Objet : [Webtest] Re: TR: Help testing frames in
> different windows.
>
> It's due to the way followframe currently works. It looks for the frame
> starting at the main window. followframe should be improved with an
> attribute "relative" (or something like that) to allow following a frame
> from the current response.
> I use for my own needs a special version of followframe doing only this. I
> will commit this feature in the standard followframe as soon as possible.
>
> Marc.
>
> Fabien TISON wrote:
>
>>Hi,
>>
>>I 'm trying to test a frame, in a new window, created by a link with
>>target="_top".
>>
>>I received the following error :
>> BUILD FAILED
>> Test step followframe named "Selectionne la frame recherche produit"
>>failed with message "Step "followframe" Selectionne la frame recherche
>>produit" (12/14) Frame not found with name: recherche available:
>>[mbanner, liste, _new, edientete, menu, _top]"
>>
>>Complete descrition of the case at the end of the message.
>>
>>I wonder if it's possible to follow a frame in another window (maybe a
>>HttpUnit limitation) ?
>>If not, how can I contribute to make it possible ?
>>
>>Best regards
>>Fabien TISON
>>Java Development
>>http://www.generix.fr
>>
>>Test case :
>>-----------
>>
>>Frame structure of the main page :
>>+------------------------+
>>| mbanner <link>|
>>+----+-------------------+
>>|menu| edientete |
>>| | |
>>| +-------------------+
>>| | liste |
>>| | |
>>| | |
>>| | |
>>+----+-------------------+
>>
>>In the "mbanner" frame I use the "clickbutton" to submit a form.
>>This form has a "target" attribut with the "_top" value, so that there
>>is a new window for the next page.
>>
>>This new window has the following frame structure :
>>+-----------------------------+
>>| banner <link>|
>>+---------+-------------------+
>>|recherche| option |
>>| | |
>>| | |
>>| +-------------------+
>>| | liste |
>>| | |
>>| | |
>>+---------+-------------------+
>>
>>Unfortunately, I don't succeed to make tests for the "recherche" frame.
>>
>>I receive the following error :
>> BUILD FAILED
>> Test step followframe named "Selectionne la frame recherche produit"
>>failed with message "Step "followframe" Selectionne la frame recherche
>>produit" (12/14) Frame not found with name: recherche available:
>>[mbanner, liste, _new, edientete, menu, _top]"
>>
>>I tried "_top:recherche" as a parameter of folowframe but same error.
>>
>>TestCase.xml :
>> <target name="main">
>> <testSpec name="1er test">
>> <config
>> autorefresh="true"
>> saveresponse="true"
>> summary="true"
>> showhtmlparseroutput="true"
>> resultpath="${resultpath}"
>> resultfile="${resultfile}"
>> host="localhost"
>> port="8888"
>> protocol="http"
>> basepath="egx500ES1/btoe" />
>> <steps>
>> <invoke
>> stepid="Appel de la page d'accueil"
>>
>>
>
> url="ServletControl?sourceview=I_MENU&cinematic=forward(0)&entity=1"
>
>
>>/>
>> <verifytitle
>> stepid="Vérification du titre de la fenetre"
>> text="GENERIX Collaborative Entreprise - Identification" />
>> <setinputfield stepid="Saisie Entité"
>> name="chp:ENTITY"
>> value="1" />
>> <setinputfield stepid="Saisie User"
>> name="chp:USER"
>> value="xxxxx" />
>> <setinputfield stepid="Saisie password"
>> name="chp:PASSWORD"
>> value="xxxxx" />
>> <clickbutton stepid="Bouton Envoyer"
>> name="validation" />
>> <verifytitle
>> stepid="Vérification du titre de la fenetre après login"
>> text="Groupe (multi-entites) - RDEMOC" />
>>
>> <followframe stepid="Selectionne la frame du haut"
>> name="mbanner"/>
>>
>> <setinputfield stepid="Saisie fonction et lance"
>> name="chp:Fct"
>> value="I_PRO_F" />
>> <clickbutton stepid="Bouton Lancer"
>> label="Lancer" />
>>
>> <followframe stepid="Selectionne la frame recherche produit"
>> name="recherche"/>
>><verifyselectfield
>> stepid="Vérification du contenu liste déroulante etat"
>> name="cinematic"
>> text="Tous les articles" />
>> </steps>
>> </testSpec>
>> </target>
>
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>