Hi Gurus,

I have been using WebTest quite a long time for now but only for testing old-style web 
applications. As the time goes on, "new" technologies come in.
Now I have been run first time into a trouble when creating tests with WebTest.

I tried to start writing automated tests for an GWT based application but I 
cannot get much further from first page.
I will get the main page, that contains couple of rows of html, but nothing 
more.

The application generates a table using GWT and most of content is rendered by 
javascript. How should I handle it with WebTest to be able to parse Javascript 
based content further?

The page looks as following:
--------------


<html>
  <head>
    <title>AMS</title>


<meta name="gwt:property" content="locale=en"/>




    <link rel="icon" href="images/aq.ico"/>

    <link rel="stylesheet" type="text/css" href="style/ams.css"/>
    <link rel="stylesheet" type="text/css" href="style/calendarWidget.css"/>
    <script language="javascript" src="com.aqris.ams.AMS.nocache.js"></script>
  </head>

  <body>
    <iframe src="javascript:''" id="__gwt_historyFrame" 
style="width:0;height:0;border:0"></iframe>
  </body>

</html>

--------------

All I can do at the moment, is to follow  the iframe, but that's it then. Empty 
frame with no content.

Marc once mentioned in his reply to my previous question in same topic that 
HtmlUnit with IE already supports testing of GWT apps.
I tried also with specifying IE in user agent header, but not much help.

The version of WebTest I used in my experiments is R_1710. So pretty fresh.

Maybe someone can give couple of hints how this kind of applications should be 
handled/tested at all? What steps should be used to get access to the part of 
page where all the magic is done in Javascript?


Thanks in advance for any hint or suggestion,

Mart

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

Reply via email to