You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(6) |
Jul
(17) |
Aug
(18) |
Sep
(22) |
Oct
(16) |
Nov
(6) |
Dec
(11) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(11) |
Feb
(10) |
Mar
(34) |
Apr
(26) |
May
(6) |
Jun
(22) |
Jul
(14) |
Aug
(4) |
Sep
(47) |
Oct
(69) |
Nov
(23) |
Dec
(21) |
2005 |
Jan
(53) |
Feb
(33) |
Mar
(92) |
Apr
(65) |
May
(63) |
Jun
(57) |
Jul
(43) |
Aug
(132) |
Sep
(61) |
Oct
(75) |
Nov
(60) |
Dec
(130) |
2006 |
Jan
(74) |
Feb
(87) |
Mar
(101) |
Apr
(58) |
May
(54) |
Jun
(42) |
Jul
(31) |
Aug
(67) |
Sep
(61) |
Oct
(71) |
Nov
(28) |
Dec
(58) |
2007 |
Jan
(53) |
Feb
(50) |
Mar
(96) |
Apr
(66) |
May
(55) |
Jun
(130) |
Jul
(99) |
Aug
(115) |
Sep
(37) |
Oct
(78) |
Nov
(24) |
Dec
(70) |
2008 |
Jan
(94) |
Feb
(85) |
Mar
(197) |
Apr
(274) |
May
(119) |
Jun
(143) |
Jul
(193) |
Aug
(99) |
Sep
(160) |
Oct
(120) |
Nov
(178) |
Dec
(109) |
2009 |
Jan
(238) |
Feb
(169) |
Mar
(115) |
Apr
(109) |
May
(131) |
Jun
(167) |
Jul
(144) |
Aug
(193) |
Sep
(155) |
Oct
(154) |
Nov
(97) |
Dec
(127) |
2010 |
Jan
(108) |
Feb
(127) |
Mar
(176) |
Apr
(113) |
May
(130) |
Jun
(200) |
Jul
(115) |
Aug
(80) |
Sep
(92) |
Oct
(101) |
Nov
(124) |
Dec
(53) |
2011 |
Jan
(67) |
Feb
(144) |
Mar
(88) |
Apr
(60) |
May
(89) |
Jun
(54) |
Jul
(68) |
Aug
(81) |
Sep
(48) |
Oct
(40) |
Nov
(10) |
Dec
(20) |
2012 |
Jan
(21) |
Feb
(28) |
Mar
(17) |
Apr
(35) |
May
(41) |
Jun
(44) |
Jul
(68) |
Aug
(67) |
Sep
(89) |
Oct
(58) |
Nov
(47) |
Dec
(56) |
2013 |
Jan
(49) |
Feb
(28) |
Mar
(46) |
Apr
(31) |
May
(28) |
Jun
(37) |
Jul
(34) |
Aug
(52) |
Sep
(42) |
Oct
(108) |
Nov
(59) |
Dec
(56) |
2014 |
Jan
(41) |
Feb
(72) |
Mar
(46) |
Apr
(21) |
May
(19) |
Jun
(17) |
Jul
(15) |
Aug
(40) |
Sep
(11) |
Oct
(3) |
Nov
(5) |
Dec
(31) |
2015 |
Jan
(11) |
Feb
(12) |
Mar
(19) |
Apr
(19) |
May
(38) |
Jun
(54) |
Jul
(14) |
Aug
(42) |
Sep
(14) |
Oct
(16) |
Nov
(26) |
Dec
(14) |
2016 |
Jan
(3) |
Feb
(1) |
Mar
(24) |
Apr
(5) |
May
(15) |
Jun
(14) |
Jul
(33) |
Aug
(19) |
Sep
(8) |
Oct
(10) |
Nov
|
Dec
(2) |
2017 |
Jan
(16) |
Feb
(12) |
Mar
(23) |
Apr
(8) |
May
(11) |
Jun
(20) |
Jul
(21) |
Aug
(20) |
Sep
|
Oct
(6) |
Nov
(9) |
Dec
(2) |
2018 |
Jan
(7) |
Feb
(5) |
Mar
(6) |
Apr
(5) |
May
(1) |
Jun
(2) |
Jul
(2) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
|
Dec
(4) |
2019 |
Jan
(2) |
Feb
(2) |
Mar
(3) |
Apr
(4) |
May
|
Jun
(4) |
Jul
(9) |
Aug
(2) |
Sep
|
Oct
(4) |
Nov
(1) |
Dec
(7) |
2020 |
Jan
(2) |
Feb
(6) |
Mar
(9) |
Apr
(1) |
May
(1) |
Jun
(15) |
Jul
(1) |
Aug
(1) |
Sep
(2) |
Oct
(6) |
Nov
(3) |
Dec
(5) |
2021 |
Jan
(3) |
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
|
Jun
(1) |
Jul
(1) |
Aug
(3) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
(1) |
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(6) |
2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Brad C. <yo...@br...> - 2005-06-03 16:05:29
|
HtmlUnit is not designed for load testing. The memory issue is likely the first of many problems you will run into while attempting to use it in this way. Brad C --- "Dantes, Ed" <Ed....@gd...> wrote: > Hi all, > Ok, this is a straightforward question, and I hope there is a way to > resolve this. I have written a JUnit test case and TestSuite using > HtmlUnit and JUnitPerf for load ramping. Now running through the > application with one user was no problem whatsoever, though it had a ton > of JavaScript and DHTML elements, I was able to hack HtmlUnit to get it > to do what I wanted it to do. My goal however is to simulate as many > users as I can, hoping ultimately to find a breaking point. I ran two > users, with no problems but when I get to three, the program runs for > around 10-15 min, before timing out with an 'out of memory' error. > Earlier David suggested that I modify the JVM max heap, and which I did > : %java -Xmx512m -version...and to my surprise it ran much slower than > the previous and still gave me an out of memory error. Also, this > application requires a login and username, and will not allow you to log > in with the same username and password, if already logged in, hence the > various testsuites: user1, user2, etc..I figure I should be able to do > this, since I can easily bring up 5 mozilla windows with the different > users and do what I need to do...Anyone have any tips or suggestions on > what I can do?, or is there another tool (open source, whatever) for > load simulating out there, that can help me with my problem..I honestly > dont think it is HtmlUnit itself, I might just need a new framework for > simulating loads... > > Thanks for everyones help! > > Thanks > Ed > |
From: Marc G. <mgu...@ya...> - 2005-06-03 10:50:35
|
Hi, what is "localengine"? Marc. Jean-Philippe HILAIRE wrote: > Hello guys, > > i have some trouble with mutiple select > > the select is send in html like this. > > <select name="test" multiple="multiple"size="5" > class="SeHeaderListDb"> > <option value="000" selected="selected">All</option> > <option value="001">test 1</option> > <option value="002">test 2</option> > <option value="003">test 3</option> > <option value="004">test 4</option> > </select> > > the default option selected is the first one. > > when i use this code: > > HtmlSelect testSelect = > thisForm.getSelectByName(TEST_SELECT_NAME); > assertTrue(testSelect.isMultipleSelectEnabled()); > //OK > HtmlOption testOption = > testSelect.getOptionByValue("002"); > localengine.click(); > assertTrue(testOption.isSelected());//KO > > the test fails. > > I did something wrong or it's the htmlunit behavior ?? > > thanks in advance!! > > > > > > > > > > > _____________________________________________________________________________ > Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos ! > Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Jean-Philippe H. <te...@ya...> - 2005-06-03 10:05:56
|
Hello guys, i have some trouble with mutiple select the select is send in html like this. <select name="test" multiple="multiple"size="5" class="SeHeaderListDb"> <option value="000" selected="selected">All</option> <option value="001">test 1</option> <option value="002">test 2</option> <option value="003">test 3</option> <option value="004">test 4</option> </select> the default option selected is the first one. when i use this code: HtmlSelect testSelect = thisForm.getSelectByName(TEST_SELECT_NAME); assertTrue(testSelect.isMultipleSelectEnabled()); //OK HtmlOption testOption = testSelect.getOptionByValue("002"); localengine.click(); assertTrue(testOption.isSelected());//KO the test fails. I did something wrong or it's the htmlunit behavior ?? thanks in advance!! _____________________________________________________________________________ Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com |
From: Dantes, E. <Ed....@gd...> - 2005-06-02 20:30:06
|
Hi all, Ok, this is a straightforward question, and I hope there is a way to resolve this. I have written a JUnit test case and TestSuite using HtmlUnit and JUnitPerf for load ramping. Now running through the application with one user was no problem whatsoever, though it had a ton of JavaScript and DHTML elements, I was able to hack HtmlUnit to get it to do what I wanted it to do. My goal however is to simulate as many users as I can, hoping ultimately to find a breaking point. I ran two users, with no problems but when I get to three, the program runs for around 10-15 min, before timing out with an 'out of memory' error. Earlier David suggested that I modify the JVM max heap, and which I did : %java -Xmx512m -version...and to my surprise it ran much slower than the previous and still gave me an out of memory error. Also, this application requires a login and username, and will not allow you to log in with the same username and password, if already logged in, hence the various testsuites: user1, user2, etc..I figure I should be able to do this, since I can easily bring up 5 mozilla windows with the different users and do what I need to do...Anyone have any tips or suggestions on what I can do?, or is there another tool (open source, whatever) for load simulating out there, that can help me with my problem..I honestly dont think it is HtmlUnit itself, I might just need a new framework for simulating loads... Thanks for everyones help! Thanks Ed=20 |
From: Brad C. <yo...@br...> - 2005-06-02 14:54:58
|
It doesn't look like that method was ever intended to be used externally. The only visible difference of using DescendantElementsIterator over Iterator is the nextElement() method that keeps you from needing to cast next() to HtmlElement. Brad C --- Tim R J Langford <ti...@mu...> wrote: > Hello Guys, > > When I try to use the following code with HTMLUnit 1.6 : > > >> DescendantElementsIterator elements = page.getAllHtmlChildElements(); > > > I get the following error for the import statement of > DescendantElementsIterator. > > >> > com.gargoylesoftware.htmlunit.html.DomNode.DescendantElementsIterator is > not visible. > > because it is a protected inner class. I can of course assign it to an > instance of Iterator, but I was wondering the intention of the inner > class as it seems a little unintuative. Am I using this method call > incorrectly? > > Thanks for your time. > > Tim |
From: Marc G. <mgu...@ya...> - 2005-06-02 10:27:46
|
can you try to minimze the page to get the absolute smallest html code that break. I don't have unpayed time to look at your special problem, but if it is small enough the chance is bigger that I - or someone else - can find time to look at it. Marc. SALL Ousmane wrote: > I try to process localy this page: > http://www.washingtonpost.com/wp-dyn/content/article/2005/05/08/AR2005050800802.html. > So i save it on my hard drive, and i call htmlunit > like this: > > WebClient webClient = new > WebClient(BrowserVersion.INTERNET_EXPLORER_6_0); > String webPagecode = doc.getAsString(); // the content > of local file > > MockWebConnection webConnection = new > MockWebConnection(webClient); > webConnection.setDefaultResponse(webPagecode); > webClient.setWebConnection(webConnection); > > HtmlPage = (HtmlPage) webClient.getPage(URL); > > Doing this, the exception come during getPage() > process. > > If i delete any javascript source like this: > var adCode = "" ; > adCode += ('<script language="JavaScript1.1" > src="http://ad.doubleclick.net/adj/'+keyvalues+'">'); > adCode += ('</script>'); > document.write(adCode); > > getPage() work well. > --- Marc Guillemot <mgu...@ya...> a écrit : > > >>Hi Sall, >> >>I don't fully understand the problem. Can your >>provide a minimal unit case illustrating it? >> >>Marc. >> >>SALL Ousmane wrote: >> >>>Hi, >>>Thanks, It work now if I dont use a >> >>MockWebConnection. >> >>>But when I use it I dont have any stacktrace, but >> >>only >> >>>an OutOfMemory error due to a line of code like : >>> var adCode = "" ; >>> adCode += ('<script language="JavaScript1.1" >>> >> > src="http://ad.doubleclick.net/adj/'+keyvalues+'">'); > >>> adCode += ('</script>'); >>> document.write(adCode); >>> >>>Maybe HtmlUnit is trying to load external URL but >> >>with >> >>>MockWebConnection it fail? >>> >>>Is there any way to avoid this external call, or >> >>maybe >> >>>made a pre-process to import remote javascript >> >>source >> >>>before apply htmlJUnit MockWebConnection ? >>>thank in advance for any help! >>>---- >>>SALL Ousmane >>>Hi, >>> >>> in the first case, I can imagine that the url is >> >>not >> >>>correctly resolved (what would explain >>>the long time before the >>> exeception). I can"t say more without stacktrace >> >>and >> >>>example of the failing code. >>> >>> In the second case, it looks like a classpath >> >>issue. >> >>>Are your sure to use the lib provided >>>with htmlunit and only these >>> libs? >>> >>> Marc. >>> >>> SALL Ousmane wrote: >>> > Hi there >>> > Currently i"am working with html unit on local >> >>page >> >>>in >>> > order to handle javascript redirection. >>> > It"s s >>>eems to work well, but i have 2 cases that >>> > generate exception: >>> > I load my local page like this: >>> > ----------------- >>> > WebClient client = new >>> > WebClient(BrowserVersion.MOZILLA_1_0); >>> > MockWebConnection cnx = new >>>MockWebConnection(client); >>> > >>> > cnx.setDefaultResponse(st); >>> > client.setWebConnection(cnx); >>> > >>> > HtmlPage page = (HtmlPage) client.getPage(new >>> > URL(url)); >>> > ----------------- >>> > >>> > >>> > And when i have some direct redirection in >>>javascript >>> > source, like: >>> > >>> > ---------------- >>> > <SCRIPT language="javascript"> >>> > >>> > window.open("misc/popup/popup_head.htm","","height=360,width=550"); > >>> > </SCRIPT> >>> > <HTML> >>> > <HEAD> >>> > ---------------- >>> > >>> > my application generate an exception, after a >> >>long >> >>> > time of exectution >>> > (maybe stackoverflow or time out ?) >>> > >>> > >>> > And when i have some javascript include by >>>javascript, >>> > like: >>> > ---------------- >>> > >>> > <SCRIPT language="JavaScript"> >>> > <!-- >>> > document.write("<script language="JavaScript" >>> > src="lib-load.js"></scr"+"ipt>") >>> > //--> >>> > </SCRIPT> >>> > ---------------- >>> > >>> > the generated exception is: >>> > >>> > java.lang.NoSuchMethodError: >>> > >>> > org.apache.commons.httpclient.util.EncodingUtil.getString([BIILjava/lang/StringLjava/lang/String; > >>> > at >>> > >>> > com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:842) > >>> > >>> > So, maybe it can be possible to pre-parse >>>javascript >>> > code in order to find that >>> > document.write will make a javascript >> >>inclusion? >> >>> > >>> > thank in advance for any help! >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > _____________________________________________________________________________ > >>> > Découvrez le nouveau Yahoo! Mail : 1 Go >> >>d"espace de >> >>>stockage pour vos mails, photos et >>>vidéos ! >>> > Créez votre Yahoo! Mail sur >>>http://fr.mail.yahoo.com >>> > >>> > >>> > >>> > ------------------------------------------------------- > >>> > This SF.Net email is sponsored by Yahoo. >>> > Introducing Yahoo! Search Developer Network - >>>Create apps using Yahoo! >>> > Search APIs Find out how you can build Yahoo! >>>directly into your own >>> > Applications - visit >>> >> > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > >>> > _______________________________________________ >>> > Htmlunit-user mailing list >>> > Htmlunit-user@li... >>> > >>> > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > >>> > >>> >>> >>> >>> >>> >>> >>> >>> >> > _____________________________________________________________________________ > >>>Découvrez le nouveau Yahoo! Mail : 1 Go d'espace >> >>de stockage pour vos mails, photos et vidéos ! >> >>>Créez votre Yahoo! Mail sur >> >>http://fr.mail.yahoo.com >> >>> >>> > ------------------------------------------------------- > >>>This SF.Net email is sponsored by Yahoo. >>>Introducing Yahoo! Search Developer Network - >> >>Create apps using Yahoo! >> >>>Search APIs Find out how you can build Yahoo! >> >>directly into your own >> >>>Applications - visit >> > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > >>>_______________________________________________ >>>Htmlunit-user mailing list >>>Htm...@li... >>> >> > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > >> >> >> > ------------------------------------------------------- > >>This SF.Net email is sponsored by Yahoo. >>Introducing Yahoo! Search Developer Network - Create >>apps using Yahoo! >>Search APIs Find out how you can build Yahoo! >>directly > > === message truncated === > > > > > > > > _____________________________________________________________________________ > Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos ! > Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: SALL O. <osa...@ya...> - 2005-06-02 10:11:40
|
I try to process localy this page: http://www.washingtonpost.com/wp-dyn/content/article/2005/05/08/AR2005050800802.html. So i save it on my hard drive, and i call htmlunit like this: WebClient webClient = new WebClient(BrowserVersion.INTERNET_EXPLORER_6_0); String webPagecode = doc.getAsString(); // the content of local file MockWebConnection webConnection = new MockWebConnection(webClient); webConnection.setDefaultResponse(webPagecode); webClient.setWebConnection(webConnection); HtmlPage = (HtmlPage) webClient.getPage(URL); Doing this, the exception come during getPage() process. If i delete any javascript source like this: var adCode = "" ; adCode += ('<script language="JavaScript1.1" src="http://ad.doubleclick.net/adj/'+keyvalues+'">'); adCode += ('</script>'); document.write(adCode); getPage() work well. --- Marc Guillemot <mgu...@ya...> a écrit : > Hi Sall, > > I don't fully understand the problem. Can your > provide a minimal unit case illustrating it? > > Marc. > > SALL Ousmane wrote: > > Hi, > > Thanks, It work now if I dont use a > MockWebConnection. > > But when I use it I dont have any stacktrace, but > only > > an OutOfMemory error due to a line of code like : > > var adCode = "" ; > > adCode += ('<script language="JavaScript1.1" > > > src="http://ad.doubleclick.net/adj/'+keyvalues+'">'); > > adCode += ('</script>'); > > document.write(adCode); > > > > Maybe HtmlUnit is trying to load external URL but > with > > MockWebConnection it fail? > > > > Is there any way to avoid this external call, or > maybe > > made a pre-process to import remote javascript > source > > before apply htmlJUnit MockWebConnection ? > > thank in advance for any help! > > ---- > > SALL Ousmane > > Hi, > > > > in the first case, I can imagine that the url is > not > > correctly resolved (what would explain > > the long time before the > > exeception). I can"t say more without stacktrace > and > > example of the failing code. > > > > In the second case, it looks like a classpath > issue. > > Are your sure to use the lib provided > > with htmlunit and only these > > libs? > > > > Marc. > > > > SALL Ousmane wrote: > > > Hi there > > > Currently i"am working with html unit on local > page > > in > > > order to handle javascript redirection. > > > It"s s > > eems to work well, but i have 2 cases that > > > generate exception: > > > I load my local page like this: > > > ----------------- > > > WebClient client = new > > > WebClient(BrowserVersion.MOZILLA_1_0); > > > MockWebConnection cnx = new > > MockWebConnection(client); > > > > > > cnx.setDefaultResponse(st); > > > client.setWebConnection(cnx); > > > > > > HtmlPage page = (HtmlPage) client.getPage(new > > > URL(url)); > > > ----------------- > > > > > > > > > And when i have some direct redirection in > > javascript > > > source, like: > > > > > > ---------------- > > > <SCRIPT language="javascript"> > > > > > > window.open("misc/popup/popup_head.htm","","height=360,width=550"); > > > </SCRIPT> > > > <HTML> > > > <HEAD> > > > ---------------- > > > > > > my application generate an exception, after a > long > > > time of exectution > > > (maybe stackoverflow or time out ?) > > > > > > > > > And when i have some javascript include by > > javascript, > > > like: > > > ---------------- > > > > > > <SCRIPT language="JavaScript"> > > > <!-- > > > document.write("<script language="JavaScript" > > > src="lib-load.js"></scr"+"ipt>") > > > //--> > > > </SCRIPT> > > > ---------------- > > > > > > the generated exception is: > > > > > > java.lang.NoSuchMethodError: > > > > > > org.apache.commons.httpclient.util.EncodingUtil.getString([BIILjava/lang/StringLjava/lang/String; > > > at > > > > > > com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:842) > > > > > > So, maybe it can be possible to pre-parse > > javascript > > > code in order to find that > > > document.write will make a javascript > inclusion? > > > > > > thank in advance for any help! > > > > > > > > > > > > > > > > > > > > > > > > _____________________________________________________________________________ > > > > > Découvrez le nouveau Yahoo! Mail : 1 Go > d"espace de > > stockage pour vos mails, photos et > > vidéos ! > > > Créez votre Yahoo! Mail sur > > http://fr.mail.yahoo.com > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by Yahoo. > > > Introducing Yahoo! Search Developer Network - > > Create apps using Yahoo! > > > Search APIs Find out how you can build Yahoo! > > directly into your own > > > Applications - visit > > > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > > > _______________________________________________ > > > Htmlunit-user mailing list > > > Htmlunit-user@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > > > > > > > > > > > > > > > _____________________________________________________________________________ > > > Découvrez le nouveau Yahoo! Mail : 1 Go d'espace > de stockage pour vos mails, photos et vidéos ! > > Créez votre Yahoo! Mail sur > http://fr.mail.yahoo.com > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by Yahoo. > > Introducing Yahoo! Search Developer Network - > Create apps using Yahoo! > > Search APIs Find out how you can build Yahoo! > directly into your own > > Applications - visit > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > > _______________________________________________ > > Htmlunit-user mailing list > > Htm...@li... > > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create > apps using Yahoo! > Search APIs Find out how you can build Yahoo! > directly === message truncated === _____________________________________________________________________________ Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com |
From: Marc G. <mgu...@ya...> - 2005-06-02 09:57:36
|
Hi Sall, I don't fully understand the problem. Can your provide a minimal unit case illustrating it? Marc. SALL Ousmane wrote: > Hi, > Thanks, It work now if I dont use a MockWebConnection. > But when I use it I dont have any stacktrace, but only > an OutOfMemory error due to a line of code like : > var adCode = "" ; > adCode += ('<script language="JavaScript1.1" > src="http://ad.doubleclick.net/adj/'+keyvalues+'">'); > adCode += ('</script>'); > document.write(adCode); > > Maybe HtmlUnit is trying to load external URL but with > MockWebConnection it fail? > > Is there any way to avoid this external call, or maybe > made a pre-process to import remote javascript source > before apply htmlJUnit MockWebConnection ? > thank in advance for any help! > ---- > SALL Ousmane > Hi, > > in the first case, I can imagine that the url is not > correctly resolved (what would explain > the long time before the > exeception). I can"t say more without stacktrace and > example of the failing code. > > In the second case, it looks like a classpath issue. > Are your sure to use the lib provided > with htmlunit and only these > libs? > > Marc. > > SALL Ousmane wrote: > > Hi there > > Currently i"am working with html unit on local page > in > > order to handle javascript redirection. > > It"s s > eems to work well, but i have 2 cases that > > generate exception: > > I load my local page like this: > > ----------------- > > WebClient client = new > > WebClient(BrowserVersion.MOZILLA_1_0); > > MockWebConnection cnx = new > MockWebConnection(client); > > > > cnx.setDefaultResponse(st); > > client.setWebConnection(cnx); > > > > HtmlPage page = (HtmlPage) client.getPage(new > > URL(url)); > > ----------------- > > > > > > And when i have some direct redirection in > javascript > > source, like: > > > > ---------------- > > <SCRIPT language="javascript"> > > > window.open("misc/popup/popup_head.htm","","height=360,width=550"); > > </SCRIPT> > > <HTML> > > <HEAD> > > ---------------- > > > > my application generate an exception, after a long > > time of exectution > > (maybe stackoverflow or time out ?) > > > > > > And when i have some javascript include by > javascript, > > like: > > ---------------- > > > > <SCRIPT language="JavaScript"> > > <!-- > > document.write("<script language="JavaScript" > > src="lib-load.js"></scr"+"ipt>") > > //--> > > </SCRIPT> > > ---------------- > > > > the generated exception is: > > > > java.lang.NoSuchMethodError: > > > org.apache.commons.httpclient.util.EncodingUtil.getString([BIILjava/lang/StringLjava/lang/String; > > at > > > com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:842) > > > > So, maybe it can be possible to pre-parse > javascript > > code in order to find that > > document.write will make a javascript inclusion? > > > > thank in advance for any help! > > > > > > > > > > > > > > > _____________________________________________________________________________ > > > Découvrez le nouveau Yahoo! Mail : 1 Go d"espace de > stockage pour vos mails, photos et > vidéos ! > > Créez votre Yahoo! Mail sur > http://fr.mail.yahoo.com > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by Yahoo. > > Introducing Yahoo! Search Developer Network - > Create apps using Yahoo! > > Search APIs Find out how you can build Yahoo! > directly into your own > > Applications - visit > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > > _______________________________________________ > > Htmlunit-user mailing list > > Htmlunit-user@li... > > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > > > > > _____________________________________________________________________________ > Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos ! > Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: SALL O. <osa...@ya...> - 2005-06-02 09:30:56
|
Hi, Thanks, It work now if I dont use a MockWebConnection. But when I use it I dont have any stacktrace, but only an OutOfMemory error due to a line of code like : var adCode = "" ; adCode += ('<script language="JavaScript1.1" src="http://ad.doubleclick.net/adj/'+keyvalues+'">'); adCode += ('</script>'); document.write(adCode); Maybe HtmlUnit is trying to load external URL but with MockWebConnection it fail? Is there any way to avoid this external call, or maybe made a pre-process to import remote javascript source before apply htmlJUnit MockWebConnection ? thank in advance for any help! ---- SALL Ousmane Hi, in the first case, I can imagine that the url is not correctly resolved (what would explain the long time before the exeception). I can"t say more without stacktrace and example of the failing code. In the second case, it looks like a classpath issue. Are your sure to use the lib provided with htmlunit and only these libs? Marc. SALL Ousmane wrote: > Hi there > Currently i"am working with html unit on local page in > order to handle javascript redirection. > It"s s eems to work well, but i have 2 cases that > generate exception: > I load my local page like this: > ----------------- > WebClient client = new > WebClient(BrowserVersion.MOZILLA_1_0); > MockWebConnection cnx = new MockWebConnection(client); > > cnx.setDefaultResponse(st); > client.setWebConnection(cnx); > > HtmlPage page = (HtmlPage) client.getPage(new > URL(url)); > ----------------- > > > And when i have some direct redirection in javascript > source, like: > > ---------------- > <SCRIPT language="javascript"> > window.open("misc/popup/popup_head.htm","","height=360,width=550"); > </SCRIPT> > <HTML> > <HEAD> > ---------------- > > my application generate an exception, after a long > time of exectution > (maybe stackoverflow or time out ?) > > > And when i have some javascript include by javascript, > like: > ---------------- > > <SCRIPT language="JavaScript"> > <!-- > document.write("<script language="JavaScript" > src="lib-load.js"></scr"+"ipt>") > //--> > </SCRIPT> > ---------------- > > the generated exception is: > > java.lang.NoSuchMethodError: > org.apache.commons.httpclient.util.EncodingUtil.getString([BIILjava/lang/StringLjava/lang/String; > at > com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:842) > > So, maybe it can be possible to pre-parse javascript > code in order to find that > document.write will make a javascript inclusion? > > thank in advance for any help! > > > > > > > _____________________________________________________________________________ > Découvrez le nouveau Yahoo! Mail : 1 Go d"espace de stockage pour vos mails, photos et vidéos ! > Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > _______________________________________________ > Htmlunit-user mailing list > Htmlunit-user@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > _____________________________________________________________________________ Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com |
From: Tim R J L. <ti...@mu...> - 2005-06-02 08:06:45
|
Hello Guys, When I try to use the following code with HTMLUnit 1.6 : >> DescendantElementsIterator elements = page.getAllHtmlChildElements(); I get the following error for the import statement of DescendantElementsIterator. >> com.gargoylesoftware.htmlunit.html.DomNode.DescendantElementsIterator is not visible. because it is a protected inner class. I can of course assign it to an instance of Iterator, but I was wondering the intention of the inner class as it seems a little unintuative. Am I using this method call incorrectly? Thanks for your time. Tim |
From: Brad C. <pr...@ya...> - 2005-06-01 21:14:54
|
The binary is packaged with all required jars. If you're building from source maven will retrieve whatever you need from ibiblio automagically. With ant you can run "ant initialize" to get them directly from ibiblio but this is not the prefered method. Brad C --- Robert Knox <Rob...@pl...> wrote: > Hi guys, > > > > First of all I just want to complement you guys on what seems like a > very cool project. I can't wait to try it out. > > > > I am having a few problems tracking down the jars I will need to run > things. > > > > You give a list of needed jars: > > I can not seem to find the following: > > > > saxpath-1.0-FCS.jar <http://saxpath.org/> > > commons-collections-3.1.jar > <http://jakarta.apache.org/commons/collections.html> ( broken link ) > > xercesImpl-2.6.2.jar <http://xml.apache.org/xerces2-j/index.html> > > xmlParserAPIs-2.2.1.jar <http://xml.apache.org/xerces2-j/index.html> > > > > Could you help me find them or send them to me? > > > > I suspect that most of these point to sites that have changed the name > of the jar and/or version. > > > > It might be a great idea to keep the version that is required on the > HTMLUNIT site so that HTMLUNIT has control over > > What it needs to build and run. > > > > Thanks, > > -R > > > > |
From: Alexandru P. <the...@ez...> - 2005-06-01 07:52:43
|
#: on behalf of Marc Guillemot :: 5/31/2005 2:20 PM :# > Alexandru Popescu wrote: > > I was just trying to help :-(. I will checkout the cvs project (through my modem connection from sf) > > and than submit again the patch. sorry for disregarding the complete rules. > > Alexandru, > > your help is really welcome, sorry if it appeared I was thinking something else. I just wanted to say that it won't take > you really much time to provide your patches in the right form (I've been patch proposer too ;-)) and it will really > spare committers time. > > Marc. > after some more testing i have to admit that the problem is not completely fixed by the patch. sorry. i will try to address it during the weekend. i would like to know how i can address the last problem where the requestBody is ignored for JS calls. any hints will be highly appreciated. :alex |.::the_mindstorm::.| |
From: Marc G. <mgu...@ya...> - 2005-06-01 07:35:47
|
As far I know, the key events are not yet supported . Marc. PS: why was the subject of your email "Disable Tidy"? Sridhar Ranganathan wrote: > Hello, > > I have a text field with "onkeypress" event (javascript) defined. What I > want to do is to enter the value to the field using setInputValue() and > to trigger this onkeypress event. > > To do it manually, after entering the value, I would press <Enter> key. > Using HtmlUnit, is there any way to activate this event ? > > Thanks > Sridhar > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: David D. K. <ddk...@ki...> - 2005-06-01 03:28:54
|
Last I knew, HtmlUnit did not support this JavaScript event. I would suggest filing an RFE (request for enhancement) for this feature. If you're really ambitious, you could try implementing it yourself and providing a patch. Dave On May 31, 2005, at 4:01 PM, Sridhar Ranganathan wrote: > Hello, > > I have a text field with "onkeypress" event (javascript) defined. > What I > want to do is to enter the value to the field using setInputValue() > and > to trigger this onkeypress event. > > To do it manually, after entering the value, I would press <Enter> > key. > Using HtmlUnit, is there any way to activate this event ? > > Thanks > Sridhar |
From: <ddk...@ki...> - 2005-05-31 22:42:05
|
You need a trailing "m" to specify megabytes, but you can't just specify this option. You need additional parameters (like -version): $ java -Xmx512m -version java version "1.4.2_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03) Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode) Note what happens if you add a space: $ java -Xmx 256m -version Invalid maximum heap size: -Xmx Could not create the Java virtual machine. Dave On Tue, May 31, 2005 at 02:31:28PM -0700, Dantes, Ed wrote: > Hi, > Thanks David for that answer, Im sure modifying the jvm is the > answer, though I tried typing at the command line %java -Xmx512, but > does not accept, am I doing this > wrong? > > Thanks > Ed > > -----Original Message----- > From: htm...@li... > [mailto:htm...@li...] On Behalf Of David D. > Kilzer > Sent: Tuesday, May 24, 2005 6:34 AM > To: htm...@li... > Subject: Re: [Htmlunit-user] Specifying which UserProfile on Netscape > and Mozilla > > First, I'll assume that you're switching back to a "real" browser > (Netscape/Mozilla) rather than using HtmlUnit because of the memory > errors. The user profiles in Netscape/Mozilla have absolutely nothing > to do with HtmlUnit. > > If you want to hit the same web site and log in multiple times on the > same PC, you'll need to use different browsers, such as: Mozilla Suite, > Firefox, Opera, MSIE 6, and Netscape (which just released version 8). > Each of these, running as a different executable, should allow you to > log in as five different users into your web application. (I suppose > you could also set up multiple proxy servers with different hostnames so > that you could log into one application multiple times with a single > browser, too.) > > How much memory does your PC have? At work, we give all of the > developers 1 GB so that they can run Tomcat (or JBoss), the IntelliJ > IDEA, a Fitnesse server, multiple web browsers and the application > they're working on all at the same time (as well as Windows apps like > Outlook). > > Did you try to determine why you're running out of memory in your tests? > Have you tried modifying the max size of the JVM heap when running the > tests (-Xmx=256m)? We found we had to do that when running our hundreds > or HtmlUnit-based tests within IntelliJ IDEA 4.5 or it would run out of > memory. > > Finally, what version of HtmlUnit are you using? Before 1.3 (or 1.4?), > there was a bug where memory would be consumed and not released until > the test process exited. (This was the primary reason we had to > increase the heap size to 256MB, if I remember correctly.) > > Dave > > > On May 23, 2005, at 4:55 PM, Dantes, Ed wrote: > > Hi, > > I was just wondering if there was a field where you can specify > > which the particular UserProfile box that comes up, when you use > > Netscape and Mozilla. There probably isnt a way to do this, but > > perhaps I should rephrase this another way. > > > > I am trying to load test my javascript application using HtmlUnit, > > JUnit and JUnitPerf. The web application requires you to login > > correctly prior to gaining access. Thus I have several users in > > tow: testuser1, testuser2, etc... all of which I am trying to emulate > > simultaneously. Basically each user has its own TestClass in which I > > add all the tests to the TestSuite. One or two users, work fine, but > > testing more users gives major problems, out of memory error to be > > exact. This all leads back to the UserProfile, because netscape will > > not allow you to log on as a different user after two...any responses > > on how I can do this? > > > > Thanks > > Ed > > > |
From: Dantes, E. <Ed....@gd...> - 2005-05-31 21:32:06
|
Hi, Thanks David for that answer, Im sure modifying the jvm is the answer, though I tried typing at the command line %java -Xmx512, but does not accept, am I doing this wrong? Thanks Ed=20 -----Original Message----- From: htm...@li... [mailto:htm...@li...] On Behalf Of David D. Kilzer Sent: Tuesday, May 24, 2005 6:34 AM To: htm...@li... Subject: Re: [Htmlunit-user] Specifying which UserProfile on Netscape and Mozilla First, I'll assume that you're switching back to a "real" browser (Netscape/Mozilla) rather than using HtmlUnit because of the memory errors. The user profiles in Netscape/Mozilla have absolutely nothing to do with HtmlUnit. If you want to hit the same web site and log in multiple times on the same PC, you'll need to use different browsers, such as: Mozilla Suite, Firefox, Opera, MSIE 6, and Netscape (which just released version 8). Each of these, running as a different executable, should allow you to log in as five different users into your web application. (I suppose you could also set up multiple proxy servers with different hostnames so that you could log into one application multiple times with a single browser, too.) How much memory does your PC have? At work, we give all of the developers 1 GB so that they can run Tomcat (or JBoss), the IntelliJ IDEA, a Fitnesse server, multiple web browsers and the application they're working on all at the same time (as well as Windows apps like Outlook). Did you try to determine why you're running out of memory in your tests? Have you tried modifying the max size of the JVM heap when running the tests (-Xmx=3D256m)? We found we had to do that when running our = hundreds or HtmlUnit-based tests within IntelliJ IDEA 4.5 or it would run out of memory. Finally, what version of HtmlUnit are you using? Before 1.3 (or 1.4?), there was a bug where memory would be consumed and not released until the test process exited. (This was the primary reason we had to increase the heap size to 256MB, if I remember correctly.) Dave On May 23, 2005, at 4:55 PM, Dantes, Ed wrote: > Hi, > I was just wondering if there was a field where you can specify=20 > which the particular UserProfile box that comes up, when you use=20 > Netscape and Mozilla. There probably isnt a way to do this, but=20 > perhaps I should rephrase this another way. > > I am trying to load test my javascript application using HtmlUnit,=20 > JUnit and JUnitPerf. The web application requires you to login=20 > correctly prior to gaining access. Thus I have several users in > tow: testuser1, testuser2, etc... all of which I am trying to emulate=20 > simultaneously. Basically each user has its own TestClass in which I=20 > add all the tests to the TestSuite. One or two users, work fine, but=20 > testing more users gives major problems, out of memory error to be=20 > exact. This all leads back to the UserProfile, because netscape will=20 > not allow you to log on as a different user after two...any responses=20 > on how I can do this? > > Thanks > Ed > ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=3Doffad-ysdn-ostg-q22005 _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Sridhar R. <Sri...@Su...> - 2005-05-31 21:01:06
|
Hello, I have a text field with "onkeypress" event (javascript) defined. What I want to do is to enter the value to the field using setInputValue() and to trigger this onkeypress event. To do it manually, after entering the value, I would press <Enter> key. Using HtmlUnit, is there any way to activate this event ? Thanks Sridhar -- Sridhar R |
From: Sridhar R. <Sri...@Su...> - 2005-05-31 20:50:23
|
Hello, I have a text field with "onkeypress" event (javascript) defined. What I want to do is to enter the value to the field using setInputValue() and to trigger this onkeypress event. To do it manually, after entering the value, I would press <Enter> key. Using HtmlUnit, is there any way to activate this event ? Thanks Sridhar |
From: Marc G. <mgu...@ya...> - 2005-05-31 12:20:40
|
Alexandru Popescu wrote: > I was just trying to help :-(. I will checkout the cvs project (through my modem connection from sf) > and than submit again the patch. sorry for disregarding the complete rules. Alexandru, your help is really welcome, sorry if it appeared I was thinking something else. I just wanted to say that it won't take you really much time to provide your patches in the right form (I've been patch proposer too ;-)) and it will really spare committers time. Marc. |
From: Alexandru P. <the...@ez...> - 2005-05-31 12:03:52
|
#: on behalf of Marc Guillemot :: 5/31/2005 1:52 PM :# >> Thanks Marc. that was only meant to be assured that it is in the right= direction (and it was a `diff >> -u=C2=B4 and also respecting the coding style ;-)). >=20 > but not a cvs diff. Therefore no structure information was provided wha= t prohibits to apply it quickly (for instance=20 > using Eclipse's Apply patch). It needs to be a cvs diff made in the roo= t of the project. >=20 > Marc. >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit http://developer.yahoo.net/?fr=3Doffad-ysdn-ostg-q= 22005 > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user >=20 >=20 I was just trying to help :-(. I will checkout the cvs project (through m= y modem connection from sf) and than submit again the patch. sorry for disregarding the complete rule= s. :alex |.::the_mindstorm::.| ps: the attached file should work with Eclipse's Apply patch mechanism. T= est unit is provided here: http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1209692&grou= p_id=3D47038&atid=3D448266 |
From: Marc G. <mgu...@ya...> - 2005-05-31 11:50:10
|
> Thanks Marc. that was only meant to be assured that it is in the right direction (and it was a `diff > -u´ and also respecting the coding style ;-)). but not a cvs diff. Therefore no structure information was provided what prohibits to apply it quickly (for instance using Eclipse's Apply patch). It needs to be a cvs diff made in the root of the project. Marc. |
From: Alexandru P. <the...@ez...> - 2005-05-31 11:44:23
|
#: on behalf of Marc Guillemot :: 5/31/2005 1:19 PM :# > Alexandru, >=20 > the problem has more chance to be quickly fixed if you provide the patc= h in the right format and post it as attachment=20 > of an issue on the bug tracking system with appropriate unit tests. >=20 > See: > http://htmlunit.sourceforge.net/submittingPatches.html >=20 > Marc. >=20 >=20 Thanks Marc. that was only meant to be assured that it is in the right di= rection (and it was a `diff -u=B4 and also respecting the coding style ;-)). about unit tests, unfortunately i don't think i will have the time to inv= estigate how i can right some for htmlunit, moreover there is already one test submitted. tia, :alex |.::the_mindstorm::.| >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit http://developer.yahoo.net/?fr=3Doffad-ysdn-ostg-q= 22005 > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user >=20 >=20 |
From: Marc G. <mgu...@ya...> - 2005-05-31 11:19:29
|
Alexandru, the problem has more chance to be quickly fixed if you provide the patch in the right format and post it as attachment of an issue on the bug tracking system with appropriate unit tests. See: http://htmlunit.sourceforge.net/submittingPatches.html Marc. |
From: Alexandru P. <the...@ez...> - 2005-05-31 09:43:24
|
#: on behalf of Marc Guillemot :: 5/31/2005 11:25 AM :# > Seems to me that the problems you mention are the same as the ones desc= ribed in the bugs: >=20 > http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1209692&gr= oup_id=3D47038&atid=3D448266 > and > http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1209682&gr= oup_id=3D47038&atid=3D448266 >=20 > Marc. >=20 > Alexandru Popescu wrote: >> #: on behalf of Alexandru Popescu :: 5/31/2005 12:04 PM :# >>=20 >>>Hi! >>> >>>I was trying to test one of my working project page >>>using HtmlUnit. The tricky part about this was >>>that the page under test uses DWR to fill in 3 >>>select-s: the 1st one triggered by the body onload, >>>and the other 2 by the preceding select onchange event. >>> >>>It seems i have reached some problems (and I am not >>>sure which side is not working correctly), but >>>after some `hacking=B4 i've been able to pass over some >>>of the problems, ending by a message from DWR >>>stating that `if i understand the way my browser works >>>[...]=B4. >>> >>>After some more invesigation it seems like DWR is not >>>reading the parameters (or maybe HtmlUnit is >>>not correctly transmitting them). >>> >>>A more detailed comment about the patches i need to >>>apply is here: htmlunit and dwr [1] >>> >>>Now my questions are: >>>1/ is anybody successfully tested such a scenario? >>>2/ can anybody put some light on the last problem? (or >>>on the previous one, in case i did something >>>wrong). >>> >>>:alex |.::the_mindstorm::.| >>> >>>ps: sorry for posting it to the ml too >>> >>> >>=20 >>=20 >> As a continuation to this (after some digging): >>=20 >> 1/ DWR is generating a script that has a relative URL in the form: >> /servletContext/servlet/dwr/exec/DwrService.findITByUserID which resul= ts in the following error from >> htmlunit: >>=20 >> [213ms][ERROR][com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRe= quest] - <Unable to initialize >> XMLHttpRequest using malformed URL '/ezreport/servlet/dwr/exec/DwrServ= ice.findITByUserID'.> >>=20 >> I've been able to patch this but on the DWR side and I think this is n= ot quite correct. >>=20 >> However the next problem seems more important: >>=20 >> 2/ the above function has to receive a set of parameters from the POST= method. >> XMLHttpRequest is setting in the WebRequestSettings.setRequestBody() w= ith the following arg: >> =09 >> c0-scriptName=3DDwrService >> callCount=3D1 >> c0-param0=3Dstring:7 >> c0-id=3D8360_1117530060338 >> c0-methodName=3DfindITByUserID >> xml=3Dtrue >>=20 >> (i think these are correct at least from the pov of DWR), >> but later >> WebResponse webResponse=3D makeWebResponseForJavaScriptUrl(webWindow, = WebRequestSettings.getURL()) >> so it seems it is missing all the body. >>=20 >> I guess that if i will be able to include the above content than it sh= ould work. What is your >> impression? >>=20 >>=20 >> i would really like to find out what the experts of htmlunit think abo= ut the aboves. >>=20 >> tia, >> :alex |.::the_mindstorm::.| >>=20 >>=20 >> ------------------------------------------------------- >> This SF.Net email is sponsored by Yahoo. >> Introducing Yahoo! Search Developer Network - Create apps using Yahoo! >> Search APIs Find out how you can build Yahoo! directly into your own >> Applications - visit http://developer.yahoo.net/?fr=3Dfad-ysdn-ostg-q2= 2005 >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit http://developer.yahoo.net/?fr=3Doffad-ysdn-ostg-q= 22005 > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user >=20 >=20 Yes they seem to be quite near. For the 1st one i think i already have a patch, and i will submit it here= for review. (the one in HtmlScript - see attachement). Pls let me know what do you think about it= . What is missing is an idea about what is happening with the WebRequestSet= tings.requestBody. Is there a way i can modify the makeWebResponseForJavaScriptUrl to includ= e also the WebRequestSettings.getRequestBody? :alex |.::the_mindstorm::.| |
From: Marc G. <mgu...@ya...> - 2005-05-31 09:22:51
|
Seems to me that the problems you mention are the same as the ones described in the bugs: http://sourceforge.net/tracker/index.php?func=detail&aid=1209692&group_id=47038&atid=448266 and http://sourceforge.net/tracker/index.php?func=detail&aid=1209682&group_id=47038&atid=448266 Marc. Alexandru Popescu wrote: > #: on behalf of Alexandru Popescu :: 5/31/2005 12:04 PM :# > >>Hi! >> >>I was trying to test one of my working project page >>using HtmlUnit. The tricky part about this was >>that the page under test uses DWR to fill in 3 >>select-s: the 1st one triggered by the body onload, >>and the other 2 by the preceding select onchange event. >> >>It seems i have reached some problems (and I am not >>sure which side is not working correctly), but >>after some `hacking´ i've been able to pass over some >>of the problems, ending by a message from DWR >>stating that `if i understand the way my browser works >>[...]´. >> >>After some more invesigation it seems like DWR is not >>reading the parameters (or maybe HtmlUnit is >>not correctly transmitting them). >> >>A more detailed comment about the patches i need to >>apply is here: htmlunit and dwr [1] >> >>Now my questions are: >>1/ is anybody successfully tested such a scenario? >>2/ can anybody put some light on the last problem? (or >>on the previous one, in case i did something >>wrong). >> >>:alex |.::the_mindstorm::.| >> >>ps: sorry for posting it to the ml too >> >> > > > As a continuation to this (after some digging): > > 1/ DWR is generating a script that has a relative URL in the form: > /servletContext/servlet/dwr/exec/DwrService.findITByUserID which results in the following error from > htmlunit: > > [213ms][ERROR][com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest] - <Unable to initialize > XMLHttpRequest using malformed URL '/ezreport/servlet/dwr/exec/DwrService.findITByUserID'.> > > I've been able to patch this but on the DWR side and I think this is not quite correct. > > However the next problem seems more important: > > 2/ the above function has to receive a set of parameters from the POST method. > XMLHttpRequest is setting in the WebRequestSettings.setRequestBody() with the following arg: > > c0-scriptName=DwrService > callCount=1 > c0-param0=string:7 > c0-id=8360_1117530060338 > c0-methodName=findITByUserID > xml=true > > (i think these are correct at least from the pov of DWR), > but later > WebResponse webResponse= makeWebResponseForJavaScriptUrl(webWindow, WebRequestSettings.getURL()) > so it seems it is missing all the body. > > I guess that if i will be able to include the above content than it should work. What is your > impression? > > > i would really like to find out what the experts of htmlunit think about the aboves. > > tia, > :alex |.::the_mindstorm::.| > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit http://developer.yahoo.net/?fr=fad-ysdn-ostg-q22005 > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |