[Webtest] Re: Problem with invoke test step

Marc Guillemot webtest@lists.canoo.com
Mon, 26 Apr 2004 15:14:33 +0200


When you use a frameset, only the html page with <frameset>... is saved to be seen from the reports, not the frames that 
are referenced (neither are saved the images, css, js, ....). I guess that what you see as a blank page in the results 
in just the frameset page but as your browser can't load the frames, it just displays a blank page. For your tests, you 
need to use the <followframe> tag to "go" to one of the frames of the frameset and continue the tests.

Marc.

lezoul@free.fr wrote:
> hi all,
> I would like to test a web application but i can't load the first page.
> 
> The invoke step doesn't print any error but it loads a blank page for last
> result and I can't test anything in the next test step.
> I don't understand what is the matter with this page...
> 
> I hope somebody will be able to help me, Lezoul
> 
> 
> First page code :
> ---------------------------------------------------------------------------------------
> <!-- Sample HTML file --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
> Transitional//EN">
> <%@ page import="com.yc.frmwrk.*" %>
> <%@ page session="true" isThreadSafe="true" isErrorPage="false" %>
> <%@ page errorPage="/error.jsp" %>
> 
> <HTML>
> <HEAD>
> 	<META http-equiv="Content-Style-Type" content="text/css">
> 	<TITLE>Cotreweb</TITLE>
> </HEAD>
> 
> <FRAMESET cols="10,*" frameborder="NO" border="0" >
> 
>     <FRAME src="<%=request.getContextPath()%>/left.jsp" scrolling="NO"
> marginwidth="2" marginheight="2" name="left" >
> 
>     <FRAMESET rows="60,*" frameborder="NO" border="0">
>       <FRAME src="<%=request.getContextPath()%>/head.jsp" scrolling="NO"
> marginwidth="2" marginheight="2" name="head" noresize>
> 	   <FRAME
> src="<%=request.getContextPath()%>/ConnexionController?HdnRequestBean=com.yc.core.ConnexionReq"
> marginwidth="3" marginheight="3" name="center" scrolling="AUTO">
>     </FRAMESET>
>     
>     <NOFRAMES>
>       <BODY bgcolor="#FFFFFF">
>          <P>Browser Error</P>
> 	   </BODY>
>     </NOFRAMES>
>     
> </FRAMESET>
> 
> </HTML>
> 
> -------------------------------------------------------------------
> Result of the step in the xml summary
> <step>
>     <parameter name="save" value="acceuilYcebt"/>
>     <parameter name="stepId" value="chargement formulaire principal"/>
>     <parameter name="resultfilename" value="acceuilYcebt1082726730384.html"/>
>     <parameter name="url" value="Ycebt/Connecteur"/>
>     <parameter name="stepType" value="invoke"/>
>     <result>
>         <completed duration="270"/>
>     </result>
> </step>
> 
> Result of invoke step (with a good URL (: ) :
> NOTHING neiter text nor a simple <HTML> element