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

Fabien TISON webtest@lists.canoo.com
Fri, 24 Sep 2004 09:58:07 +0200


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C4A20C.3A6150E0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
=20
I 'm trying  to test a frame, in a new window, created by a link with
target=3D"_top".
=20
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]"
=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> 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" =
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=20
         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=20
               stepid=3D"Appel de la page d'accueil"
=20
url=3D"ServletControl?sourceview=3DI_MENU&amp;cinematic=3Dforward(0)&amp=
;entity=3D1"
/>
            <verifytitle=20
               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=20
               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>


------_=_NextPart_001_01C4A20C.3A6150E0
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2800.1458" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face="Courier New" size=2>Hi,</FONT></DIV>
<DIV><FONT face="Courier New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>I<SPAN 
class=555565607-24092004>&nbsp;'m&nbsp;</SPAN>try<SPAN 
class=555565607-24092004><FONT face=Arial color=#0000ff><FONT face="Courier New" 
color=#000000>ing</FONT>&nbsp;</FONT></SPAN> to test a frame, in a new window, 
created by a link with target="_top".</FONT></DIV>
<DIV><FONT face="Courier New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>I receive<SPAN 
class=750131410-14092004>d</SPAN> the following error :<BR>&nbsp;BUILD 
FAILED<BR>&nbsp;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]"</FONT></DIV>
<DIV><FONT face="Courier New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>Complete descrition of the case at the end 
of the message.</FONT></DIV>
<DIV><FONT face="Courier New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>I wonder if it's possible to follow a frame 
in another window (maybe a HttpUnit limitation) ?<BR>If not, how can I 
contribute to make it possible ?</FONT></DIV>
<DIV><FONT face="Courier New"></FONT>&nbsp;</DIV>
<DIV><FONT size=2><FONT face="Courier New">Best regards<BR>Fabien TISON<BR>Java 
Development<BR></FONT><A href="http://www.generix.fr"><FONT 
face="Courier New">http://www.generix.fr</FONT></A></FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>Test case :<BR>-----------</FONT></DIV>
<DIV><FONT face="Courier New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>Frame structure of the main page 
:<BR>+------------------------+<BR>| 
mbanner&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;link&gt;|<BR>+----+-------------------+<BR>|menu| 
edientete&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|<BR>|&nbsp;&nbsp;&nbsp; 
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|<BR>|&nbsp;&nbsp;&nbsp; +-------------------+<BR>|&nbsp;&nbsp;&nbsp; | 
liste&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|<BR>|&nbsp;&nbsp;&nbsp; 
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|<BR>|&nbsp;&nbsp;&nbsp; 
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|<BR>|&nbsp;&nbsp;&nbsp; 
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|<BR>+----+-------------------+</FONT></DIV>
<DIV><FONT face="Courier New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>In the "mbanner" frame I use the 
"clickbutton" to submit a form.<BR>This form has a "target" attribut with the 
"_top" value, so that there is a new window for the next page.</FONT></DIV>
<DIV><FONT face="Courier New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>This new window has the following frame 
structure :<BR>+-----------------------------+<BR>| 
banner&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;link&gt;|<BR>+---------+-------------------+<BR>|recherche| 
option&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|<BR>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|<BR>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|<BR>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
+-------------------+<BR>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 
liste&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|<BR>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|<BR>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|<BR>+---------+-------------------+</FONT></DIV>
<DIV><FONT face="Courier New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>Unfortunately, I don't succeed to make 
tests for the "recherche" frame.</FONT></DIV>
<DIV><FONT face="Courier New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>I receive the following error 
:<BR>&nbsp;BUILD FAILED<BR>&nbsp;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]"</FONT></DIV>
<DIV><FONT face="Courier New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>I tried "_top:recherche" as a parameter of 
folowframe but same error.</FONT></DIV>
<DIV><FONT face="Courier New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>TestCase.xml :<BR>&nbsp;&nbsp; &lt;target 
name="main"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;testSpec name="1er 
test"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;config 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
autorefresh="true"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;saveresponse="true"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
summary="true"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
showhtmlparseroutput="true"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
resultpath="${resultpath}"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
resultfile="${resultfile}"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
host="localhost"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
port="8888"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
protocol="http"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
basepath="egx500ES1/btoe" 
/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;steps&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;invoke 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
stepid="Appel de la page 
d'accueil"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
url="ServletControl?sourceview=I_MENU&amp;amp;cinematic=forward(0)&amp;amp;entity=1" 
/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;verifytitle 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
stepid="Vérification du titre de la 
fenetre"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
text="GENERIX Collaborative Entreprise - Identification" 
/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;setinputfield stepid="Saisie 
Entité"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 
name="chp:ENTITY"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
value="1" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;setinputfield stepid="Saisie 
User"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 
name="chp:USER"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
value="xxxxx" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;setinputfield stepid="Saisie 
password"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 
name="chp:PASSWORD"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
value="xxxxx" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;clickbutton stepid="Bouton 
Envoyer"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
name="validation" /&gt;<BR>&nbsp;&lt;verifytitle 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
stepid="Vérification du titre de la fenetre après 
login"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
text="Groupe (multi-entites)&nbsp;-&nbsp;RDEMOC" /&gt;</FONT></DIV>
<DIV><FONT face="Courier New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>&nbsp;&lt;followframe stepid="Selectionne 
la frame du haut"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
name="mbanner"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&lt;setinputfield stepid="Saisie fonction et 
lance"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 
name="chp:Fct"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
value="I_PRO_F" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;clickbutton stepid="Bouton 
Lancer"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
label="Lancer" /&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;followframe stepid="Selectionne la frame recherche 
produit"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
name="recherche"/&gt;<BR>&lt;verifyselectfield<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
stepid="Vérification du contenu liste déroulante 
etat"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
name="cinematic"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
text="Tous les articles" 
/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/steps&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/testSpec&gt;<BR>&nbsp;&nbsp; &lt;/target&gt;<BR></FONT></DIV></BODY></HTML>

------_=_NextPart_001_01C4A20C.3A6150E0--