jwebunit-users Mailing List for JWebUnit (Page 6)
Brought to you by:
henryju
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(42) |
Jul
(34) |
Aug
(19) |
Sep
(70) |
Oct
(22) |
Nov
(28) |
Dec
(15) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(11) |
Feb
(30) |
Mar
(36) |
Apr
(14) |
May
(48) |
Jun
(39) |
Jul
(30) |
Aug
(35) |
Sep
(21) |
Oct
(19) |
Nov
(8) |
Dec
(30) |
2006 |
Jan
(25) |
Feb
(24) |
Mar
(45) |
Apr
(13) |
May
(28) |
Jun
(60) |
Jul
(68) |
Aug
(26) |
Sep
(50) |
Oct
(71) |
Nov
(42) |
Dec
(24) |
2007 |
Jan
(59) |
Feb
(23) |
Mar
(43) |
Apr
(12) |
May
(25) |
Jun
(12) |
Jul
(10) |
Aug
(5) |
Sep
(38) |
Oct
(16) |
Nov
(11) |
Dec
(8) |
2008 |
Jan
(7) |
Feb
(11) |
Mar
(9) |
Apr
(8) |
May
(8) |
Jun
(3) |
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(12) |
Nov
|
Dec
(1) |
2009 |
Jan
(4) |
Feb
(5) |
Mar
(6) |
Apr
(8) |
May
(17) |
Jun
(5) |
Jul
(37) |
Aug
(19) |
Sep
(2) |
Oct
(11) |
Nov
(5) |
Dec
(11) |
2010 |
Jan
(2) |
Feb
(26) |
Mar
(12) |
Apr
(19) |
May
(1) |
Jun
(17) |
Jul
(7) |
Aug
(3) |
Sep
(13) |
Oct
(19) |
Nov
(4) |
Dec
(4) |
2011 |
Jan
(7) |
Feb
(4) |
Mar
(3) |
Apr
(1) |
May
(2) |
Jun
(2) |
Jul
|
Aug
(14) |
Sep
(3) |
Oct
(3) |
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(4) |
Aug
(12) |
Sep
(11) |
Oct
(3) |
Nov
(6) |
Dec
|
2013 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
(1) |
Jul
(4) |
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
|
2014 |
Jan
|
Feb
(2) |
Mar
(4) |
Apr
|
May
(4) |
Jun
|
Jul
(7) |
Aug
(2) |
Sep
(6) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(6) |
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
From: Gible F. <gi...@gi...> - 2011-01-05 23:12:25
|
This is just a note for others head-butting the same problem. I have the following code in my test: tester.assertCheckboxPresent("aname", "avalue"); tester.checkCheckbox("aname", "avalue"); The (first line) assertion works fine, but the second fails with the result: "caused an ERROR: No checkbox with name [aname] and value [avalue] was found in the current form." The issue is that assertCheckboxPresent uses getTestingEngine().hasElementByXPath(..) to determine success whereas the second iterates through the named input elements of the current form checking each for type and value. This fails for me because I'm actually interested in the /not first/ form of the page and unles you select a form first with setWorkingForm(...) it only searchs the first form on the page. My solution: tester.setWorkingForm("aform"); tester.assertCheckboxPresent("aname", "avalue"); tester.checkCheckbox("aname", "avalue"); regards Gible |
From: Julien H. <he...@ya...> - 2010-12-23 09:01:47
|
Great! Thanks for feedback. > >De : NiceHobbit <nic...@gm...> >À : Usage problems for JWebUnit <jwe...@li...> >Envoyé le : Mer 22 décembre 2010, 21h 23min 58s >Objet : Re: [JWebUnit-users] Re : Testing ModalWindow > >Hi! > >I finally resolved it. After a few more tests and "googling", we realized the >problem was the version of htmlunit. We updated to 2.8 and everything worked >just fine. > > >Regards, >NH > > >On Wed, Dec 15, 2010 at 12:54 PM, Julien HENRY <he...@ya...> wrote: > >Hi, >> >>I don't know how Wicket works but I guess this is a DHTML window. >>getPageSource() will return the page source (HTML) like a real browser (means >>what was downloaded from the server). So this is normal it doesn't contain >>dynamique elements. >> >>If you are using AJAX to display the window, you may need to change the >>refreshhandler (this topic was already discussed on this list). >> >>Regards, >> >>Julien >> >>> >>>De : NiceHobbit <nic...@gm...> >>>À : jwe...@li... >>>Envoyé le : Mer 15 décembre 2010, 16h 37min 54s >>>Objet : [JWebUnit-users] Testing ModalWindow >> >>> >>> >>>Hi! >>>Has anyone tested or used jwebunit with wicket? After clicking the link that >>>enables the modal window, I want to assert that some elements are present in >>>that modal window. But I can't because I got the message that such element or >>>text is not present. I also noticed that the tester.getPageSource(); >>doesn't >>> >>>have the source code of the modal window. >>> >>> >>>Any comments will be useful =) >>> >>>BR >>> >>> >> >>------------------------------------------------------------------------------ >>Lotusphere 2011 >>Register now for Lotusphere 2011 and learn how >>to connect the dots, take your collaborative environment >>to the next level, and enter the era of Social Business. >>http://p.sf.net/sfu/lotusphere-d2d >>_______________________________________________ >>JWebUnit-users mailing list >>JWe...@li... >>https://lists.sourceforge.net/lists/listinfo/jwebunit-users >> > |
From: NiceHobbit <nic...@gm...> - 2010-12-22 20:24:06
|
Hi! I finally resolved it. After a few more tests and "googling", we realized the problem was the version of htmlunit. We updated to 2.8 and everything worked just fine. Regards, NH On Wed, Dec 15, 2010 at 12:54 PM, Julien HENRY <he...@ya...> wrote: > Hi, > > I don't know how Wicket works but I guess this is a DHTML window. > getPageSource() will return the page source (HTML) like a real browser > (means > what was downloaded from the server). So this is normal it doesn't contain > dynamique elements. > > If you are using AJAX to display the window, you may need to change the > refreshhandler (this topic was already discussed on this list). > > Regards, > > Julien > > > > >De : NiceHobbit <nic...@gm...> > >À : jwe...@li... > >Envoyé le : Mer 15 décembre 2010, 16h 37min 54s > >Objet : [JWebUnit-users] Testing ModalWindow > > > > > >Hi! > >Has anyone tested or used jwebunit with wicket? After clicking the link > that > >enables the modal window, I want to assert that some elements are present > in > >that modal window. But I can't because I got the message that such > element or > >text is not present. I also noticed that the tester.getPageSource(); > doesn't > > > >have the source code of the modal window. > > > > > >Any comments will be useful =) > > > >BR > > > > > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > |
From: Julien H. <he...@ya...> - 2010-12-15 15:54:09
|
Hi, I don't know how Wicket works but I guess this is a DHTML window. getPageSource() will return the page source (HTML) like a real browser (means what was downloaded from the server). So this is normal it doesn't contain dynamique elements. If you are using AJAX to display the window, you may need to change the refreshhandler (this topic was already discussed on this list). Regards, Julien > >De : NiceHobbit <nic...@gm...> >À : jwe...@li... >Envoyé le : Mer 15 décembre 2010, 16h 37min 54s >Objet : [JWebUnit-users] Testing ModalWindow > > >Hi! >Has anyone tested or used jwebunit with wicket? After clicking the link that >enables the modal window, I want to assert that some elements are present in >that modal window. But I can't because I got the message that such element or >text is not present. I also noticed that the tester.getPageSource(); doesn't > >have the source code of the modal window. > > >Any comments will be useful =) > >BR > > |
From: NiceHobbit <nic...@gm...> - 2010-12-15 15:38:00
|
Hi! Has anyone tested or used jwebunit with wicket? After clicking the link that enables the modal window, I want to assert that some elements are present in that modal window. But I can't because I got the message that such element or text is not present. I also noticed that the tester.getPageSource(); doesn't have the source code of the modal window. Any comments will be useful =) BR |
From: lakshmi s. <lso...@gm...> - 2010-11-24 12:08:21
|
Dear Users, Can someone tell me how to call "onkeyup" function in SetTextField. The buttons on the form are clickable only if this onkeyup function is called. Is there any API in JWebunitto fire the onkeyup event? The HTML code looks like this: <td><input type="text" name="bankruptcyFileDate" size="9" value="" onkeyup="toggleSubmitButton(document.BankruptcyListForm)" alt="Effective Date"></td> Thank you, Lakshmi |
From: Jevon W. <je...@je...> - 2010-11-24 00:44:07
|
I suggest renaming assertTitleNotSame() to assertTitleNotEquals(), and deprecating the assertTitleNotSame() method (which calls assertTitleNotEquals()). There are no other xxxNotSame() methods in the API. Jevon On Wed, Nov 24, 2010 at 3:40 AM, Julien HENRY <he...@ya...> wrote: > Hi Tony, > > As I can't say it is a feature, I guess it's a bug > > Could you please submit a bug on Sourceforge? > > Thanks > > Julien > > ------------------------------ > *De :* "Qian, Daqi" <dq...@ca...> > *À :* jwe...@li... > *Envoyé le :* Mar 23 novembre 2010, 14h 57min 07s > *Objet :* [JWebUnit-users] a question regarding assertTitleNotSame > > > > All, > > > > I have a question regarding assertTitleNotSame(String title). > > > > Accroding to javadoc, this method is to check if the page title is not > equal to the value of title passed in the method. > > > > /** > > * Assert title of current html page in conversation is not > > * equal to another value. > > * > > * *@param* title > > * unexpected title value > > */ > > > > But this method calls Assert.assertNotSame(title, > getTestEngine().getPageTitle()); Assert.assertNotSame calls following method > > > > *static* *public* *void* assertNotSame(String message, Object expected, > Object actual) { > > *if* (expected == actual) > > *failSame*(message); > > } > > > > As you can see, we are comparing references (addresses in memory), not > string values. Therefore, assertTitleNotSame(String title) always > succeeds. > > > > Thanks, > > Tony > > > > *Confidentiality Notice*: This electronic message transmission, including > any attachment(s), may contain confidential, proprietary, or privileged > information from Chemical Abstracts Service (“CAS”), a division of the > American Chemical Society (“ACS”). If you have received this transmission in > error, be advised that any disclosure, copying, distribution, or use of the > contents of this information is strictly prohibited. Please destroy all > copies of the message and contact the sender immediately by either replying > to this message or calling 614-447-3600. > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > |
From: Julien H. <he...@ya...> - 2010-11-23 14:40:30
|
Hi Tony, As I can't say it is a feature, I guess it's a bug Could you please submit a bug on Sourceforge? Thanks Julien ________________________________ De : "Qian, Daqi" <dq...@ca...> À : jwe...@li... Envoyé le : Mar 23 novembre 2010, 14h 57min 07s Objet : [JWebUnit-users] a question regarding assertTitleNotSame All, I have a question regarding assertTitleNotSame(String title). Accroding to javadoc, this method is to check if the page title is not equal to the value of title passed in the method. /** * Assert title of current html page in conversation is not * equal to another value. * * @paramtitle * unexpected title value */ But this method calls Assert.assertNotSame(title, getTestEngine().getPageTitle()); Assert.assertNotSame calls following method staticpublicvoidassertNotSame(String message, Object expected, Object actual) { if(expected == actual) failSame(message); } As you can see, we are comparing references (addresses in memory), not string values. Therefore, assertTitleNotSame(String title) always succeeds. Thanks, Tony Confidentiality Notice: This electronic message transmission, including any attachment(s), may contain confidential, proprietary, or privileged information from Chemical Abstracts Service (“CAS”), a division of the American Chemical Society (“ACS”). If you have received this transmission in error, be advised that any disclosure, copying, distribution, or use of the contents of this information is strictly prohibited. Please destroy all copies of the message and contact the sender immediately by either replying to this message or calling 614-447-3600. |
From: Qian, D. <dq...@ca...> - 2010-11-23 13:57:14
|
All, I have a question regarding assertTitleNotSame(String title). Accroding to javadoc, this method is to check if the page title is not equal to the value of title passed in the method. /** * Assert title of current html page in conversation is not * equal to another value. * * @param title * unexpected title value */ But this method calls Assert.assertNotSame(title, getTestEngine().getPageTitle()); Assert.assertNotSame calls following method static public void assertNotSame(String message, Object expected, Object actual) { if (expected == actual) failSame(message); } As you can see, we are comparing references (addresses in memory), not string values. Therefore, assertTitleNotSame(String title) always succeeds. Thanks, Tony Confidentiality Notice: This electronic message transmission, including any attachment(s), may contain confidential, proprietary, or privileged information from Chemical Abstracts Service ("CAS"), a division of the American Chemical Society ("ACS"). If you have received this transmission in error, be advised that any disclosure, copying, distribution, or use of the contents of this information is strictly prohibited. Please destroy all copies of the message and contact the sender immediately by either replying to this message or calling 614-447-3600. |
From: Julien H. <he...@ya...> - 2010-10-24 11:45:39
|
Hi all, JWebUnit 2.5 is released and should be quickly available for download on Maven central and Sourceforge. We are now working on JWebUnit 3.0 that should provide a JUnit 4 compliant API and possibly other interesting changes. Regards, Julien |
From: Jevon W. <je...@je...> - 2010-10-20 04:24:23
|
Hi Jeff, It looks like you may have been creating the image dynamically using AJAX? By default, JWebUnit returns as soon as a page has loaded (and executes onLoad and inline scripts), and not when all AJAX or timed scripts return - which can cause this sort of problem. Have you looked at using the NicelySynchronizedAjaxController? Cheers Jevon On Sun, Oct 17, 2010 at 11:27 AM, Jeff Davies <jef...@ya...> wrote: > After reading Jevon Wrights response to my initial problem, I took some more > time and created the simplest page possible the dynamically create an image. > I then wrote a test case to see if I could find my <img> tag and it worked! > I also noticed that the time it took for the test case to run on my simple > page was much less than my "live" page. So I started to wonder if it might > be a timing issue. > I added a Thread.sleep(10000) to pause for 10 seconds and let the page fully > load and run and that did the trick! > The assertElementPresentByXPath("//img[@id='inviteAdmin']"); executed > without a hitch. Now that I know how to get this to work, I'm off and > running at full speed with JWebUnit. I'm very excited to get some > significant test written because doing the testing manually is becoming a > real chore. > Thanks for your help! > - Jeff > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > |
From: Julien H. <he...@ya...> - 2010-10-17 10:54:15
|
Thanks for the feedback Jeff. Happy testing! Julien > >De : Jeff Davies <jef...@ya...> >À : jwe...@li... >Envoyé le : Dim 17 octobre 2010, 5h 27min 37s >Objet : [JWebUnit-users] javascript/JQuery problem: RESOLVED > > >After reading Jevon Wrights response to my initial problem, I took some more >time and created the simplest page possible the dynamically create an image. I >then wrote a test case to see if I could find my <img> tag and it worked! I also >noticed that the time it took for the test case to run on my simple page was >much less than my "live" page. So I started to wonder if it might be a timing >issue. > > >I added a Thread.sleep(10000) to pause for 10 seconds and let the page fully >load and run and that did the trick! >The assertElementPresentByXPath("//img[@id='inviteAdmin']"); executed without a >hitch. Now that I know how to get this to work, I'm off and running at full >speed with JWebUnit. I'm very excited to get some significant test written >because doing the testing manually is becoming a real chore. > > >Thanks for your help! > > >- Jeff |
From: Jeff D. <jef...@ya...> - 2010-10-17 03:27:45
|
After reading Jevon Wrights response to my initial problem, I took some more time and created the simplest page possible the dynamically create an image. I then wrote a test case to see if I could find my <img> tag and it worked! I also noticed that the time it took for the test case to run on my simple page was much less than my "live" page. So I started to wonder if it might be a timing issue. I added a Thread.sleep(10000) to pause for 10 seconds and let the page fully load and run and that did the trick! The assertElementPresentByXPath("//img[@id='inviteAdmin']"); executed without a hitch. Now that I know how to get this to work, I'm off and running at full speed with JWebUnit. I'm very excited to get some significant test written because doing the testing manually is becoming a real chore. Thanks for your help! - Jeff |
From: lakshmi s. <lso...@gm...> - 2010-10-14 16:39:07
|
Thanks! Eric. On Wed, Oct 13, 2010 at 9:39 AM, Eric Jelinek <eje...@ho...> wrote: > Jothi, > > > > You can find instructions on how to build JWebUnit here, > http://jwebunit.sourceforge.net/building-maven.html > > > > *From:* lakshmi somavaram [mailto:lso...@gm...] > *Sent:* Wednesday, October 13, 2010 9:36 AM > *To:* Usage problems for JWebUnit > *Subject:* Re: [JWebUnit-users] Re : Re : Issues with ClickElementByXPath > > > > Hi Julien, > > > > Could you please point me to where the instructions are on how to build a > snapshot from trunk? > > > > Thank you, > > Jothi. > > On Tue, Oct 12, 2010 at 1:14 PM, Julien HENRY <he...@ya...> wrote: > > Hi Lakshmi, > > > >Thank you for trying to release an updated version. May I know, when I can > >expect the latest version. > > No date planned for now. You can still build a snapshot from trunk that is > very > stable as we didn't do so much changes. I will try to do a release before > end of > october. > > > >Is it possible to use Jwebunit to test applications written in ASP.Net? > > JWebUnit simulates a web browser, so it can test any web application, > whatever > is the server side technology. > > > Regards, > > Julien > > > > > >De : lakshmi somavaram <lso...@gm...> > >À : Usage problems for JWebUnit <jwe...@li...> > > >Envoyé le : Mar 12 octobre 2010, 19h 58min 43s > > >Objet : Re: [JWebUnit-users] Re : Issues with ClickElementByXPath > > > > > >Hi Julien, > > > >Thank you for trying to release an updated version. May I know, when I can > >expect the latest version. > > > >Is it possible to use Jwebunit to test applications written in ASP.Net? > > > >My original issue: My application starts of as a J2EE application and then > it > >makes requests to another application that is written in ASP.Net. It is in > the > >other application that I am getting an error. So, just wanted to know if > >JWebUnit can support ASP.Net applications. > > > >Thank you, > >Lakshmi. > > > > > >On Wed, Oct 6, 2010 at 2:18 AM, Julien HENRY <he...@ya...> wrote: > > > >I worked yesterday on updating JWebUnit to use HtmlUnit 2.8. I'll wait a > few > >days before releasing in order to let early adopters a chance to build a > >snapshot from trunk and report any regression. > >> > >>Regards, > >> > >>Julien > >> > >>> > >>>De : lakshmi somavaram <lso...@gm...> > >>>À : Usage problems for JWebUnit <jwe...@li...> > >>>Envoyé le : Mer 6 octobre 2010, 0h 34min 52s > >>>Objet : Re: [JWebUnit-users] Re : Issues with ClickElementByXPath > >>> > >>> > >>> > >>>Hi Julien, > >>> > >>>I had a similar issue in the begining of the year. It was due to the > embedded > > >>>Java Script. After installing JWebUnit2.3 that problem disappeared. I > think it > > > >>>was due to the JavaScript support in the htmlunitEngine. > >>> > >>>I know there is an updated version of htmlunit-2.8 (I think). Will > JWebUnit be > > > >>>released any time soon with the new versions of htmlunit files? > >>> > >>>Thank you, > >>>Lakshmi > >>> > >>> > >>>On Tue, Oct 5, 2010 at 3:59 PM, Julien HENRY <he...@ya...> wrote: > >>> > >>>Hi, > >>>> > >>>>According to me the click was successful but the processing of the > event produce > >>>> > >>>>an error on the server: > >>>> > >>>> > >>>>500 Internal Server Error for > >>>> > https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do > >>>> > >>>>Please check your server logs to know what is the problem. > >>>> > >>>>Regards, > >>>> > >>>>Julien > >>>> > >>>> > >>>>> > >>>>>De : lakshmi somavaram <lso...@gm...> > >>>>>À : Usage problems for JWebUnit <jwe...@li... > > > >>>>>Envoyé le : Mar 5 octobre 2010, 22h 08min 20s > >>>>>Objet : [JWebUnit-users] Issues with ClickElementByXPath > >>>>> > >>>>> > >>>>> > >>>>>Dear Users, > >>>>> > >>>>>I am having issues with ClickElementByXPath function. I am listing > below the > > > >>>>>HTML code, JWebUnit Code and the error message. I am getting > "exception invoking > >>>>> > >>>>>jsxFunction_go" and "http 500 internal server error". > >>>>>Please let me know how this can be solved. > >>>>> > >>>>>I am using the JWebunit 2.3. > >>>>> > >>>>>Thank you, > >>>>>Lakshmi. > >>>>> > >>>>>My HTML code: > >>>>>---------------------- > >>>>><a tabindex="101" href="javascript:selCust(1937890)"> > >>>>> TRIPLE D FARMS LLC > >>>>> </a> > > >>>>>-------------------------------------------------------------------------- > >>>>> > >>>>><script language="JavaScript"> > >>>>><!-- > >>>>> > >>>>> function selCust(coreId) > >>>>> { > >>>>> document.ResultForm.pageAction.value = "SelCust"; > >>>>> document.ResultForm.coreId.value = coreId; > >>>>> document.ResultForm.submit(); > >>>>> } > >>>>>//--> > >>>>></script> > >>>>> > >>>>>JWEBUNIT Code: > >>>>>-------------------------- > >>>>>clickElementByXPath("//a[@tabindex='101' and > >>>>>@href='javascript:selCust(1937890)']"); > >>>>>Tried also,clickElementByXPath("//a[@tabindex='101' and > @href=contains(@href, > >> > >>>>>'javascript:')]"); > >>>>> > >>>>>ERROR: > >>>>>======= EXCEPTION START ======== > >>>>>Exception class=[java.lang.RuntimeException] > >>>>>com.gargoylesoftware.htmlunit.ScriptException: Exception invoking > >>>>jsxFunction_go > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:527) > >>>>> > >>>>> > >>>>> at > >net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537) > >>>>> at > > >>>>>net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:425) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:400) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:884) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:302) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:369) > >>>>> > >>>>> > >>>>> at > > >>>>com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:225) > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:235) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:718) > >>>>> > >>>>> > >>>>> at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown > Source) > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:676) > >>>>> > >>>>> > >>>>> at > > >>>>org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136) > >>>>> at > org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038) > >>>>> at > > >>>org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) > >>>>> at > > >>>>>org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329) > >>> > >>>>> at > > >>>>>org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999) > >>>>> > >>>>> > >>>>> at > >org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991) > >>>>> at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895) > >>>>> at > org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) > >>>>> at > org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) > >>>>> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:896) > >>>>> > >>>>> > >>>>> at > com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350) > >>>>> at > > >>>>com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304) > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:420) > >>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2136) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:553) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:631) > >>>>> > >>>>> > >>>>> at > > >>>com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1254) > >>>>> at > > >>>com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1212) > >>>>> at > > >>>com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1179) > >>>>> at > > >>>>>net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.clickElementByXPath(HtmlUnitTestingEngineImpl.java:1854) > >>>>> > >>>>> > >>>>> at > > >>>>>net.sourceforge.jwebunit.junit.WebTester.clickElementByXPath(WebTester.java:2591) > >>>>> > >>>>> > >>>>> at > > >>>>>net.sourceforge.jwebunit.junit.WebTestCase.clickElementByXPath(WebTestCase.java:2082) > >>>>> > >>>>> > >>>>> at > >>>>>gov.usda.fsa.tco.acretests.ACRETests.testACREPRSSetup(ACRETests.java:1201) > at > >> > >>>>>junit.framework.TestSuite.run(TestSuite.java:227) > >>>>> at > > >>>>>org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) > > > >>>>> at > > >>>>>org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) > >>>>> > >>>>> > >>>>> at > > >>>>>org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) > >> > >>>>> at > > >>>>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) > >>>>> > >>>>> > >>>>> at > > >>>>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) > >>>>> > >>>>> > >>>>> at > > >>>>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) > >>>>> > >>>>> > >>>>> at > > >>>>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) > >>>>> > >>>>> > >>>>>Caused by: java.lang.RuntimeException: Exception invoking > jsxFunction_go > >>>>> at > > >>>>>net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:190) > >>> > >>>>> at > > >>>>>net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:479) > >>>>> > >>>>> > >>>>> at > > >>>>>net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1702) > >>>>> > >>>>> > >>>>> at > > >>>>>net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845) > >>>>> > >>>>> > >>>>> at > > >>>>>net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164) > >>>>> > >>>>> > >>>>> at > > >>>>>net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264) > >>>>> > >>>>> > >>>>> at > > >>>>>net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157) > >>>>> > >>>>> > >>>>> at > > >>>>>net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:416) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521) > >>>>> > >>>>> > >>>>> ... 58 more > >>>>>Caused by: > com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 500 > > > >>>>>Internal Server Error for > >>>>> > https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do > > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:509) > >>>>> > >>>>> > >>>>> at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:304) > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.History.goToUrlAtCurrentIndex(History.java:176) > > > >>>>> at com.gargoylesoftware.htmlunit.History.go(History.java:138) > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.javascript.host.History.jsxFunction_go(History.java:132) > >>>>> > >>>>> > >>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >>>>> at > > >>>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > > >>>>> at > > >>>>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > >>>>> > >>>>> > >>>>> at java.lang.reflect.Method.invoke(Method.java:585) > >>>>> at > > >>>>>net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:164) > >>> > >>>>> ... 68 more > >>>>> > >>>>>======= EXCEPTION END ======== > >>>>> > >>>>> > >>>> > > >>>>------------------------------------------------------------------------------ > > > > > >>>>Beautiful is writing same markup. Internet Explorer 9 supports > >>>>standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > >>>>Spend less time writing and rewriting code and more time creating > great > >>>>experiences on the web. Be a part of the beta today. > >>>>http://p.sf.net/sfu/beautyoftheweb > >>>>_______________________________________________ > >>>>JWebUnit-users mailing list > >>>>JWe...@li... > >>>>https://lists.sourceforge.net/lists/listinfo/jwebunit-users > >>>> > >>>> > >>> > >> > > >>------------------------------------------------------------------------------ > >>Beautiful is writing same markup. Internet Explorer 9 supports > >>standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > >>Spend less time writing and rewriting code and more time creating great > >>experiences on the web. Be a part of the beta today. > >>http://p.sf.net/sfu/beautyoftheweb > >>_______________________________________________ > >>JWebUnit-users mailing list > >>JWe...@li... > >>https://lists.sourceforge.net/lists/listinfo/jwebunit-users > >> > >> > > > > > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > |
From: lakshmi s. <lso...@gm...> - 2010-10-14 16:38:31
|
Hi Julien, I was able to resolve this issue by using htmlunit 2.5. I downgraded from htmlunit 2.7. So, it was not a problem with the processing of the event. Just wanted to bring it to your notice about the way different versions of htmlunit behaves with Java Scripts. Thank you, Lakshmi On Tue, Oct 5, 2010 at 3:59 PM, Julien HENRY <he...@ya...> wrote: > Hi, > > According to me the click was successful but the processing of the event > produce an error on the server: > 500 Internal Server Error for > https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do > > Please check your server logs to know what is the problem. > > Regards, > > Julien > > > *De :* lakshmi somavaram <lso...@gm...> > *À :* Usage problems for JWebUnit <jwe...@li...> > *Envoyé le :* Mar 5 octobre 2010, 22h 08min 20s > *Objet :* [JWebUnit-users] Issues with ClickElementByXPath > > Dear Users, > > I am having issues with ClickElementByXPath function. I am listing below > the HTML code, JWebUnit Code and the error message. I am getting "exception > invoking jsxFunction_go" and "http 500 internal server error". > Please let me know how this can be solved. > > I am using the JWebunit 2.3. > > Thank you, > Lakshmi. > > My HTML code: > ---------------------- > <a tabindex="101" href="javascript:selCust(1937890)"> > TRIPLE D FARMS LLC > </a> > -------------------------------------------------------------------------- > > <script language="JavaScript"> > <!-- > > function selCust(coreId) > { > document.ResultForm.pageAction.value = "SelCust"; > document.ResultForm.coreId.value = coreId; > document.ResultForm.submit(); > } > //--> > </script> > > JWEBUNIT Code: > -------------------------- > > clickElementByXPath("//a[*@tabindex*='101' and *@href* > ='javascript:selCust(1937890)']"); > > Tried also, > > clickElementByXPath( > "//a[@tabindex='101' and @href=contains(@href, 'javascript:')]"); > > *ERROR:* > > ======= EXCEPTION START ======== > Exception class=[java.lang.RuntimeException] > com.gargoylesoftware.htmlunit.ScriptException: Exception invoking > jsxFunction_go > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:527) > at > net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537) > at > net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:425) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:400) > at > com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:884) > at > com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:302) > at > com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:369) > at > com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:225) > at > com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:235) > at > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:718) > at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) > at > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:676) > at > org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136) > at > org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038) > at > org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) > at > org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329) > at > org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999) > at > org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991) > at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895) > at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) > at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:896) > at > com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350) > at > com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304) > at > com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134) > at > com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101) > at > com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:420) > at > com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2136) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:553) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:631) > at > com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1254) > at > com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1212) > at > com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1179) > at > net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.clickElementByXPath(HtmlUnitTestingEngineImpl.java:1854) > at > net.sourceforge.jwebunit.junit.WebTester.clickElementByXPath(WebTester.java:2591) > at > net.sourceforge.jwebunit.junit.WebTestCase.clickElementByXPath(WebTestCase.java:2082) > at > gov.usda.fsa.tco.acretests.ACRETests.testACREPRSSetup(ACRETests.java:1201) at > junit.framework.TestSuite.run(TestSuite.java:227) > at > org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) > at > org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) > at > org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) > Caused by: java.lang.RuntimeException: Exception invoking jsxFunction_go > at > net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:190) > at > net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:479) > at > net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1702) > at > net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845) > at > net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164) > at > net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429) > at > com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264) > at > net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157) > at > net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:416) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521) > ... 58 more > Caused by: com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 500 > Internal Server Error for > https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do > at > com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:509) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:304) > at > com.gargoylesoftware.htmlunit.History.goToUrlAtCurrentIndex(History.java:176) > at com.gargoylesoftware.htmlunit.History.go(History.java:138) > at > com.gargoylesoftware.htmlunit.javascript.host.History.jsxFunction_go(History.java:132) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:164) > ... 68 more > > ======= EXCEPTION END ======== > > > > > > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > |
From: Eric J. <eje...@ho...> - 2010-10-13 14:39:59
|
Jothi, You can find instructions on how to build JWebUnit here, http://jwebunit.sourceforge.net/building-maven.html From: lakshmi somavaram [mailto:lso...@gm...] Sent: Wednesday, October 13, 2010 9:36 AM To: Usage problems for JWebUnit Subject: Re: [JWebUnit-users] Re : Re : Issues with ClickElementByXPath Hi Julien, Could you please point me to where the instructions are on how to build a snapshot from trunk? Thank you, Jothi. On Tue, Oct 12, 2010 at 1:14 PM, Julien HENRY <he...@ya...<mailto:he...@ya...>> wrote: Hi Lakshmi, >Thank you for trying to release an updated version. May I know, when I can >expect the latest version. No date planned for now. You can still build a snapshot from trunk that is very stable as we didn't do so much changes. I will try to do a release before end of october. >Is it possible to use Jwebunit to test applications written in ASP.Net? JWebUnit simulates a web browser, so it can test any web application, whatever is the server side technology. Regards, Julien > >De : lakshmi somavaram <lso...@gm...<mailto:lso...@gm...>> >À : Usage problems for JWebUnit <jwe...@li...<mailto:jwe...@li...>> >Envoyé le : Mar 12 octobre 2010, 19h 58min 43s >Objet : Re: [JWebUnit-users] Re : Issues with ClickElementByXPath > > >Hi Julien, > >Thank you for trying to release an updated version. May I know, when I can >expect the latest version. > >Is it possible to use Jwebunit to test applications written in ASP.Net? > >My original issue: My application starts of as a J2EE application and then it >makes requests to another application that is written in ASP.Net. It is in the >other application that I am getting an error. So, just wanted to know if >JWebUnit can support ASP.Net applications. > >Thank you, >Lakshmi. > > >On Wed, Oct 6, 2010 at 2:18 AM, Julien HENRY <he...@ya...<mailto:he...@ya...>> wrote: > >I worked yesterday on updating JWebUnit to use HtmlUnit 2.8. I'll wait a few >days before releasing in order to let early adopters a chance to build a >snapshot from trunk and report any regression. >> >>Regards, >> >>Julien >> >>> >>>De : lakshmi somavaram <lso...@gm...<mailto:lso...@gm...>> >>>À : Usage problems for JWebUnit <jwe...@li...<mailto:jwe...@li...>> >>>Envoyé le : Mer 6 octobre 2010, 0h 34min 52s >>>Objet : Re: [JWebUnit-users] Re : Issues with ClickElementByXPath >>> >>> >>> >>>Hi Julien, >>> >>>I had a similar issue in the begining of the year. It was due to the embedded >>>Java Script. After installing JWebUnit2.3 that problem disappeared. I think it > >>>was due to the JavaScript support in the htmlunitEngine. >>> >>>I know there is an updated version of htmlunit-2.8 (I think). Will JWebUnit be > >>>released any time soon with the new versions of htmlunit files? >>> >>>Thank you, >>>Lakshmi >>> >>> >>>On Tue, Oct 5, 2010 at 3:59 PM, Julien HENRY <he...@ya...<mailto:he...@ya...>> wrote: >>> >>>Hi, >>>> >>>>According to me the click was successful but the processing of the event produce >>>> >>>>an error on the server: >>>> >>>> >>>>500 Internal Server Error for >>>>https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do >>>> >>>>Please check your server logs to know what is the problem. >>>> >>>>Regards, >>>> >>>>Julien >>>> >>>> >>>>> >>>>>De : lakshmi somavaram <lso...@gm...<mailto:lso...@gm...>> >>>>>À : Usage problems for JWebUnit <jwe...@li...<mailto:jwe...@li...>> >>>>>Envoyé le : Mar 5 octobre 2010, 22h 08min 20s >>>>>Objet : [JWebUnit-users] Issues with ClickElementByXPath >>>>> >>>>> >>>>> >>>>>Dear Users, >>>>> >>>>>I am having issues with ClickElementByXPath function. I am listing below the > >>>>>HTML code, JWebUnit Code and the error message. I am getting "exception invoking >>>>> >>>>>jsxFunction_go" and "http 500 internal server error". >>>>>Please let me know how this can be solved. >>>>> >>>>>I am using the JWebunit 2.3. >>>>> >>>>>Thank you, >>>>>Lakshmi. >>>>> >>>>>My HTML code: >>>>>---------------------- >>>>><a tabindex="101" href="javascript:selCust(1937890)"> >>>>> TRIPLE D FARMS LLC >>>>> </a> >>>>>-------------------------------------------------------------------------- >>>>> >>>>><script language="JavaScript"> >>>>><!-- >>>>> >>>>> function selCust(coreId) >>>>> { >>>>> document.ResultForm.pageAction.value = "SelCust"; >>>>> document.ResultForm.coreId.value = coreId; >>>>> document.ResultForm.submit(); >>>>> } >>>>>//--> >>>>></script> >>>>> >>>>>JWEBUNIT Code: >>>>>-------------------------- >>>>>clickElementByXPath("//a[@tabindex='101' and >>>>>@href='javascript:selCust(1937890)']"); >>>>>Tried also,clickElementByXPath("//a[@tabindex='101' and @href=contains(@href, >> >>>>>'javascript:')]"); >>>>> >>>>>ERROR: >>>>>======= EXCEPTION START ======== >>>>>Exception class=[java.lang.RuntimeException] >>>>>com.gargoylesoftware.htmlunit.ScriptException: Exception invoking >>>>jsxFunction_go >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:527) >>>>> >>>>> >>>>> at >net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537) >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:425) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:400) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:884) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:302) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:369) >>>>> >>>>> >>>>> at >>>>com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:225) >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:235) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:718) >>>>> >>>>> >>>>> at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:676) >>>>> >>>>> >>>>> at >>>>org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136) >>>>> at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038) >>>>> at >>>org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) >>>>> at >>>>>org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329) >>> >>>>> at >>>>>org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999) >>>>> >>>>> >>>>> at >org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991) >>>>> at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895) >>>>> at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) >>>>> at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) >>>>> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:896) >>>>> >>>>> >>>>> at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350) >>>>> at >>>>com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304) >>>>> at >>>>>com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:420) >>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2136) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:553) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:631) >>>>> >>>>> >>>>> at >>>com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1254) >>>>> at >>>com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1212) >>>>> at >>>com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1179) >>>>> at >>>>>net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.clickElementByXPath(HtmlUnitTestingEngineImpl.java:1854) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.jwebunit.junit.WebTester.clickElementByXPath(WebTester.java:2591) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.jwebunit.junit.WebTestCase.clickElementByXPath(WebTestCase.java:2082) >>>>> >>>>> >>>>> at >>>>>gov.usda.fsa.tco.acretests.ACRETests.testACREPRSSetup(ACRETests.java:1201) at >> >>>>>junit.framework.TestSuite.run(TestSuite.java:227) >>>>> at >>>>>org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) > >>>>> at >>>>>org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) >>>>> >>>>> >>>>> at >>>>>org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) >> >>>>> at >>>>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) >>>>> >>>>> >>>>> at >>>>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) >>>>> >>>>> >>>>> at >>>>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) >>>>> >>>>> >>>>> at >>>>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) >>>>> >>>>> >>>>>Caused by: java.lang.RuntimeException: Exception invoking jsxFunction_go >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:190) >>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:479) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1702) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:416) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521) >>>>> >>>>> >>>>> ... 58 more >>>>>Caused by: com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 500 > >>>>>Internal Server Error for >>>>>https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do >>>>> at >>>>>com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:509) >>>>> >>>>> >>>>> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:304) >>>>> at >>>>>com.gargoylesoftware.htmlunit.History.goToUrlAtCurrentIndex(History.java:176) > >>>>> at com.gargoylesoftware.htmlunit.History.go(History.java:138) >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.host.History.jsxFunction_go(History.java:132) >>>>> >>>>> >>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>>> at >>>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > >>>>> at >>>>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>>>> >>>>> >>>>> at java.lang.reflect.Method.invoke(Method.java:585) >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:164) >>> >>>>> ... 68 more >>>>> >>>>>======= EXCEPTION END ======== >>>>> >>>>> >>>> >>>>------------------------------------------------------------------------------ > > >>>>Beautiful is writing same markup. Internet Explorer 9 supports >>>>standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. >>>>Spend less time writing and rewriting code and more time creating great >>>>experiences on the web. Be a part of the beta today. >>>>http://p.sf.net/sfu/beautyoftheweb >>>>_______________________________________________ >>>>JWebUnit-users mailing list >>>>JWe...@li...<mailto:JWe...@li...> >>>>https://lists.sourceforge.net/lists/listinfo/jwebunit-users >>>> >>>> >>> >> >>------------------------------------------------------------------------------ >>Beautiful is writing same markup. Internet Explorer 9 supports >>standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. >>Spend less time writing and rewriting code and more time creating great >>experiences on the web. Be a part of the beta today. >>http://p.sf.net/sfu/beautyoftheweb >>_______________________________________________ >>JWebUnit-users mailing list >>JWe...@li...<mailto:JWe...@li...> >>https://lists.sourceforge.net/lists/listinfo/jwebunit-users >> >> > ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ JWebUnit-users mailing list JWe...@li...<mailto:JWe...@li...> https://lists.sourceforge.net/lists/listinfo/jwebunit-users |
From: lakshmi s. <lso...@gm...> - 2010-10-13 14:36:14
|
Hi Julien, Could you please point me to where the instructions are on how to build a snapshot from trunk? Thank you, Jothi. On Tue, Oct 12, 2010 at 1:14 PM, Julien HENRY <he...@ya...> wrote: > Hi Lakshmi, > > >Thank you for trying to release an updated version. May I know, when I can > >expect the latest version. > > No date planned for now. You can still build a snapshot from trunk that is > very > stable as we didn't do so much changes. I will try to do a release before > end of > october. > > >Is it possible to use Jwebunit to test applications written in ASP.Net? > > JWebUnit simulates a web browser, so it can test any web application, > whatever > is the server side technology. > > Regards, > > Julien > > > > > >De : lakshmi somavaram <lso...@gm...> > >À : Usage problems for JWebUnit <jwe...@li...> > >Envoyé le : Mar 12 octobre 2010, 19h 58min 43s > >Objet : Re: [JWebUnit-users] Re : Issues with ClickElementByXPath > > > > > >Hi Julien, > > > >Thank you for trying to release an updated version. May I know, when I can > >expect the latest version. > > > >Is it possible to use Jwebunit to test applications written in ASP.Net? > > > >My original issue: My application starts of as a J2EE application and then > it > >makes requests to another application that is written in ASP.Net. It is in > the > >other application that I am getting an error. So, just wanted to know if > >JWebUnit can support ASP.Net applications. > > > >Thank you, > >Lakshmi. > > > > > >On Wed, Oct 6, 2010 at 2:18 AM, Julien HENRY <he...@ya...> wrote: > > > >I worked yesterday on updating JWebUnit to use HtmlUnit 2.8. I'll wait a > few > >days before releasing in order to let early adopters a chance to build a > >snapshot from trunk and report any regression. > >> > >>Regards, > >> > >>Julien > >> > >>> > >>>De : lakshmi somavaram <lso...@gm...> > >>>À : Usage problems for JWebUnit <jwe...@li...> > >>>Envoyé le : Mer 6 octobre 2010, 0h 34min 52s > >>>Objet : Re: [JWebUnit-users] Re : Issues with ClickElementByXPath > >>> > >>> > >>> > >>>Hi Julien, > >>> > >>>I had a similar issue in the begining of the year. It was due to the > embedded > > >>>Java Script. After installing JWebUnit2.3 that problem disappeared. I > think it > > > >>>was due to the JavaScript support in the htmlunitEngine. > >>> > >>>I know there is an updated version of htmlunit-2.8 (I think). Will > JWebUnit be > > > >>>released any time soon with the new versions of htmlunit files? > >>> > >>>Thank you, > >>>Lakshmi > >>> > >>> > >>>On Tue, Oct 5, 2010 at 3:59 PM, Julien HENRY <he...@ya...> wrote: > >>> > >>>Hi, > >>>> > >>>>According to me the click was successful but the processing of the > event produce > >>>> > >>>>an error on the server: > >>>> > >>>> > >>>>500 Internal Server Error for > >>>> > https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do > >>>> > >>>>Please check your server logs to know what is the problem. > >>>> > >>>>Regards, > >>>> > >>>>Julien > >>>> > >>>> > >>>>> > >>>>>De : lakshmi somavaram <lso...@gm...> > >>>>>À : Usage problems for JWebUnit <jwe...@li... > > > >>>>>Envoyé le : Mar 5 octobre 2010, 22h 08min 20s > >>>>>Objet : [JWebUnit-users] Issues with ClickElementByXPath > >>>>> > >>>>> > >>>>> > >>>>>Dear Users, > >>>>> > >>>>>I am having issues with ClickElementByXPath function. I am listing > below the > > > >>>>>HTML code, JWebUnit Code and the error message. I am getting > "exception invoking > >>>>> > >>>>>jsxFunction_go" and "http 500 internal server error". > >>>>>Please let me know how this can be solved. > >>>>> > >>>>>I am using the JWebunit 2.3. > >>>>> > >>>>>Thank you, > >>>>>Lakshmi. > >>>>> > >>>>>My HTML code: > >>>>>---------------------- > >>>>><a tabindex="101" href="javascript:selCust(1937890)"> > >>>>> TRIPLE D FARMS LLC > >>>>> </a> > > >>>>>-------------------------------------------------------------------------- > >>>>> > >>>>><script language="JavaScript"> > >>>>><!-- > >>>>> > >>>>> function selCust(coreId) > >>>>> { > >>>>> document.ResultForm.pageAction.value = "SelCust"; > >>>>> document.ResultForm.coreId.value = coreId; > >>>>> document.ResultForm.submit(); > >>>>> } > >>>>>//--> > >>>>></script> > >>>>> > >>>>>JWEBUNIT Code: > >>>>>-------------------------- > >>>>>clickElementByXPath("//a[@tabindex='101' and > >>>>>@href='javascript:selCust(1937890)']"); > >>>>>Tried also,clickElementByXPath("//a[@tabindex='101' and > @href=contains(@href, > >> > >>>>>'javascript:')]"); > >>>>> > >>>>>ERROR: > >>>>>======= EXCEPTION START ======== > >>>>>Exception class=[java.lang.RuntimeException] > >>>>>com.gargoylesoftware.htmlunit.ScriptException: Exception invoking > >>>>jsxFunction_go > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:527) > >>>>> > >>>>> > >>>>> at > >net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537) > >>>>> at > > >>>>>net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:425) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:400) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:884) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:302) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:369) > >>>>> > >>>>> > >>>>> at > > >>>>com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:225) > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:235) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:718) > >>>>> > >>>>> > >>>>> at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown > Source) > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:676) > >>>>> > >>>>> > >>>>> at > > >>>>org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136) > >>>>> at > org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038) > >>>>> at > > >>>org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) > >>>>> at > > >>>>>org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329) > >>> > >>>>> at > > >>>>>org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999) > >>>>> > >>>>> > >>>>> at > >org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991) > >>>>> at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895) > >>>>> at > org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) > >>>>> at > org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) > >>>>> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:896) > >>>>> > >>>>> > >>>>> at > com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350) > >>>>> at > > >>>>com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304) > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:420) > >>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2136) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:553) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:631) > >>>>> > >>>>> > >>>>> at > > >>>com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1254) > >>>>> at > > >>>com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1212) > >>>>> at > > >>>com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1179) > >>>>> at > > >>>>>net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.clickElementByXPath(HtmlUnitTestingEngineImpl.java:1854) > >>>>> > >>>>> > >>>>> at > > >>>>>net.sourceforge.jwebunit.junit.WebTester.clickElementByXPath(WebTester.java:2591) > >>>>> > >>>>> > >>>>> at > > >>>>>net.sourceforge.jwebunit.junit.WebTestCase.clickElementByXPath(WebTestCase.java:2082) > >>>>> > >>>>> > >>>>> at > >>>>>gov.usda.fsa.tco.acretests.ACRETests.testACREPRSSetup(ACRETests.java:1201) > at > >> > >>>>>junit.framework.TestSuite.run(TestSuite.java:227) > >>>>> at > > >>>>>org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) > > > >>>>> at > > >>>>>org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) > >>>>> > >>>>> > >>>>> at > > >>>>>org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) > >> > >>>>> at > > >>>>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) > >>>>> > >>>>> > >>>>> at > > >>>>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) > >>>>> > >>>>> > >>>>> at > > >>>>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) > >>>>> > >>>>> > >>>>> at > > >>>>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) > >>>>> > >>>>> > >>>>>Caused by: java.lang.RuntimeException: Exception invoking > jsxFunction_go > >>>>> at > > >>>>>net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:190) > >>> > >>>>> at > > >>>>>net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:479) > >>>>> > >>>>> > >>>>> at > > >>>>>net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1702) > >>>>> > >>>>> > >>>>> at > > >>>>>net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845) > >>>>> > >>>>> > >>>>> at > > >>>>>net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164) > >>>>> > >>>>> > >>>>> at > > >>>>>net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264) > >>>>> > >>>>> > >>>>> at > > >>>>>net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157) > >>>>> > >>>>> > >>>>> at > > >>>>>net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:416) > >>>>> > >>>>> > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521) > >>>>> > >>>>> > >>>>> ... 58 more > >>>>>Caused by: > com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 500 > > > >>>>>Internal Server Error for > >>>>> > https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do > > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:509) > >>>>> > >>>>> > >>>>> at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:304) > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.History.goToUrlAtCurrentIndex(History.java:176) > > > >>>>> at com.gargoylesoftware.htmlunit.History.go(History.java:138) > >>>>> at > > >>>>>com.gargoylesoftware.htmlunit.javascript.host.History.jsxFunction_go(History.java:132) > >>>>> > >>>>> > >>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >>>>> at > > >>>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > > >>>>> at > > >>>>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > >>>>> > >>>>> > >>>>> at java.lang.reflect.Method.invoke(Method.java:585) > >>>>> at > > >>>>>net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:164) > >>> > >>>>> ... 68 more > >>>>> > >>>>>======= EXCEPTION END ======== > >>>>> > >>>>> > >>>> > > >>>>------------------------------------------------------------------------------ > > > > > >>>>Beautiful is writing same markup. Internet Explorer 9 supports > >>>>standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > >>>>Spend less time writing and rewriting code and more time creating > great > >>>>experiences on the web. Be a part of the beta today. > >>>>http://p.sf.net/sfu/beautyoftheweb > >>>>_______________________________________________ > >>>>JWebUnit-users mailing list > >>>>JWe...@li... > >>>>https://lists.sourceforge.net/lists/listinfo/jwebunit-users > >>>> > >>>> > >>> > >> > > >>------------------------------------------------------------------------------ > >>Beautiful is writing same markup. Internet Explorer 9 supports > >>standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > >>Spend less time writing and rewriting code and more time creating great > >>experiences on the web. Be a part of the beta today. > >>http://p.sf.net/sfu/beautyoftheweb > >>_______________________________________________ > >>JWebUnit-users mailing list > >>JWe...@li... > >>https://lists.sourceforge.net/lists/listinfo/jwebunit-users > >> > >> > > > > > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > |
From: Julien H. <he...@ya...> - 2010-10-12 18:14:25
|
Hi Lakshmi, >Thank you for trying to release an updated version. May I know, when I can >expect the latest version. No date planned for now. You can still build a snapshot from trunk that is very stable as we didn't do so much changes. I will try to do a release before end of october. >Is it possible to use Jwebunit to test applications written in ASP.Net? JWebUnit simulates a web browser, so it can test any web application, whatever is the server side technology. Regards, Julien > >De : lakshmi somavaram <lso...@gm...> >À : Usage problems for JWebUnit <jwe...@li...> >Envoyé le : Mar 12 octobre 2010, 19h 58min 43s >Objet : Re: [JWebUnit-users] Re : Issues with ClickElementByXPath > > >Hi Julien, > >Thank you for trying to release an updated version. May I know, when I can >expect the latest version. > >Is it possible to use Jwebunit to test applications written in ASP.Net? > >My original issue: My application starts of as a J2EE application and then it >makes requests to another application that is written in ASP.Net. It is in the >other application that I am getting an error. So, just wanted to know if >JWebUnit can support ASP.Net applications. > >Thank you, >Lakshmi. > > >On Wed, Oct 6, 2010 at 2:18 AM, Julien HENRY <he...@ya...> wrote: > >I worked yesterday on updating JWebUnit to use HtmlUnit 2.8. I'll wait a few >days before releasing in order to let early adopters a chance to build a >snapshot from trunk and report any regression. >> >>Regards, >> >>Julien >> >>> >>>De : lakshmi somavaram <lso...@gm...> >>>À : Usage problems for JWebUnit <jwe...@li...> >>>Envoyé le : Mer 6 octobre 2010, 0h 34min 52s >>>Objet : Re: [JWebUnit-users] Re : Issues with ClickElementByXPath >>> >>> >>> >>>Hi Julien, >>> >>>I had a similar issue in the begining of the year. It was due to the embedded >>>Java Script. After installing JWebUnit2.3 that problem disappeared. I think it > >>>was due to the JavaScript support in the htmlunitEngine. >>> >>>I know there is an updated version of htmlunit-2.8 (I think). Will JWebUnit be > >>>released any time soon with the new versions of htmlunit files? >>> >>>Thank you, >>>Lakshmi >>> >>> >>>On Tue, Oct 5, 2010 at 3:59 PM, Julien HENRY <he...@ya...> wrote: >>> >>>Hi, >>>> >>>>According to me the click was successful but the processing of the event produce >>>> >>>>an error on the server: >>>> >>>> >>>>500 Internal Server Error for >>>>https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do >>>> >>>>Please check your server logs to know what is the problem. >>>> >>>>Regards, >>>> >>>>Julien >>>> >>>> >>>>> >>>>>De : lakshmi somavaram <lso...@gm...> >>>>>À : Usage problems for JWebUnit <jwe...@li...> >>>>>Envoyé le : Mar 5 octobre 2010, 22h 08min 20s >>>>>Objet : [JWebUnit-users] Issues with ClickElementByXPath >>>>> >>>>> >>>>> >>>>>Dear Users, >>>>> >>>>>I am having issues with ClickElementByXPath function. I am listing below the > >>>>>HTML code, JWebUnit Code and the error message. I am getting "exception invoking >>>>> >>>>>jsxFunction_go" and "http 500 internal server error". >>>>>Please let me know how this can be solved. >>>>> >>>>>I am using the JWebunit 2.3. >>>>> >>>>>Thank you, >>>>>Lakshmi. >>>>> >>>>>My HTML code: >>>>>---------------------- >>>>><a tabindex="101" href="javascript:selCust(1937890)"> >>>>> TRIPLE D FARMS LLC >>>>> </a> >>>>>-------------------------------------------------------------------------- >>>>> >>>>><script language="JavaScript"> >>>>><!-- >>>>> >>>>> function selCust(coreId) >>>>> { >>>>> document.ResultForm.pageAction.value = "SelCust"; >>>>> document.ResultForm.coreId.value = coreId; >>>>> document.ResultForm.submit(); >>>>> } >>>>>//--> >>>>></script> >>>>> >>>>>JWEBUNIT Code: >>>>>-------------------------- >>>>>clickElementByXPath("//a[@tabindex='101' and >>>>>@href='javascript:selCust(1937890)']"); >>>>>Tried also,clickElementByXPath("//a[@tabindex='101' and @href=contains(@href, >> >>>>>'javascript:')]"); >>>>> >>>>>ERROR: >>>>>======= EXCEPTION START ======== >>>>>Exception class=[java.lang.RuntimeException] >>>>>com.gargoylesoftware.htmlunit.ScriptException: Exception invoking >>>>jsxFunction_go >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:527) >>>>> >>>>> >>>>> at >net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537) >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:425) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:400) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:884) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:302) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:369) >>>>> >>>>> >>>>> at >>>>com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:225) >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:235) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:718) >>>>> >>>>> >>>>> at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:676) >>>>> >>>>> >>>>> at >>>>org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136) >>>>> at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038) >>>>> at >>>org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) >>>>> at >>>>>org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329) >>> >>>>> at >>>>>org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999) >>>>> >>>>> >>>>> at >org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991) >>>>> at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895) >>>>> at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) >>>>> at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) >>>>> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:896) >>>>> >>>>> >>>>> at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350) >>>>> at >>>>com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304) >>>>> at >>>>>com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:420) >>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2136) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:553) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:631) >>>>> >>>>> >>>>> at >>>com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1254) >>>>> at >>>com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1212) >>>>> at >>>com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1179) >>>>> at >>>>>net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.clickElementByXPath(HtmlUnitTestingEngineImpl.java:1854) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.jwebunit.junit.WebTester.clickElementByXPath(WebTester.java:2591) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.jwebunit.junit.WebTestCase.clickElementByXPath(WebTestCase.java:2082) >>>>> >>>>> >>>>> at >>>>>gov.usda.fsa.tco.acretests.ACRETests.testACREPRSSetup(ACRETests.java:1201) at >> >>>>>junit.framework.TestSuite.run(TestSuite.java:227) >>>>> at >>>>>org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) > >>>>> at >>>>>org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) >>>>> >>>>> >>>>> at >>>>>org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) >> >>>>> at >>>>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) >>>>> >>>>> >>>>> at >>>>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) >>>>> >>>>> >>>>> at >>>>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) >>>>> >>>>> >>>>> at >>>>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) >>>>> >>>>> >>>>>Caused by: java.lang.RuntimeException: Exception invoking jsxFunction_go >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:190) >>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:479) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1702) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:416) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521) >>>>> >>>>> >>>>> ... 58 more >>>>>Caused by: com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 500 > >>>>>Internal Server Error for >>>>>https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do >>>>> at >>>>>com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:509) >>>>> >>>>> >>>>> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:304) >>>>> at >>>>>com.gargoylesoftware.htmlunit.History.goToUrlAtCurrentIndex(History.java:176) > >>>>> at com.gargoylesoftware.htmlunit.History.go(History.java:138) >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.host.History.jsxFunction_go(History.java:132) >>>>> >>>>> >>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>>> at >>>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > >>>>> at >>>>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>>>> >>>>> >>>>> at java.lang.reflect.Method.invoke(Method.java:585) >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:164) >>> >>>>> ... 68 more >>>>> >>>>>======= EXCEPTION END ======== >>>>> >>>>> >>>> >>>>------------------------------------------------------------------------------ > > >>>>Beautiful is writing same markup. Internet Explorer 9 supports >>>>standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. >>>>Spend less time writing and rewriting code and more time creating great >>>>experiences on the web. Be a part of the beta today. >>>>http://p.sf.net/sfu/beautyoftheweb >>>>_______________________________________________ >>>>JWebUnit-users mailing list >>>>JWe...@li... >>>>https://lists.sourceforge.net/lists/listinfo/jwebunit-users >>>> >>>> >>> >> >>------------------------------------------------------------------------------ >>Beautiful is writing same markup. Internet Explorer 9 supports >>standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. >>Spend less time writing and rewriting code and more time creating great >>experiences on the web. Be a part of the beta today. >>http://p.sf.net/sfu/beautyoftheweb >>_______________________________________________ >>JWebUnit-users mailing list >>JWe...@li... >>https://lists.sourceforge.net/lists/listinfo/jwebunit-users >> >> > |
From: lakshmi s. <lso...@gm...> - 2010-10-12 17:58:52
|
Hi Julien, Thank you for trying to release an updated version. May I know, when I can expect the latest version. Is it possible to use Jwebunit to test applications written in ASP.Net? My original issue: My application starts of as a J2EE application and then it makes requests to another application that is written in ASP.Net. It is in the other application that I am getting an error. So, just wanted to know if JWebUnit can support ASP.Net applications. Thank you, Lakshmi. On Wed, Oct 6, 2010 at 2:18 AM, Julien HENRY <he...@ya...> wrote: > I worked yesterday on updating JWebUnit to use HtmlUnit 2.8. I'll wait a > few days before releasing in order to let early adopters a chance to build a > snapshot from trunk and report any regression. > > Regards, > > Julien > > > *De :* lakshmi somavaram <lso...@gm...> > *À :* Usage problems for JWebUnit <jwe...@li...> > *Envoyé le :* Mer 6 octobre 2010, 0h 34min 52s > *Objet :* Re: [JWebUnit-users] Re : Issues with ClickElementByXPath > > Hi Julien, > > I had a similar issue in the begining of the year. It was due to the > embedded Java Script. After installing JWebUnit2.3 that problem disappeared. > I think it was due to the JavaScript support in the htmlunitEngine. > > I know there is an updated version of htmlunit-2.8 (I think). Will JWebUnit > be released any time soon with the new versions of htmlunit files? > > Thank you, > Lakshmi > > On Tue, Oct 5, 2010 at 3:59 PM, Julien HENRY <he...@ya...> wrote: > >> Hi, >> >> According to me the click was successful but the processing of the event >> produce an error on the server: >> 500 Internal Server Error for >> https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do >> >> Please check your server logs to know what is the problem. >> >> Regards, >> >> Julien >> >> >> *De :* lakshmi somavaram <lso...@gm...> >> *À :* Usage problems for JWebUnit <jwe...@li...> >> *Envoyé le :* Mar 5 octobre 2010, 22h 08min 20s >> *Objet :* [JWebUnit-users] Issues with ClickElementByXPath >> >> Dear Users, >> >> I am having issues with ClickElementByXPath function. I am listing below >> the HTML code, JWebUnit Code and the error message. I am getting "exception >> invoking jsxFunction_go" and "http 500 internal server error". >> Please let me know how this can be solved. >> >> I am using the JWebunit 2.3. >> >> Thank you, >> Lakshmi. >> >> My HTML code: >> ---------------------- >> <a tabindex="101" href="javascript:selCust(1937890)"> >> TRIPLE D FARMS LLC >> </a> >> -------------------------------------------------------------------------- >> >> <script language="JavaScript"> >> <!-- >> >> function selCust(coreId) >> { >> document.ResultForm.pageAction.value = "SelCust"; >> document.ResultForm.coreId.value = coreId; >> document.ResultForm.submit(); >> } >> //--> >> </script> >> >> JWEBUNIT Code: >> -------------------------- >> >> clickElementByXPath("//a[*@tabindex*='101' and *@href* >> ='javascript:selCust(1937890)']"); >> >> Tried also, >> >> clickElementByXPath( >> "//a[@tabindex='101' and @href=contains(@href, 'javascript:')]"); >> >> *ERROR:* >> >> ======= EXCEPTION START ======== >> Exception class=[java.lang.RuntimeException] >> com.gargoylesoftware.htmlunit.ScriptException: Exception invoking >> jsxFunction_go >> at >> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:527) >> at >> net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537) >> at >> net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538) >> at >> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:425) >> at >> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:400) >> at >> com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:884) >> at >> com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:302) >> at >> com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:369) >> at >> com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:225) >> at >> com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:235) >> at >> com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:718) >> at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) >> at >> com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:676) >> at >> org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136) >> at >> org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038) >> at >> org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) >> at >> org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329) >> at >> org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999) >> at >> org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991) >> at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895) >> at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) >> at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) >> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >> at >> com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:896) >> at >> com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350) >> at >> com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304) >> at >> com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134) >> at >> com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101) >> at >> com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:420) >> at >> com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2136) >> at >> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:553) >> at >> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:631) >> at >> com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1254) >> at >> com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1212) >> at >> com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1179) >> at >> net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.clickElementByXPath(HtmlUnitTestingEngineImpl.java:1854) >> at >> net.sourceforge.jwebunit.junit.WebTester.clickElementByXPath(WebTester.java:2591) >> at >> net.sourceforge.jwebunit.junit.WebTestCase.clickElementByXPath(WebTestCase.java:2082) >> at >> gov.usda.fsa.tco.acretests.ACRETests.testACREPRSSetup(ACRETests.java:1201) at >> junit.framework.TestSuite.run(TestSuite.java:227) >> at >> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) >> at >> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) >> at >> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) >> Caused by: java.lang.RuntimeException: Exception invoking jsxFunction_go >> at >> net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:190) >> at >> net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:479) >> at >> net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1702) >> at >> net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845) >> at >> net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164) >> at >> net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429) >> at >> com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264) >> at >> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157) >> at >> net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175) >> at >> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:416) >> at >> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521) >> ... 58 more >> Caused by: com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 500 >> Internal Server Error for >> https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do >> at >> com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:509) >> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:304) >> at >> com.gargoylesoftware.htmlunit.History.goToUrlAtCurrentIndex(History.java:176) >> at com.gargoylesoftware.htmlunit.History.go(History.java:138) >> at >> com.gargoylesoftware.htmlunit.javascript.host.History.jsxFunction_go(History.java:132) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) >> at >> net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:164) >> ... 68 more >> >> ======= EXCEPTION END ======== >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Beautiful is writing same markup. Internet Explorer 9 supports >> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. >> Spend less time writing and rewriting code and more time creating great >> experiences on the web. Be a part of the beta today. >> http://p.sf.net/sfu/beautyoftheweb >> _______________________________________________ >> JWebUnit-users mailing list >> JWe...@li... >> https://lists.sourceforge.net/lists/listinfo/jwebunit-users >> >> > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > |
From: Julien H. <he...@ya...> - 2010-10-06 07:18:21
|
I worked yesterday on updating JWebUnit to use HtmlUnit 2.8. I'll wait a few days before releasing in order to let early adopters a chance to build a snapshot from trunk and report any regression. Regards, Julien > >De : lakshmi somavaram <lso...@gm...> >À : Usage problems for JWebUnit <jwe...@li...> >Envoyé le : Mer 6 octobre 2010, 0h 34min 52s >Objet : Re: [JWebUnit-users] Re : Issues with ClickElementByXPath > > >Hi Julien, > >I had a similar issue in the begining of the year. It was due to the embedded >Java Script. After installing JWebUnit2.3 that problem disappeared. I think it >was due to the JavaScript support in the htmlunitEngine. > >I know there is an updated version of htmlunit-2.8 (I think). Will JWebUnit be >released any time soon with the new versions of htmlunit files? > >Thank you, >Lakshmi > > >On Tue, Oct 5, 2010 at 3:59 PM, Julien HENRY <he...@ya...> wrote: > >Hi, >> >>According to me the click was successful but the processing of the event produce >>an error on the server: >> >> >>500 Internal Server Error for >>https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do >> >>Please check your server logs to know what is the problem. >> >>Regards, >> >>Julien >> >> >>> >>>De : lakshmi somavaram <lso...@gm...> >>>À : Usage problems for JWebUnit <jwe...@li...> >>>Envoyé le : Mar 5 octobre 2010, 22h 08min 20s >>>Objet : [JWebUnit-users] Issues with ClickElementByXPath >>> >>> >>> >>>Dear Users, >>> >>>I am having issues with ClickElementByXPath function. I am listing below the >>>HTML code, JWebUnit Code and the error message. I am getting "exception invoking >>>jsxFunction_go" and "http 500 internal server error". >>>Please let me know how this can be solved. >>> >>>I am using the JWebunit 2.3. >>> >>>Thank you, >>>Lakshmi. >>> >>>My HTML code: >>>---------------------- >>><a tabindex="101" href="javascript:selCust(1937890)"> >>> TRIPLE D FARMS LLC >>> </a> >>>-------------------------------------------------------------------------- >>> >>><script language="JavaScript"> >>><!-- >>> >>> function selCust(coreId) >>> { >>> document.ResultForm.pageAction.value = "SelCust"; >>> document.ResultForm.coreId.value = coreId; >>> document.ResultForm.submit(); >>> } >>>//--> >>></script> >>> >>>JWEBUNIT Code: >>>-------------------------- >>>clickElementByXPath("//a[@tabindex='101' and >>>@href='javascript:selCust(1937890)']"); >>>Tried also,clickElementByXPath("//a[@tabindex='101' and @href=contains(@href, >>>'javascript:')]"); >>> >>>ERROR: >>>======= EXCEPTION START ======== >>>Exception class=[java.lang.RuntimeException] >>>com.gargoylesoftware.htmlunit.ScriptException: Exception invoking >>jsxFunction_go >>> at >>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:527) >>> >>> at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537) >>> at >>>net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538) >>> >>> at >>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:425) >>> >>> at >>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:400) >>> >>> at >>>com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:884) >>> >>> at >>>com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:302) >>> >>> at >>>com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:369) >>> >>> at >>com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:225) >>> at >>>com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:235) >>> >>> at >>>com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:718) >>> >>> at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) >>> at >>>com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:676) >>> >>> at >>org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136) >>> at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038) >>> at >org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) >>> at >>>org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329) >>> at >>>org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999) >>> >>> at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991) >>> at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895) >>> at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) >>> at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) >>> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >>> at >>>com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:896) >>> >>> at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350) >>> at >>com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304) >>> at >>>com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134) >>> >>> at >>>com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101) >>> >>> at >>>com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:420) >>> at >>>com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2136) >>> >>> at >>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:553) >>> >>> at >>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:631) >>> >>> at >com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1254) >>> at >com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1212) >>> at >com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1179) >>> at >>>net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.clickElementByXPath(HtmlUnitTestingEngineImpl.java:1854) >>> >>> at >>>net.sourceforge.jwebunit.junit.WebTester.clickElementByXPath(WebTester.java:2591) >>> >>> at >>>net.sourceforge.jwebunit.junit.WebTestCase.clickElementByXPath(WebTestCase.java:2082) >>> >>> at >>>gov.usda.fsa.tco.acretests.ACRETests.testACREPRSSetup(ACRETests.java:1201) at >>>junit.framework.TestSuite.run(TestSuite.java:227) >>> at >>>org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) >>> at >>>org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) >>> >>> at >>>org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) >>> at >>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) >>> >>> at >>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) >>> >>> at >>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) >>> >>> at >>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) >>> >>>Caused by: java.lang.RuntimeException: Exception invoking jsxFunction_go >>> at >>>net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:190) >>> at >>>net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:479) >>> >>> at >>>net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1702) >>> >>> at >>>net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845) >>> >>> at >>>net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164) >>> >>> at >>>net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429) >>> >>> at >>>com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264) >>> >>> at >>>net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157) >>> >>> at >>>net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175) >>> >>> at >>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:416) >>> >>> at >>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521) >>> >>> ... 58 more >>>Caused by: com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 500 >>>Internal Server Error for >>>https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do >>> at >>>com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:509) >>> >>> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:304) >>> at >>>com.gargoylesoftware.htmlunit.History.goToUrlAtCurrentIndex(History.java:176) >>> at com.gargoylesoftware.htmlunit.History.go(History.java:138) >>> at >>>com.gargoylesoftware.htmlunit.javascript.host.History.jsxFunction_go(History.java:132) >>> >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at >>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>> at >>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>> >>> at java.lang.reflect.Method.invoke(Method.java:585) >>> at >>>net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:164) >>> ... 68 more >>> >>>======= EXCEPTION END ======== >>> >>> >> >>------------------------------------------------------------------------------ >>Beautiful is writing same markup. Internet Explorer 9 supports >>standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. >>Spend less time writing and rewriting code and more time creating great >>experiences on the web. Be a part of the beta today. >>http://p.sf.net/sfu/beautyoftheweb >>_______________________________________________ >>JWebUnit-users mailing list >>JWe...@li... >>https://lists.sourceforge.net/lists/listinfo/jwebunit-users >> >> > |
From: lakshmi s. <lso...@gm...> - 2010-10-05 22:35:01
|
Hi Julien, I had a similar issue in the begining of the year. It was due to the embedded Java Script. After installing JWebUnit2.3 that problem disappeared. I think it was due to the JavaScript support in the htmlunitEngine. I know there is an updated version of htmlunit-2.8 (I think). Will JWebUnit be released any time soon with the new versions of htmlunit files? Thank you, Lakshmi On Tue, Oct 5, 2010 at 3:59 PM, Julien HENRY <he...@ya...> wrote: > Hi, > > According to me the click was successful but the processing of the event > produce an error on the server: > 500 Internal Server Error for > https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do > > Please check your server logs to know what is the problem. > > Regards, > > Julien > > > *De :* lakshmi somavaram <lso...@gm...> > *À :* Usage problems for JWebUnit <jwe...@li...> > *Envoyé le :* Mar 5 octobre 2010, 22h 08min 20s > *Objet :* [JWebUnit-users] Issues with ClickElementByXPath > > Dear Users, > > I am having issues with ClickElementByXPath function. I am listing below > the HTML code, JWebUnit Code and the error message. I am getting "exception > invoking jsxFunction_go" and "http 500 internal server error". > Please let me know how this can be solved. > > I am using the JWebunit 2.3. > > Thank you, > Lakshmi. > > My HTML code: > ---------------------- > <a tabindex="101" href="javascript:selCust(1937890)"> > TRIPLE D FARMS LLC > </a> > -------------------------------------------------------------------------- > > <script language="JavaScript"> > <!-- > > function selCust(coreId) > { > document.ResultForm.pageAction.value = "SelCust"; > document.ResultForm.coreId.value = coreId; > document.ResultForm.submit(); > } > //--> > </script> > > JWEBUNIT Code: > -------------------------- > > clickElementByXPath("//a[*@tabindex*='101' and *@href* > ='javascript:selCust(1937890)']"); > > Tried also, > > clickElementByXPath( > "//a[@tabindex='101' and @href=contains(@href, 'javascript:')]"); > > *ERROR:* > > ======= EXCEPTION START ======== > Exception class=[java.lang.RuntimeException] > com.gargoylesoftware.htmlunit.ScriptException: Exception invoking > jsxFunction_go > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:527) > at > net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537) > at > net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:425) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:400) > at > com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:884) > at > com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:302) > at > com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:369) > at > com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:225) > at > com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:235) > at > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:718) > at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) > at > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:676) > at > org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136) > at > org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038) > at > org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) > at > org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329) > at > org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999) > at > org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991) > at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895) > at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) > at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:896) > at > com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350) > at > com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304) > at > com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134) > at > com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101) > at > com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:420) > at > com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2136) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:553) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:631) > at > com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1254) > at > com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1212) > at > com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1179) > at > net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.clickElementByXPath(HtmlUnitTestingEngineImpl.java:1854) > at > net.sourceforge.jwebunit.junit.WebTester.clickElementByXPath(WebTester.java:2591) > at > net.sourceforge.jwebunit.junit.WebTestCase.clickElementByXPath(WebTestCase.java:2082) > at > gov.usda.fsa.tco.acretests.ACRETests.testACREPRSSetup(ACRETests.java:1201) at > junit.framework.TestSuite.run(TestSuite.java:227) > at > org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) > at > org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) > at > org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) > Caused by: java.lang.RuntimeException: Exception invoking jsxFunction_go > at > net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:190) > at > net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:479) > at > net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1702) > at > net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845) > at > net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164) > at > net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429) > at > com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264) > at > net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157) > at > net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:416) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521) > ... 58 more > Caused by: com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 500 > Internal Server Error for > https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do > at > com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:509) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:304) > at > com.gargoylesoftware.htmlunit.History.goToUrlAtCurrentIndex(History.java:176) > at com.gargoylesoftware.htmlunit.History.go(History.java:138) > at > com.gargoylesoftware.htmlunit.javascript.host.History.jsxFunction_go(History.java:132) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:164) > ... 68 more > > ======= EXCEPTION END ======== > > > > > > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > |
From: Julien H. <he...@ya...> - 2010-10-05 20:59:30
|
Hi, According to me the click was successful but the processing of the event produce an error on the server: 500 Internal Server Error for https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do Please check your server logs to know what is the problem. Regards, Julien > >De : lakshmi somavaram <lso...@gm...> >À : Usage problems for JWebUnit <jwe...@li...> >Envoyé le : Mar 5 octobre 2010, 22h 08min 20s >Objet : [JWebUnit-users] Issues with ClickElementByXPath > > >Dear Users, > >I am having issues with ClickElementByXPath function. I am listing below the >HTML code, JWebUnit Code and the error message. I am getting "exception invoking >jsxFunction_go" and "http 500 internal server error". >Please let me know how this can be solved. > >I am using the JWebunit 2.3. > >Thank you, >Lakshmi. > >My HTML code: >---------------------- ><a tabindex="101" href="javascript:selCust(1937890)"> > TRIPLE D FARMS LLC > </a> >-------------------------------------------------------------------------- > ><script language="JavaScript"> ><!-- > > function selCust(coreId) > { > document.ResultForm.pageAction.value = "SelCust"; > document.ResultForm.coreId.value = coreId; > document.ResultForm.submit(); > } >//--> ></script> > >JWEBUNIT Code: >-------------------------- >clickElementByXPath("//a[@tabindex='101' and >@href='javascript:selCust(1937890)']"); >Tried also,clickElementByXPath("//a[@tabindex='101' and @href=contains(@href, >'javascript:')]"); > >ERROR: >======= EXCEPTION START ======== >Exception class=[java.lang.RuntimeException] >com.gargoylesoftware.htmlunit.ScriptException: Exception invoking jsxFunction_go > at >com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:527) > > at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537) > at >net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538) > > at >com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:425) > > at >com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:400) > > at >com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:884) > > at >com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:302) > > at >com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:369) > > at com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:225) > at >com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:235) > > at >com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:718) > > at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) > at >com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:676) > > at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136) > at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038) > at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) > at >org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329) > at >org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999) > > at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991) > at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895) > at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) > at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at >com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:896) > > at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350) > at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304) > at >com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134) > > at >com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101) > > at >com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:420) > at >com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2136) > > at >com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:553) > > at >com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:631) > > at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1254) > at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1212) > at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1179) > at >net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.clickElementByXPath(HtmlUnitTestingEngineImpl.java:1854) > > at >net.sourceforge.jwebunit.junit.WebTester.clickElementByXPath(WebTester.java:2591) > > at >net.sourceforge.jwebunit.junit.WebTestCase.clickElementByXPath(WebTestCase.java:2082) > > at >gov.usda.fsa.tco.acretests.ACRETests.testACREPRSSetup(ACRETests.java:1201) at >junit.framework.TestSuite.run(TestSuite.java:227) > at >org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) > at >org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) > > at >org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) > at >org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) > > at >org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) > > at >org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) > > at >org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) > >Caused by: java.lang.RuntimeException: Exception invoking jsxFunction_go > at >net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:190) > at >net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:479) > > at >net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1702) > > at >net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845) > > at >net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164) > > at >net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429) > > at >com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264) > > at >net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157) > > at >net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175) > > at >com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:416) > > at >com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521) > > ... 58 more >Caused by: com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 500 >Internal Server Error for >https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do > at >com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:509) > > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:304) > at >com.gargoylesoftware.htmlunit.History.goToUrlAtCurrentIndex(History.java:176) > at com.gargoylesoftware.htmlunit.History.go(History.java:138) > at >com.gargoylesoftware.htmlunit.javascript.host.History.jsxFunction_go(History.java:132) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > at >net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:164) > ... 68 more > >======= EXCEPTION END ======== > > |
From: lakshmi s. <lso...@gm...> - 2010-10-05 20:08:28
|
Dear Users, I am having issues with ClickElementByXPath function. I am listing below the HTML code, JWebUnit Code and the error message. I am getting "exception invoking jsxFunction_go" and "http 500 internal server error". Please let me know how this can be solved. I am using the JWebunit 2.3. Thank you, Lakshmi. My HTML code: ---------------------- <a tabindex="101" href="javascript:selCust(1937890)"> TRIPLE D FARMS LLC </a> -------------------------------------------------------------------------- <script language="JavaScript"> <!-- function selCust(coreId) { document.ResultForm.pageAction.value = "SelCust"; document.ResultForm.coreId.value = coreId; document.ResultForm.submit(); } //--> </script> JWEBUNIT Code: -------------------------- clickElementByXPath("//a[*@tabindex*='101' and *@href* ='javascript:selCust(1937890)']"); Tried also, clickElementByXPath("//a[@tabindex='101' and @href=contains(@href, 'javascript:')]"); *ERROR:* ======= EXCEPTION START ======== Exception class=[java.lang.RuntimeException] com.gargoylesoftware.htmlunit.ScriptException: Exception invoking jsxFunction_go at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:527) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:425) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:400) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:884) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:302) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:369) at com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:225) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:235) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:718) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:676) at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136) at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038) at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329) at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999) at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:896) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:420) at com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2136) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:553) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:631) at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1254) at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1212) at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1179) at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.clickElementByXPath(HtmlUnitTestingEngineImpl.java:1854) at net.sourceforge.jwebunit.junit.WebTester.clickElementByXPath(WebTester.java:2591) at net.sourceforge.jwebunit.junit.WebTestCase.clickElementByXPath(WebTestCase.java:2082) at gov.usda.fsa.tco.acretests.ACRETests.testACREPRSSetup(ACRETests.java:1201) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: java.lang.RuntimeException: Exception invoking jsxFunction_go at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:190) at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:479) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1702) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:416) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521) ... 58 more Caused by: com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 500 Internal Server Error for https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do at com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:509) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:304) at com.gargoylesoftware.htmlunit.History.goToUrlAtCurrentIndex(History.java:176) at com.gargoylesoftware.htmlunit.History.go(History.java:138) at com.gargoylesoftware.htmlunit.javascript.host.History.jsxFunction_go(History.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:164) ... 68 more ======= EXCEPTION END ======== |
From: Julien H. <he...@ya...> - 2010-10-05 14:43:25
|
I have updated trunk to HtmlUnit 2.8 and fixed the few API changes. I also updated some dependencies and maven plugins to prepare migration to Maven 3. Feel free to test and let me know in case of issue, I will try to do a release in the coming days if HtmlUnit 2.8 is the solution to your problem. Regards, Julien > >De : Julien HENRY <he...@ya...> >À : Usage problems for JWebUnit <jwe...@li...> >Envoyé le : Mar 5 octobre 2010, 9h 17min 36s >Objet : [JWebUnit-users] Re : Re : HtmlUnit 2.8 > > >Yes, it looks there is an API change in HTTPClient. I'll look at it. > >Regards, > >Julien > > >> >>De : Eric Jelinek <eje...@ho...> >>À : Usage problems for JWebUnit <jwe...@li...> >>Envoyé le : Lun 4 octobre 2010, 20h 16min 55s >>Objet : Re: [JWebUnit-users] Re : HtmlUnit 2.8 >> >> >>Hi Julien, >> >>I’m not all that familiar with Maven, but I believe this is what you are looking >> >>for. >> >>Eric >> >>From:Julien HENRY [mailto:he...@ya...] >>Sent: Monday, October 04, 2010 9:02 AM >>To: Usage problems for JWebUnit >>Subject: [JWebUnit-users] Re : HtmlUnit 2.8 >> >>Hi Eric, >> >> >>It could be quickly done if there is not too much API change. I'll try to look >>at it as soon as possible, but on your side you can try to build from trunk >>after updating htmlunit version in Maven pom. Report any test failure here. >> >>Regards, >> >>Julien >> >>>De :Eric Jelinek <eje...@ho...> >>>À : "jwe...@li..." >>><jwe...@li...> >>>Envoyé le : Lun 4 octobre 2010, 14h 53min 05s >>>Objet : [JWebUnit-users] HtmlUnit 2.8 >>>I'm curious when we might see a jwebunit release with htmlunit 2.8. I've got a > >>>js problem and perusing the htmlunit community shows that my issue "may" be >>>resolved with htmlunit 2.8. >>> >>>Thanks >>>Eric >> > |
From: Julien H. <he...@ya...> - 2010-10-05 07:17:46
|
Yes, it looks there is an API change in HTTPClient. I'll look at it. Regards, Julien > >De : Eric Jelinek <eje...@ho...> >À : Usage problems for JWebUnit <jwe...@li...> >Envoyé le : Lun 4 octobre 2010, 20h 16min 55s >Objet : Re: [JWebUnit-users] Re : HtmlUnit 2.8 > > >Hi Julien, > >I’m not all that familiar with Maven, but I believe this is what you are looking >for. > >Eric > >From:Julien HENRY [mailto:he...@ya...] >Sent: Monday, October 04, 2010 9:02 AM >To: Usage problems for JWebUnit >Subject: [JWebUnit-users] Re : HtmlUnit 2.8 > >Hi Eric, > > >It could be quickly done if there is not too much API change. I'll try to look >at it as soon as possible, but on your side you can try to build from trunk >after updating htmlunit version in Maven pom. Report any test failure here. > >Regards, > >Julien > >>De :Eric Jelinek <eje...@ho...> >>À : "jwe...@li..." >><jwe...@li...> >>Envoyé le : Lun 4 octobre 2010, 14h 53min 05s >>Objet : [JWebUnit-users] HtmlUnit 2.8 >>I'm curious when we might see a jwebunit release with htmlunit 2.8. I've got a >>js problem and perusing the htmlunit community shows that my issue "may" be >>resolved with htmlunit 2.8. >> >>Thanks >>Eric > |