[Webtest] Re: TR: Help testing frames in different windows.

Fabien TISON webtest@lists.canoo.com
Fri, 24 Sep 2004 18:19:16 +0200


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=E9 : vendredi 24 septembre 2004 10:34
=C0 : 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.=20
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,
> =20
> I 'm trying  to test a frame, in a new window, created by a link with=20
> target=3D"_top".
> =20
> I received the following error :
>  BUILD FAILED
>  Test step followframe named "Selectionne la frame recherche produit"=20
> 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]"
> =20
> Complete descrition of the case at the end of the message.
> =20
> 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 ?
> =20
> Best regards
> Fabien TISON
> Java Development
> http://www.generix.fr
> =20
> Test case :
> -----------
> =20
> Frame structure of the main page :
> +------------------------+
> | mbanner          <link>|
> +----+-------------------+
> |menu| edientete         |
> |    |                   |
> |    +-------------------+
> |    | liste             |
> |    |                   |
> |    |                   |
> |    |                   |
> +----+-------------------+
> =20
> 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.
> =20
> This new window has the following frame structure :
> +-----------------------------+
> | banner                <link>|
> +---------+-------------------+
> |recherche| option            |
> |         |                   |
> |         |                   |
> |         +-------------------+
> |         | liste             |
> |         |                   |
> |         |                   |
> +---------+-------------------+
> =20
> Unfortunately, I don't succeed to make tests for the "recherche" =
frame.
> =20
> I receive the following error :
>  BUILD FAILED
>  Test step followframe named "Selectionne la frame recherche produit"=20
> 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]"
> =20
> I tried "_top:recherche" as a parameter of folowframe but same error.
> =20
> TestCase.xml :
>    <target name=3D"main">
>       <testSpec name=3D"1er test">
>          <config
>          autorefresh=3D"true"
>      saveresponse=3D"true"
>        summary=3D"true"
>        showhtmlparseroutput=3D"true"
>        resultpath=3D"${resultpath}"
>        resultfile=3D"${resultfile}"
>           host=3D"localhost"
>           port=3D"8888"
>           protocol=3D"http"
>           basepath=3D"egx500ES1/btoe" />
>          <steps>
>             <invoke
>                stepid=3D"Appel de la page d'accueil"
>               =20
>
url=3D"ServletControl?sourceview=3DI_MENU&amp;cinematic=3Dforward(0)&amp;=
entity=3D1"

> />
>             <verifytitle
>                stepid=3D"V=E9rification du titre de la fenetre"
>                text=3D"GENERIX Collaborative Entreprise - =
Identification" />
>            <setinputfield stepid=3D"Saisie Entit=E9"
>              name=3D"chp:ENTITY"
>              value=3D"1" />
>            <setinputfield stepid=3D"Saisie User"
>              name=3D"chp:USER"
>              value=3D"xxxxx" />
>          <setinputfield stepid=3D"Saisie password"
>              name=3D"chp:PASSWORD"
>              value=3D"xxxxx" />
>          <clickbutton stepid=3D"Bouton Envoyer"
>              name=3D"validation" />
>  <verifytitle
>                stepid=3D"V=E9rification du titre de la fenetre apr=E8s =
login"
>                text=3D"Groupe (multi-entites) - RDEMOC" />
> =20
>  <followframe stepid=3D"Selectionne la frame du haut"
>           name=3D"mbanner"/>
>         =20
>  <setinputfield stepid=3D"Saisie fonction et lance"
>              name=3D"chp:Fct"
>              value=3D"I_PRO_F" />
>          <clickbutton stepid=3D"Bouton Lancer"
>              label=3D"Lancer" />     =20
>             =20
>               <followframe stepid=3D"Selectionne la frame recherche =
produit"
>           name=3D"recherche"/>
> <verifyselectfield
>                stepid=3D"V=E9rification du contenu liste d=E9roulante =
etat"
>                name=3D"cinematic"
>                text=3D"Tous les articles" />
>          </steps>
>       </testSpec>
>    </target>

_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest