Hi Richard,

> 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. 

great news

> 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 

without more precise information on the failing js, I can't say anything

> 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. 

the method to "compute" the current window is a bit complicated (see in
Context.java). Roughly speaking, it tries to take what would be "natural"
and this seem to work correctly in most of the cases. This is not related
with the files saved on the filesystem. If you change the log level to
debug, you will get more information on this.
I'm not sure to understand what you want to do. You can use followFrame and
selectWindow to change the "current" response and dump the current state
using a small script.

Concerning Ajax: I hope that Webtest/htmlunit will be able to fully support
Ajax applications in the near future. I guess that I've described the
current status so many time now that I would have needed less time to
implement it ;-)

Marc.

-- 
View this message in context: 
http://www.nabble.com/correct-usage-of-followFrame-tf1928641.html#a5498447
Sent from the WebTest forum at Nabble.com.

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

Reply via email to