You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Saimon Moore <sa...@yahoo.co.uk> on 2003/01/03 16:16:55 UTC
[Latka] Testing applications with frames
I'm trying out Latka to test the functionality of an
ATG Dynamo-based app.
I'm trying to login and validate the text within one
of the resulting frames. As I couldn't find anything
related to frames in the dtd. I added an http header
'Window-Target'.
This however has had no effect..and I'm still only
getting the frameset code..
I have the following request xml:
<request path="/navegacio/fr_home_cat.jhtml"
label="cat home" method="post" secure="false"
followRedirects="true">
<requestHeader headerName="User-Agent"
headerValue="Mozilla/4.0 (compatible; MSIE 5.5;
Windows NT 5.0)" />
<requestHeader headerName="Window-target"
headerValue="abajo"/>
<param>
<paramName>identificador</paramName>
<paramValue>simonm100</paramValue>
</param>
<param>
<paramName>password</paramName>
<paramValue>simonmoore</paramValue>
</param>
<validate>
<regexp pattern="Bona tarda,
simonm100" cond="true" ignoreCase="false"/>
</validate>
</request>
Any ideas on what might be going wrong....
Regards,
Saimon Moore
=====
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [Latka] Testing applications with frames
Posted by saimon <sa...@yahoo.co.uk>.
Of course,
Quite silly of me not to think of that. It could be an idea though for
latka to retrieve all content from the frameset.
I noticed there's a URLParser class in the util package, that could be
used for that.
I'll look into perhaps patching it for that.
P.S. After investigating further I also found that the Window:target
http header is not part of the spec. Must be an proprietary extension of
somesort... :)
Thanks
Saimon
Rodney Waldhoff wrote:
>If the /navegacio/fr_home_cat.jhtml page is the one that generates the
>frameset, that's what you should expect. I think you'll want to submit a
>request for the contents of an individual frame, i.e., but submitting a
>request to value of the SRC attribute of one of the FRAME tags.
>
>For example, if the frameset code looks like:
>
> <html>
> <frameset rows="30%,70%">
> <frame src="header.jhtml" name="header">
> <frame src="body.jhtml" name="body">
> </frameset>
> </html>
>
>Then you'll need to submit distinct requests for the frameset and/or any
>individual frames you are interested in, like:
>
> <request path="frameset.jhtml" label="the frameset">...</request>
>
> <request path="header.jhtml" label="the header frame">...</request>
>
> <request path="body.jhtml" label="the body frame">...</request>
>
>(This is what your browser will do as well.)
>
>I don't believe there's any built-in support for parsing this out
>automatically, but with the recent conversion of latka to jelly this would
>seem to be possible.
>
>On Fri, 3 Jan 2003, [iso-8859-1] Saimon Moore wrote:
>
>
>
>>I'm trying out Latka to test the functionality of an
>>ATG Dynamo-based app.
>>
>>I'm trying to login and validate the text within one
>>of the resulting frames. As I couldn't find anything
>>related to frames in the dtd. I added an http header
>>'Window-Target'.
>>
>>This however has had no effect..and I'm still only
>>getting the frameset code..
>>
>>I have the following request xml:
>>
>><request path="/navegacio/fr_home_cat.jhtml"
>>label="cat home" method="post" secure="false"
>>followRedirects="true">
>> <requestHeader headerName="User-Agent"
>>headerValue="Mozilla/4.0 (compatible; MSIE 5.5;
>>Windows NT 5.0)" />
>> <requestHeader headerName="Window-target"
>>headerValue="abajo"/>
>>
>> <param>
>> <paramName>identificador</paramName>
>> <paramValue>simonm100</paramValue>
>> </param>
>> <param>
>> <paramName>password</paramName>
>> <paramValue>simonmoore</paramValue>
>> </param>
>> <validate>
>> <regexp pattern="Bona tarda,
>>simonm100" cond="true" ignoreCase="false"/>
>> </validate>
>> </request>
>>
>>Any ideas on what might be going wrong....
>>
>>Regards,
>>
>>Saimon Moore
>>
>>=====
>>
>>
>>__________________________________________________
>>Do You Yahoo!?
>>Everything you'll ever need on one web page
>>from News and Sport to Email and Music Charts
>>http://uk.my.yahoo.com
>>
>>--
>>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>>For additional commands, e-mail: <ma...@jakarta.apache.org>
>>
>>
>>
>>
>
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [Latka] Testing applications with frames
Posted by Rodney Waldhoff <rw...@apache.org>.
If the /navegacio/fr_home_cat.jhtml page is the one that generates the
frameset, that's what you should expect. I think you'll want to submit a
request for the contents of an individual frame, i.e., but submitting a
request to value of the SRC attribute of one of the FRAME tags.
For example, if the frameset code looks like:
<html>
<frameset rows="30%,70%">
<frame src="header.jhtml" name="header">
<frame src="body.jhtml" name="body">
</frameset>
</html>
Then you'll need to submit distinct requests for the frameset and/or any
individual frames you are interested in, like:
<request path="frameset.jhtml" label="the frameset">...</request>
<request path="header.jhtml" label="the header frame">...</request>
<request path="body.jhtml" label="the body frame">...</request>
(This is what your browser will do as well.)
I don't believe there's any built-in support for parsing this out
automatically, but with the recent conversion of latka to jelly this would
seem to be possible.
On Fri, 3 Jan 2003, [iso-8859-1] Saimon Moore wrote:
> I'm trying out Latka to test the functionality of an
> ATG Dynamo-based app.
>
> I'm trying to login and validate the text within one
> of the resulting frames. As I couldn't find anything
> related to frames in the dtd. I added an http header
> 'Window-Target'.
>
> This however has had no effect..and I'm still only
> getting the frameset code..
>
> I have the following request xml:
>
> <request path="/navegacio/fr_home_cat.jhtml"
> label="cat home" method="post" secure="false"
> followRedirects="true">
> <requestHeader headerName="User-Agent"
> headerValue="Mozilla/4.0 (compatible; MSIE 5.5;
> Windows NT 5.0)" />
> <requestHeader headerName="Window-target"
> headerValue="abajo"/>
>
> <param>
> <paramName>identificador</paramName>
> <paramValue>simonm100</paramValue>
> </param>
> <param>
> <paramName>password</paramName>
> <paramValue>simonmoore</paramValue>
> </param>
> <validate>
> <regexp pattern="Bona tarda,
> simonm100" cond="true" ignoreCase="false"/>
> </validate>
> </request>
>
> Any ideas on what might be going wrong....
>
> Regards,
>
> Saimon Moore
>
> =====
>
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>