|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
How to test with WT application based on GWT?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 WebTest@... http://lists.canoo.com/mailman/listinfo/webtest |
|
|
Re: How to test with WT application based on GWT?Hi Mart,
I haven't used WebTest to test GWT apps therefore I can't give a precise solution but only some information: - HtmlUnit's test suite contains tests that run against GWT. It's 100% green with GWT 1.4.60 but there is a small problem with 1.4.62 (and 1.5RC1) - I've already heard of a project using WebTest to test a GWT app with 1.4.62. They see js exception in the processing of a background task (the problem that HtmlUnit has with GWT 1.4.62) but until now it wasn't a problem for them. Cheers, Marc. -- Blog: http://mguillem.wordpress.com Mart Toom wrote: > 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 > WebTest@... > http://lists.canoo.com/mailman/listinfo/webtest > _______________________________________________ WebTest mailing list WebTest@... http://lists.canoo.com/mailman/listinfo/webtest |
| Free Forum Powered by Nabble | Forum Help |