Yes I work for Yahoo. I am attempting to test an internal tool my group is
developing. I am not aware of anyone else within the company using webtest,
but that doesn't mean they aren't. 

After a lot of trial and error using beanshell scripts I have been able to
drive the application using explicit iframes (iframes created via html). I
have had no luck with iframes created using js that creates and inserts dom
elements. I have attempted to created minimal pages but there is a lot of js
code and I have control over very little of it

My biggest problem is determining when/how the current response is set when
using js or script steps. As an example, I create an iframe using bsh and
use setSrcAttribute which appears from debug output to have loaded the
appropriate data. Unfortunately subsequent steps that attempt to access
items within that page fail. The response is not written to a file and I
cannot figure out a way to manually write it since
Context.saveCurrentResponseToFile requires that one be in a step where an
instance of IbrowserAction.

Testing ajax is becoming extremely important since many of our tools and
webpages are being converted to use that as the main interaction mechanism. 

Richard Berens

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Marc Guillemot
Sent: Monday, July 24, 2006 4:58 AM
To: [EMAIL PROTECTED]
Subject: [Webtest] Re: correct usage of followFrame

Hi Richard,

your usage seems to be correct. You need to investigate a bit to see at
which place it doesn't work. Is js involved? Can you reproduce the
problem with a minimal html page?

Concerning Ajax: current state is that htmlunit supports XMLHttpRequest
(both as normal object and as IE ActiveX) and the responseText works
fine but the responseXML content is retrieved but not made available to
the js script. I guess that this would half a day work to fix it, but it
hasn't been done until now.

Marc.

PS: a yahoo-inc email address? Are you from yahoo itself? Does yahoo use
WebTest for its quality tests?

Richard Berens wrote:
> I am trying to test an application where one of the pages contains an
> iframe. I use followFrame and then set various text fields, radio
> buttons, and checkboxes. This seems to all work fine. The page is
> submitted in steps. There is a button on the main page whose onclick
> handler submits the iframe. The result of the iframe submission then
> invokes a submit on the form for the main page.
> 
>  
> 
> To get to the submit button after setting the iframe fields, I use
> <followFrame name="_top" />. I set a select and then use <clickButton ..
> ./> on the appropriate button. All is fine; however what is submitted
> from the iframe is a series of input items that contain no content. In
> particular they do not contain the data that was set after the
> <followFrame . /> to the iframe.
> 
>  
> 
> I am assuming that I am doing something wrong but I haven't a clue what.
> Can anybody shed any light? I am using R_1353.
> 
>  
> 
> In a similar vein, I have seen mention that the combination of webtest
> and htmlunit I am using supports ajax interaction. Are there any
> examples of how this is done?
> 
>  
> 
> Thanks
> 
>  
> 
> Richard Berens
> 


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to