jwebunit-users Mailing List for JWebUnit (Page 5)
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: Julien H. <he...@ya...> - 2011-08-18 12:23:23
|
Hi all, JWebUnit 3.0 is released and should be already available for download on Maven central and Sourceforge. This release contains updated HtmlUnit 2.9 and JUnit 4 upgrade. There are a few corner cases for those that want to stick to JUnit 3, so please consult migration guide when available. The site is not up to date but will be deployed soon. Regards, Julien |
From: Julien H. <he...@ya...> - 2011-08-17 16:16:52
|
Thanks for testing. I'll try to push a release tomorrow. Regards Julien |
From: Julien H. <he...@ya...> - 2011-08-16 16:08:39
|
OK :) I guess you are not using Maven. This is a Maven SNAPSHOT repository. Try this link: http://dl.dropbox.com/u/20894864/jwebunit-3.0-SNAPSHOT-release.zip Regards, Julien >________________________________ >De : Jason McSwain <jas...@gm...> >À : Julien HENRY <he...@ya...>; Usage problems for JWebUnit <jwe...@li...> >Envoyé le : Mardi 16 Août 2011 16h41 >Objet : Re: [JWebUnit-users] JWebUnit 2.5 and HtmlUnit 2.9 > > >Julien, > >I'd be happy to test a snapshot, but i don't know what this link is for. I can't seem to find any downloadable jWebUnit bundle. (I was looking for a zip with a jar...) What am i looking at? > > * https://oss.sonatype.org/content/repositories/snapshots/Regards, >-Jason- > > > >On Tue, Aug 16, 2011 at 4:30 AM, Julien HENRY <he...@ya...> wrote: > >Hi Jason, >> >>It seems the problem was already fixed in trunk. I have uploaded a new SNAPSHOT of jwebunit 3.0. Could you please test and tell me if it works for you. In this case I will perform the release. >> >>http://oss.sonatype.org/content/repositories/snapshots >> >> >>Regards, >> >>Julien >> >>>________________________________ >>>De : Jason McSwain <jas...@gm...> >>>À : Usage problems for JWebUnit <jwe...@li...> >>>Envoyé le : Lundi 15 Août 2011 21h30 >>>Objet : [JWebUnit-users] JWebUnit 2.5 and HtmlUnit 2.9 >> >>> >>> >>>It seems that i'm having a problem with the integration between HtmlUnit-2.9 & JWebUnit-2.5. >>> >>>Has anyone seen this type of error before? Are there any plans for a new JWebUnit drop that will be compatible with HtmlUnit-2.9? >>> >>>java.lang.NoSuchMethodError: com.gargoylesoftware.htmlunit.html.HtmlPage.getAllHtmlChildElements()Ljava/lang/Iterable; >>> at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.hasFormParameterNamed(HtmlUnitTestingEngineImpl.java:413) >>> at net.sourceforge.jwebunit.junit.WebTester.assertFormElementPresent(WebTester.java:903) >>> at net.sourceforge.jwebunit.junit.WebTester.setTextField(WebTester.java:2324) >>> >>> >>>Any help would be appreciated. >>>Thanks, >>>-Jason- >>> >>>------------------------------------------------------------------------------ >>>uberSVN's rich system and user administration capabilities and model >>>configuration take the hassle out of deploying and managing Subversion and >>>the tools developers use with it. Learn more about uberSVN and get a free >>>download at: http://p.sf.net/sfu/wandisco-dev2dev >>> >>>_______________________________________________ >>>JWebUnit-users mailing list >>>JWe...@li... >>>https://lists.sourceforge.net/lists/listinfo/jwebunit-users >>> >>> >>> >> >>------------------------------------------------------------------------------ >>uberSVN's rich system and user administration capabilities and model >>configuration take the hassle out of deploying and managing Subversion and >>the tools developers use with it. Learn more about uberSVN and get a free >>download at: http://p.sf.net/sfu/wandisco-dev2dev >>_______________________________________________ >>JWebUnit-users mailing list >>JWe...@li... >>https://lists.sourceforge.net/lists/listinfo/jwebunit-users >> > > > |
From: Jason M. <jas...@gm...> - 2011-08-16 16:08:24
|
Julien, I tried getting maven to work (see below), but i got stuck. Can you help me with this? Either would be fine: - provide me a 3.0 release/snapshot zip - provide me instructions for building with maven. (i have never been able to successfully build with maven, so instructions would need to be from scratch) I tried below, but it didn't work. ------------------------------------------- I'd like to get this moving ASAP. 70% of my automation currently depends on JWebUnit. If i can't get this resolved quickly, i'm going to have to rip out the JWebUnit, and reimplement in HtmlUnit. Since i haven't heard back from anyone yet, i started fishing around on the link. Heer is what i've done. (i have no idea what the "right" steps are since i can't seem to find any documentation on this. 1. install apache-maven-3.0.3-bin.tar-gz 2. followed linux/unit install instructions, and confirmed that java/maven are happy, and environment paths are correct. 3. read the "Learning About Maven > Run Maven" section. 4. mkdir ~/maven-repo 5. downloaded the most current POM from jWebUnit @ https://oss.sonatype.org/content/repositories/snapshots/net/sourceforge/jwebunit/jwebunit/3.0-SNAPSHOT/jwebunit-3.0-20110816.092626-4.pom 6. saved to maven-repo dir 7. chmod 777 *.pom 8. try to compile the project, but it fails. here is the output below. jason@mcswain2:~/maven-repo$ mvn -f jwebunit-3.0-20110816.092626-4.pom compile [INFO] Scanning for projects... [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project net.sourceforge.jwebunit:jwebunit:3.0-SNAPSHOT (/home/jason/maven-repo/jwebunit-3.0-20110816.092626-4.pom) has 5 errors [ERROR] Child module /home/jason/maven-repo/jwebunit-code-generator of /home/jason/maven-repo/jwebunit-3.0-20110816.092626-4.pom does not exist [ERROR] Child module /home/jason/maven-repo/jwebunit-core of /home/jason/maven-repo/jwebunit-3.0-20110816.092626-4.pom does not exist [ERROR] Child module /home/jason/maven-repo/jwebunit-commons-tests of /home/jason/maven-repo/jwebunit-3.0-20110816.092626-4.pom does not exist [ERROR] Child module /home/jason/maven-repo/jwebunit-htmlunit-plugin of /home/jason/maven-repo/jwebunit-3.0-20110816.092626-4.pom does not exist [ERROR] Child module /home/jason/maven-repo/jwebunit-selenium-plugin of /home/jason/maven-repo/jwebunit-3.0-20110816.092626-4.pom does not exist [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException jason@mcswain2:~/maven-repo$ Regards, -Jason- On Tue, Aug 16, 2011 at 9:41 AM, Jason McSwain <jas...@gm...>wrote: > Julien, > > I'd be happy to test a snapshot, but i don't know what this link is for. I > can't seem to find any downloadable jWebUnit bundle. (I was looking for a > zip with a jar...) What am i looking at? > > - https://oss.sonatype.org/content/repositories/snapshots/ > > Regards, > -Jason- > > > > On Tue, Aug 16, 2011 at 4:30 AM, Julien HENRY <he...@ya...> wrote: > >> Hi Jason, >> >> It seems the problem was already fixed in trunk. I have uploaded a new >> SNAPSHOT of jwebunit 3.0. Could you please test and tell me if it works for >> you. In this case I will perform the release. >> >> http://oss.sonatype.org/content/repositories/snapshots >> >> >> Regards, >> >> Julien >> >> >________________________________ >> >De : Jason McSwain <jas...@gm...> >> >À : Usage problems for JWebUnit <jwe...@li...> >> >Envoyé le : Lundi 15 Août 2011 21h30 >> >Objet : [JWebUnit-users] JWebUnit 2.5 and HtmlUnit 2.9 >> > >> > >> >It seems that i'm having a problem with the integration between >> HtmlUnit-2.9 & JWebUnit-2.5. >> > >> >Has anyone seen this type of error before? Are there any plans for a new >> JWebUnit drop that will be compatible with HtmlUnit-2.9? >> > >> >java.lang.NoSuchMethodError: >> com.gargoylesoftware.htmlunit.html.HtmlPage.getAllHtmlChildElements()Ljava/lang/Iterable; >> > at >> net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.hasFormParameterNamed(HtmlUnitTestingEngineImpl.java:413) >> > at >> net.sourceforge.jwebunit.junit.WebTester.assertFormElementPresent(WebTester.java:903) >> > at >> net.sourceforge.jwebunit.junit.WebTester.setTextField(WebTester.java:2324) >> > >> > >> >Any help would be appreciated. >> >Thanks, >> >-Jason- >> > >> >> >------------------------------------------------------------------------------ >> >uberSVN's rich system and user administration capabilities and model >> >configuration take the hassle out of deploying and managing Subversion >> and >> >the tools developers use with it. Learn more about uberSVN and get a free >> >download at: http://p.sf.net/sfu/wandisco-dev2dev >> > >> >_______________________________________________ >> >JWebUnit-users mailing list >> >JWe...@li... >> >https://lists.sourceforge.net/lists/listinfo/jwebunit-users >> > >> > >> > >> >> >> ------------------------------------------------------------------------------ >> uberSVN's rich system and user administration capabilities and model >> configuration take the hassle out of deploying and managing Subversion and >> the tools developers use with it. Learn more about uberSVN and get a free >> download at: http://p.sf.net/sfu/wandisco-dev2dev >> _______________________________________________ >> JWebUnit-users mailing list >> JWe...@li... >> https://lists.sourceforge.net/lists/listinfo/jwebunit-users >> > > |
From: Jason M. <jas...@gm...> - 2011-08-16 14:42:27
|
Julien, I'd be happy to test a snapshot, but i don't know what this link is for. I can't seem to find any downloadable jWebUnit bundle. (I was looking for a zip with a jar...) What am i looking at? - https://oss.sonatype.org/content/repositories/snapshots/ Regards, -Jason- On Tue, Aug 16, 2011 at 4:30 AM, Julien HENRY <he...@ya...> wrote: > Hi Jason, > > It seems the problem was already fixed in trunk. I have uploaded a new > SNAPSHOT of jwebunit 3.0. Could you please test and tell me if it works for > you. In this case I will perform the release. > > http://oss.sonatype.org/content/repositories/snapshots > > > Regards, > > Julien > > >________________________________ > >De : Jason McSwain <jas...@gm...> > >À : Usage problems for JWebUnit <jwe...@li...> > >Envoyé le : Lundi 15 Août 2011 21h30 > >Objet : [JWebUnit-users] JWebUnit 2.5 and HtmlUnit 2.9 > > > > > >It seems that i'm having a problem with the integration between > HtmlUnit-2.9 & JWebUnit-2.5. > > > >Has anyone seen this type of error before? Are there any plans for a new > JWebUnit drop that will be compatible with HtmlUnit-2.9? > > > >java.lang.NoSuchMethodError: > com.gargoylesoftware.htmlunit.html.HtmlPage.getAllHtmlChildElements()Ljava/lang/Iterable; > > at > net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.hasFormParameterNamed(HtmlUnitTestingEngineImpl.java:413) > > at > net.sourceforge.jwebunit.junit.WebTester.assertFormElementPresent(WebTester.java:903) > > at > net.sourceforge.jwebunit.junit.WebTester.setTextField(WebTester.java:2324) > > > > > >Any help would be appreciated. > >Thanks, > >-Jason- > > > > >------------------------------------------------------------------------------ > >uberSVN's rich system and user administration capabilities and model > >configuration take the hassle out of deploying and managing Subversion and > >the tools developers use with it. Learn more about uberSVN and get a free > >download at: http://p.sf.net/sfu/wandisco-dev2dev > > > >_______________________________________________ > >JWebUnit-users mailing list > >JWe...@li... > >https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > > > > > > > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > |
From: Julien H. <he...@ya...> - 2011-08-16 09:31:01
|
Hi Jason, It seems the problem was already fixed in trunk. I have uploaded a new SNAPSHOT of jwebunit 3.0. Could you please test and tell me if it works for you. In this case I will perform the release. http://oss.sonatype.org/content/repositories/snapshots Regards, Julien >________________________________ >De : Jason McSwain <jas...@gm...> >À : Usage problems for JWebUnit <jwe...@li...> >Envoyé le : Lundi 15 Août 2011 21h30 >Objet : [JWebUnit-users] JWebUnit 2.5 and HtmlUnit 2.9 > > >It seems that i'm having a problem with the integration between HtmlUnit-2.9 & JWebUnit-2.5. > >Has anyone seen this type of error before? Are there any plans for a new JWebUnit drop that will be compatible with HtmlUnit-2.9? > >java.lang.NoSuchMethodError: com.gargoylesoftware.htmlunit.html.HtmlPage.getAllHtmlChildElements()Ljava/lang/Iterable; > at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.hasFormParameterNamed(HtmlUnitTestingEngineImpl.java:413) > at net.sourceforge.jwebunit.junit.WebTester.assertFormElementPresent(WebTester.java:903) > at net.sourceforge.jwebunit.junit.WebTester.setTextField(WebTester.java:2324) > > >Any help would be appreciated. >Thanks, >-Jason- > >------------------------------------------------------------------------------ >uberSVN's rich system and user administration capabilities and model >configuration take the hassle out of deploying and managing Subversion and >the tools developers use with it. Learn more about uberSVN and get a free >download at: http://p.sf.net/sfu/wandisco-dev2dev > >_______________________________________________ >JWebUnit-users mailing list >JWe...@li... >https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > > |
From: Jason M. <jas...@gm...> - 2011-08-15 19:31:18
|
It seems that i'm having a problem with the integration between HtmlUnit-2.9 & JWebUnit-2.5. Has anyone seen this type of error before? Are there any plans for a new JWebUnit drop that will be compatible with HtmlUnit-2.9? java.lang.NoSuchMethodError: com.gargoylesoftware.htmlunit.html.HtmlPage.getAllHtmlChildElements()Ljava/lang/Iterable; at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.hasFormParameterNamed(HtmlUnitTestingEngineImpl.java:413) at net.sourceforge.jwebunit.junit.WebTester.assertFormElementPresent(WebTester.java:903) at net.sourceforge.jwebunit.junit.WebTester.setTextField(WebTester.java:2324) Any help would be appreciated. Thanks, -Jason- |
From: Jevon W. <je...@je...> - 2011-06-16 01:04:53
|
dev...@us... is not successfully delivering messages: Delivery to the following recipient failed permanently: dev...@us... Technical details of permanent failure: Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 550 550 unknown user (state 14). Jevon On Thu, Jun 16, 2011 at 1:03 PM, Jevon Wright <je...@je...> wrote: > Hi Devishri, > > If you cannot post to the JWebUnit users list, make sure that you are > subscribed to the mailing list. > > JWebUnit cannot distinguish between run and debug modes. I assume you > are running your code via Eclipse debug mode? Is there AJAX on your > tested page? If so, debug mode might be giving HtmlUnit more time to > process your requests. Try adding a Thread.sleep() to your code, or to > use the NicelyResynchronizingAjaxController. > > Hope this helps > Jevon > > On Wed, Jun 15, 2011 at 6:55 PM, <dev...@us...> wrote: >> Hi Jevon, >> This is regarding the issue that i raised in Jwebunit >> developer group related the difference between Debug and >> run mode for Jwebunit. First of all, Thanks for your reply. >> >> For some reason , Iam unable to send the details of the >> issue to jwebunit user list and hence decided to post this to >> you. Just in case if you have any thoughts on this , please >> provide me some lead. Thanks in advance. >> >> >> Issue details: >> ======== >> I wrote a jwebunit test case which is running correctly in >> debug mode but fails in run mode. Note that iam running >> this through eclipse and using Jwebunit 2.5 version. Here is >> the sample code public >> voidtestPasswordValidation() { >> >> finalString baseURL = "http://baseurl/"; >> >> finalString uid = "1234456"; >> >> finalString password = "abcdefgh"; >> >> finalString titlePasswordPage = "Enter Password"; >> >> finalString titleLandingPage = "Users List"; >> >> >> >> setBaseUrl(baseURL); >> >> beginAt("/"); >> >> testLogger.debug("Initial Page: "+ getTestingEngine >> ().getPageTitle()); >> >> >> >> try{ >> >> // login page --> password page >> >> setTextField("userName", uid); >> >> clickLinkWithText("Submit"); >> >> testLogger.debug("After username entry, next page: "+ >> getTestingEngine().getPageTitle() + " (Expected: " >> >> + titlePasswordPage + ")"); >> >> assertTrue("After username entry, next page: ", >> titlePasswordPage.equalsIgnoreCase(getTestingEngine() >> >> .getPageTitle())); >> >> >> >> // password page --> landing page >> >> setTextField("password", password); >> >> clickLinkWithImage("/images/submit.gif"); >> >> testLogger.debug("After password entry, next page: "+ >> getTestingEngine().getPageTitle() + " (Expected: " >> >> + titleLandingPage + ")"); >> >> assertTrue("After password entry, next page: ", >> titleLandingPage.equalsIgnoreCase(getTestingEngine() >> >> .getPageTitle())); >> >> >> >> } catch(finalException e) { >> >> testLogger.debug(e.getMessage()); >> >> fail(e.getMessage()); >> >> } >> >> } >> >> >> >> >> >> Results: >> >> ---------------------------------------- >> >> run mode: >> >> ---------------------------------------- >> >> Initial Page: HomePage >> >> After username entry, next page: Enter Password >> (Expected: Enter Password) >> >> After password entry, next page: Enter Password >> (Expected: Users List) >> >> >> >> >> >> ---------------------------------------- >> >> debug mode: >> >> ---------------------------------------- >> >> Initial Page: HomePage >> >> After username entry, next page: Enter Password >> (Expected: Enter Password) >> >> After password entry, next page:User List (Expected: >> Users List) >> >> >> >> >> >> -- >> This message has been sent to you, a registered SourceForge.net user, >> by another site user, through the SourceForge.net site. This message >> has been delivered to your SourceForge.net mail alias. You may reply >> to this message using the "Reply" feature of your email client, or >> using the messaging facility of SourceForge.net at: >> https://sourceforge.net/sendmessage.php?touser=3413023 >> >> > |
From: Jevon W. <je...@je...> - 2011-06-16 01:03:50
|
Hi Devishri, If you cannot post to the JWebUnit users list, make sure that you are subscribed to the mailing list. JWebUnit cannot distinguish between run and debug modes. I assume you are running your code via Eclipse debug mode? Is there AJAX on your tested page? If so, debug mode might be giving HtmlUnit more time to process your requests. Try adding a Thread.sleep() to your code, or to use the NicelyResynchronizingAjaxController. Hope this helps Jevon On Wed, Jun 15, 2011 at 6:55 PM, <dev...@us...> wrote: > Hi Jevon, > This is regarding the issue that i raised in Jwebunit > developer group related the difference between Debug and > run mode for Jwebunit. First of all, Thanks for your reply. > > For some reason , Iam unable to send the details of the > issue to jwebunit user list and hence decided to post this to > you. Just in case if you have any thoughts on this , please > provide me some lead. Thanks in advance. > > > Issue details: > ======== > I wrote a jwebunit test case which is running correctly in > debug mode but fails in run mode. Note that iam running > this through eclipse and using Jwebunit 2.5 version. Here is > the sample code public > voidtestPasswordValidation() { > > finalString baseURL = "http://baseurl/"; > > finalString uid = "1234456"; > > finalString password = "abcdefgh"; > > finalString titlePasswordPage = "Enter Password"; > > finalString titleLandingPage = "Users List"; > > > > setBaseUrl(baseURL); > > beginAt("/"); > > testLogger.debug("Initial Page: "+ getTestingEngine > ().getPageTitle()); > > > > try{ > > // login page --> password page > > setTextField("userName", uid); > > clickLinkWithText("Submit"); > > testLogger.debug("After username entry, next page: "+ > getTestingEngine().getPageTitle() + " (Expected: " > > + titlePasswordPage + ")"); > > assertTrue("After username entry, next page: ", > titlePasswordPage.equalsIgnoreCase(getTestingEngine() > > .getPageTitle())); > > > > // password page --> landing page > > setTextField("password", password); > > clickLinkWithImage("/images/submit.gif"); > > testLogger.debug("After password entry, next page: "+ > getTestingEngine().getPageTitle() + " (Expected: " > > + titleLandingPage + ")"); > > assertTrue("After password entry, next page: ", > titleLandingPage.equalsIgnoreCase(getTestingEngine() > > .getPageTitle())); > > > > } catch(finalException e) { > > testLogger.debug(e.getMessage()); > > fail(e.getMessage()); > > } > > } > > > > > > Results: > > ---------------------------------------- > > run mode: > > ---------------------------------------- > > Initial Page: HomePage > > After username entry, next page: Enter Password > (Expected: Enter Password) > > After password entry, next page: Enter Password > (Expected: Users List) > > > > > > ---------------------------------------- > > debug mode: > > ---------------------------------------- > > Initial Page: HomePage > > After username entry, next page: Enter Password > (Expected: Enter Password) > > After password entry, next page:User List (Expected: > Users List) > > > > > > -- > This message has been sent to you, a registered SourceForge.net user, > by another site user, through the SourceForge.net site. This message > has been delivered to your SourceForge.net mail alias. You may reply > to this message using the "Reply" feature of your email client, or > using the messaging facility of SourceForge.net at: > https://sourceforge.net/sendmessage.php?touser=3413023 > > |
From: Jevon W. <je...@je...> - 2011-05-23 02:21:01
|
Hi Yabing, You need to subscribe to the mailing list in order to post. As the stacktrace says, the connection timed out, and it looks like you have been trying to set proxy details. Did you have issues with setting these? Personally I only use JWebUnit with local development copies of my application so I don't need to deal with proxy information. Jevon On Fri, May 20, 2011 at 9:34 PM, yabing chen <che...@gm...> wrote: > I have problem to use JWebUnit to connect to URL from eclipse. in the first > line of the testSearch, it already failed. how to overcome this connection > error? thanks. > > Below is my sample code: > > public class GoogleTest extends WebTestCase { > > static String searchLink = "HttpUnit"; > > public static void main(String[] args){ > > junit.textui.TestRunner.run(new TestSuite(GoogleTest.class)); > } > > @Before > public void setUp() throws Exception{ > super.setUp(); > // > setTestingEngineKey(TestingEngineRegistry.TESTING_ENGINE_HTMLUNIT); > > // System.setProperty("proxyHost", "10.138.10.15"); > // System.setProperty("proxyPort", "8080"); > // System.setProperty("proxySet", "true"); > > setBaseUrl("http://www.google.com"); > > > // getTestContext().setProxyAuthorization(null, null, "10.138.10.15", > 8080); > } > > public void testSearch(){ > beginAt("/"); > // assertFormElementPresent("q"); > // setFormElement("q", "HttpUnit"); > // submit("btnG"); > // assertLinkPresentWithText(searchLink); > // clickLinkWithText(searchLink); > > > } > } > > and the error output is: > > 17:32:04.919 [main] DEBUG c.g.htmlunit.WebClient - Get page for window named > '', using WebRequest[<url="http://www.google.com/", GET, > EncodingType[name=application/x-www-form-urlencoded], [], {Accept=*/*}, > null>] > 17:32:04.935 [main] DEBUG c.g.htmlunit.WebClient - Load response for GET > http://www.google.com/ > 17:32:05.169 [main] DEBUG o.a.h.i.c.t.ThreadSafeClientConnManager - > ThreadSafeClientConnManager.getConnection: > HttpRoute[{}->http://www.google.com], timeout = 0 > 17:32:05.169 [main] DEBUG o.a.h.i.conn.tsccm.ConnPoolByRoute - Total > connections kept alive: 0 > 17:32:05.169 [main] DEBUG o.a.h.i.conn.tsccm.ConnPoolByRoute - Total issued > connections: 0 > 17:32:05.169 [main] DEBUG o.a.h.i.conn.tsccm.ConnPoolByRoute - Total > allocated connection: 0 out of 20 > 17:32:05.169 [main] DEBUG o.a.h.i.conn.tsccm.ConnPoolByRoute - No free > connections [HttpRoute[{}->http://www.google.com]][null] > 17:32:05.169 [main] DEBUG o.a.h.i.conn.tsccm.ConnPoolByRoute - Available > capacity: 2 out of 2 [HttpRoute[{}->http://www.google.com]][null] > 17:32:05.169 [main] DEBUG o.a.h.i.conn.tsccm.ConnPoolByRoute - Creating new > connection [HttpRoute[{}->http://www.google.com]] > 17:32:26.388 [main] DEBUG o.a.h.i.conn.DefaultClientConnection - Connection > shut down > 17:32:26.388 [main] DEBUG o.a.h.i.c.t.ThreadSafeClientConnManager - Released > connection is not reusable. > 17:32:26.388 [main] DEBUG o.a.h.i.conn.tsccm.ConnPoolByRoute - Releasing > connection [HttpRoute[{}->http://www.google.com]][null] > 17:32:26.388 [main] DEBUG o.a.h.i.conn.tsccm.ConnPoolByRoute - Notifying > no-one, there are no waiting threads > 17:32:26.388 [main] DEBUG c.g.htmlunit.WebWindowImpl - destroyChildren > 17:32:26.403 [main] DEBUG n.s.j.h.HtmlUnitTestingEngineImpl - Window closed > : no_html > 17:32:26.403 [main] DEBUG o.a.h.i.c.t.ThreadSafeClientConnManager - Shutting > down > > and the jwebunit error stack: > java.lang.RuntimeException: org.apache.http.conn.HttpHostConnectException: > Connection to http://www.google.com refused > at > net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.gotoPage(HtmlUnitTestingEngineImpl.java:263) > at > net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.beginAt(HtmlUnitTestingEngineImpl.java:212) > at net.sourceforge.jwebunit.junit.WebTester.beginAt(WebTester.java:228) > at > net.sourceforge.jwebunit.junit.WebTestCase.beginAt(WebTestCase.java:193) > at com.test.GoogleTest.testSearch(GoogleTest.java:34) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at junit.framework.TestCase.runTest(TestCase.java:168) > at junit.framework.TestCase.runBare(TestCase.java:134) > at > net.sourceforge.jwebunit.junit.WebTestCase.runBare(WebTestCase.java:93) > at junit.framework.TestResult$1.protect(TestResult.java:110) > at junit.framework.TestResult.runProtected(TestResult.java:128) > at junit.framework.TestResult.run(TestResult.java:113) > at junit.framework.TestCase.run(TestCase.java:124) > at junit.framework.TestSuite.runTest(TestSuite.java:243) > at junit.framework.TestSuite.run(TestSuite.java:238) > at > org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) > at > org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) > at > org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) > Caused by: org.apache.http.conn.HttpHostConnectException: Connection to > http://www.google.com refused > at > org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:127) > at > org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:147) > at > org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:108) > at > org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415) > at > org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641) > at > org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:597) > at > com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:133) > at > com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1405) > at > com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1324) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:303) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:369) > at > net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.gotoPage(HtmlUnitTestingEngineImpl.java:253) > ... 24 more > Caused by: java.net.ConnectException: Connection timed out: connect > at java.net.PlainSocketImpl.socketConnect(Native Method) > at java.net.PlainSocketImpl.doConnect(Unknown Source) > at java.net.PlainSocketImpl.connectToAddress(Unknown Source) > at java.net.PlainSocketImpl.connect(Unknown Source) > at java.net.SocksSocketImpl.connect(Unknown Source) > at java.net.Socket.connect(Unknown Source) > at > com.gargoylesoftware.htmlunit.SocksSocketFactory.connectSocket(SocksSocketFactory.java:88) > at > org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:123) > ... 35 more > > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > |
From: yabing c. <che...@gm...> - 2011-05-20 09:34:07
|
I have problem to use JWebUnit to connect to URL from eclipse. in the first line of the testSearch, it already failed. how to overcome this connection error? thanks. Below is my sample code: public class GoogleTest extends WebTestCase { static String searchLink = "HttpUnit"; public static void main(String[] args){ junit.textui.TestRunner.run(new TestSuite(GoogleTest.class)); } @Before public void setUp() throws Exception{ super.setUp(); // setTestingEngineKey(TestingEngineRegistry.TESTING_ENGINE_HTMLUNIT); // System.setProperty("proxyHost", "10.138.10.15"); // System.setProperty("proxyPort", "8080"); // System.setProperty("proxySet", "true"); setBaseUrl("http://www.google.com"); // getTestContext().setProxyAuthorization(null, null, "10.138.10.15", 8080); } public void testSearch(){ beginAt("/"); // assertFormElementPresent("q"); // setFormElement("q", "HttpUnit"); // submit("btnG"); // assertLinkPresentWithText(searchLink); // clickLinkWithText(searchLink); } } and the error output is: 17:32:04.919 [main] DEBUG c.g.htmlunit.WebClient - Get page for window named '', using WebRequest[<url="http://www.google.com/", GET, EncodingType[name=application/x-www-form-urlencoded], [], {Accept=*/*}, null>] 17:32:04.935 [main] DEBUG c.g.htmlunit.WebClient - Load response for GET http://www.google.com/ 17:32:05.169 [main] DEBUG o.a.h.i.c.t.ThreadSafeClientConnManager - ThreadSafeClientConnManager.getConnection: HttpRoute[{}-> http://www.google.com], timeout = 0 17:32:05.169 [main] DEBUG o.a.h.i.conn.tsccm.ConnPoolByRoute - Total connections kept alive: 0 17:32:05.169 [main] DEBUG o.a.h.i.conn.tsccm.ConnPoolByRoute - Total issued connections: 0 17:32:05.169 [main] DEBUG o.a.h.i.conn.tsccm.ConnPoolByRoute - Total allocated connection: 0 out of 20 17:32:05.169 [main] DEBUG o.a.h.i.conn.tsccm.ConnPoolByRoute - No free connections [HttpRoute[{}->http://www.google.com]][null] 17:32:05.169 [main] DEBUG o.a.h.i.conn.tsccm.ConnPoolByRoute - Available capacity: 2 out of 2 [HttpRoute[{}->http://www.google.com]][null] 17:32:05.169 [main] DEBUG o.a.h.i.conn.tsccm.ConnPoolByRoute - Creating new connection [HttpRoute[{}->http://www.google.com]] 17:32:26.388 [main] DEBUG o.a.h.i.conn.DefaultClientConnection - Connection shut down 17:32:26.388 [main] DEBUG o.a.h.i.c.t.ThreadSafeClientConnManager - Released connection is not reusable. 17:32:26.388 [main] DEBUG o.a.h.i.conn.tsccm.ConnPoolByRoute - Releasing connection [HttpRoute[{}->http://www.google.com]][null] 17:32:26.388 [main] DEBUG o.a.h.i.conn.tsccm.ConnPoolByRoute - Notifying no-one, there are no waiting threads 17:32:26.388 [main] DEBUG c.g.htmlunit.WebWindowImpl - destroyChildren 17:32:26.403 [main] DEBUG n.s.j.h.HtmlUnitTestingEngineImpl - Window closed : no_html 17:32:26.403 [main] DEBUG o.a.h.i.c.t.ThreadSafeClientConnManager - Shutting down and the jwebunit error stack: java.lang.RuntimeException: org.apache.http.conn.HttpHostConnectException: Connection to http://www.google.com refused at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.gotoPage(HtmlUnitTestingEngineImpl.java:263) at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.beginAt(HtmlUnitTestingEngineImpl.java:212) at net.sourceforge.jwebunit.junit.WebTester.beginAt(WebTester.java:228) at net.sourceforge.jwebunit.junit.WebTestCase.beginAt(WebTestCase.java:193) at com.test.GoogleTest.testSearch(GoogleTest.java:34) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at net.sourceforge.jwebunit.junit.WebTestCase.runBare(WebTestCase.java:93) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: org.apache.http.conn.HttpHostConnectException: Connection to http://www.google.com refused at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:127) at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:147) at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:108) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:597) at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:133) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1405) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1324) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:303) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:369) at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.gotoPage(HtmlUnitTestingEngineImpl.java:253) ... 24 more Caused by: java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at com.gargoylesoftware.htmlunit.SocksSocketFactory.connectSocket(SocksSocketFactory.java:88) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:123) ... 35 more |
From: Rajinder S. <rs...@se...> - 2011-04-27 14:52:32
|
Hi All, I need to integrate my existing Jwebunit tests with Selenium Grid. Can you someone Let me know the link or document Where I can get proper Steps. Please Help. Regards Rajinder |
From: Tomas C. <tom...@gm...> - 2011-03-04 21:14:23
|
Thank you for a quick answer. I will look what I could do. Tomas On Fri, Mar 4, 2011 at 10:11 PM, Julien HENRY <he...@ya...> wrote: > Hi Tomas, > > Selenium plugin was an experimentation and I don't know if somebody > actually use > it. You may find many missing features, feel free to contribute patchs. For > you > information I started some month ago a selenium2/webdriver backend to avoid > the > need to start a remote server. But I have never completed the work. I will > try > to find the sources and commit in a branch if you are interested. > > Regards, > > Julien > > > > >De : Tomas Cerny <tom...@gm...> > >À : jwe...@li... > >Envoyé le : Ven 4 mars 2011, 21h 24min 05s > >Objet : [JWebUnit-users] Selenium plugin and firefox > > > >Hello, > > > >is there a way to use Firefox with selenium plugin and some different port > than > > >4444 for the server? > > > >I did not find any solution online, so I had to look into the code. > > > >I tried to inherit SeleniumTestingEngineImpl to override it, but you use > >private port = 4444 > >and > >private selenium .. "*chrome" > > > >perhaps public getter for both would help? The i can do my ninja hacks.. > > > >Anyways, I guess there is a better solution than that? > > > >Thanks, > >Tomas > > > > > ------------------------------------------------------------------------------ > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > |
From: Julien H. <he...@ya...> - 2011-03-04 21:12:00
|
Hi Tomas, Selenium plugin was an experimentation and I don't know if somebody actually use it. You may find many missing features, feel free to contribute patchs. For you information I started some month ago a selenium2/webdriver backend to avoid the need to start a remote server. But I have never completed the work. I will try to find the sources and commit in a branch if you are interested. Regards, Julien > >De : Tomas Cerny <tom...@gm...> >À : jwe...@li... >Envoyé le : Ven 4 mars 2011, 21h 24min 05s >Objet : [JWebUnit-users] Selenium plugin and firefox > >Hello, > >is there a way to use Firefox with selenium plugin and some different port than >4444 for the server? > >I did not find any solution online, so I had to look into the code. > >I tried to inherit SeleniumTestingEngineImpl to override it, but you use >private port = 4444 >and >private selenium .. "*chrome" > >perhaps public getter for both would help? The i can do my ninja hacks.. > >Anyways, I guess there is a better solution than that? > >Thanks, >Tomas > |
From: Tomas C. <tom...@gm...> - 2011-03-04 20:24:12
|
Hello, is there a way to use Firefox with selenium plugin and some different port than 4444 for the server? I did not find any solution online, so I had to look into the code. I tried to inherit SeleniumTestingEngineImpl to override it, but you use private port = 4444 and private selenium .. "*chrome" perhaps public getter for both would help? The i can do my ninja hacks.. Anyways, I guess there is a better solution than that? Thanks, Tomas |
From: Julien H. <he...@ya...> - 2011-02-04 08:09:33
|
Hi, With HtmlUnit you can call asXml(). It will output the current (ie runtime) representation of the DOM. Maybe you can try to get the root <html> tag and call asXml() on it. Regards, Julien ----- Message d'origine ---- > De : Jevon Wright <je...@je...> > À : Usage problems for JWebUnit <jwe...@li...> > Envoyé le : Ven 4 février 2011, 0h 41min 09s > Objet : Re: [JWebUnit-users] Full Page DOM > > Hi Eric, > > I assume you have tried getPageSource()? I don't know of any way to > get the computed (i.e. runtime) page source, either through JWebUnit > or HtmlUnit, but there probably is a way. > > If you use getElementByXPath("/") you could navigate through the DOM > using IElement, I suppose. Why do you require access to the DOM? > > Cheers > Jevon > > On Fri, Feb 4, 2011 at 8:24 AM, Eric Jelinek <eje...@ho...> wrote: > > Jevon, > > > > So I've implemented the NicelyResynchronizingAjaxController and it seems to >handle all of the client side js, my question is this, after the page is done >doing its thing, should I be able to dump out the new DOM? If so I haven't been >able to accomplish that is there a way? > > > > Thanks for your help > > Eric > > > > -----Original Message----- > > From: Jevon Wright [mailto:je...@je...] > > Sent: Monday, January 31, 2011 9:52 PM > > To: Usage problems for JWebUnit > > Subject: Re: [JWebUnit-users] Full Page DOM > > > > Hi Eric, > > > > Thanks for looking into the problem! It sounds like perhaps using the > > NicelyResynchronizingAjaxController might help in your case? > > > > Jevon > > > > On Tue, Feb 1, 2011 at 8:23 AM, Eric Jelinek <eje...@ho...> wrote: > >> Jevon, > >> > >> So I started looking at htmlunit since it was mentioned with gwt. I setup a >simple test to get a gwt element on the page. Once the code hit the break point >I was trying to decide on which element to go with and then I noticed in the >output window several lines going by. At the end of the log showed, >12:58:51.804 [JS executor for com.gargoylesoftware.htmlunit.WebClient@d1a34a] >DEBUG c.g.h.j.b.JavaScriptJobManagerImpl - Finished job JavaScript Execution >Job 6: window.setTimeout(1). There were actually several of these. Then I went >and tried to get an element by id and it was successful. Then I tried it with >jwebunit and got the same results. All that to say I needed to wait for the js >to finish loading and running. As a suggestion for enhancement, there may need >to be an event or something that says the JS is finished. Not sure how or even >if it's possible but something to consider/think about. > >> > >> Eric > >> > >> -----Original Message----- > >> From: Eric Jelinek [mailto:eje...@ho...] > >> Sent: Friday, January 28, 2011 10:49 AM > >> To: Usage problems for JWebUnit > >> Subject: Re: [JWebUnit-users] Full Page DOM > >> > >> Jevon, > >> > >> After some digging around I see that the ui was built using GWT. I've done >some quick reading on GWT and looks like it too is using HtmlUnit. Has anyone >had success testing GWT with jWebUnit? > >> > >> Eric > >> > >> -----Original Message----- > >> From: Eric Jelinek [mailto:eje...@ho...] > >> Sent: Monday, January 24, 2011 2:43 PM > >> To: Usage problems for JWebUnit > >> Subject: Re: [JWebUnit-users] Full Page DOM > >> > >> Jevon, > >> > >> I'm using both FF3.6 and CR8. Client-side js. I do have access to all of >the code, both client and server. I've been writing my tests in intellij 10 and >I hit my break point, dumpout getPageSource to a text file and browse through >it to find elements, xpaths, etc. > >> > >> I'll take a closer look at the js code to see which steps are firing. > >> > >> Thanks for your help > >> > >> Eric > >> > >> -----Original Message----- > >> From: Jevon Wright [mailto:je...@je...] > >> Sent: Saturday, January 22, 2011 5:51 AM > >> To: Usage problems for JWebUnit > >> Subject: Re: [JWebUnit-users] Full Page DOM > >> > >> Hi Eric, a few ideas: > >> > >> - What browser are you using to view source? > >> - Do you use client-side Javascript or server-side code to populate > >> "controlPanelMenu"? > >> - Can you access the source code of the application to try and > >> pinpoint the problem? > >> > >> As far as I know, in Firefox the "view source" only displays the page > >> source at load, and not after any client-side modifications, unless > >> you are viewing selection source. > >> > >> Hope this helps, > >> Jevon > >> > >> On Sat, Jan 22, 2011 at 11:38 AM, Eric Jelinek <eje...@ho...> >wrote: > >>> All, > >>> > >>> > >>> > >>> I'm running into an issue where I ask for the page source, getPageSource() > >>> and I get one value, yet when I view the source of the page I'm getting >not > >>> only what I'd expect with getPageSource but I'm getting much more. As an > >>> example: > >>> > >>> > >>> > >>> getPageSource() > >>> > >>> <html> > >>> > >>> <head>some stuff...</head> > >>> > >>> <body> > >>> > >>> <div id="head></div> > >>> > >>> <div id="controlPanelMenu"></div> > >>> > >>> <div id="footer"></div> > >>> > >>> </body> > >>> > >>> </html> > >>> > >>> > >>> > >>> View source > >>> > >>> <html> > >>> > >>> <head>some stuff...</head> > >>> > >>> <body> > >>> > >>> <div id="head></div> > >>> > >>> <div id="controlPanelMenu"> > >>> > >>> All kinds of html and stuff in here that I can actually see on the page >and > >>> interact with firebug. > >>> > >>> </div> > >>> > >>> <div id="footer"></div> > >>> > >>> </body> > >>> > >>> </html> > >>> > >>> > >>> > >>> Any ideas on how to get to the "All kinds of html and stuff..."? > >>> > >>> > >>> > >>> Thanks in advance > >>> > >>> Eric Jelinek > >>> > >>> > >>> > >>> >------------------------------------------------------------------------------ > >>> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > >>> Finally, a world-class log management solution at an even better >price-free! > >>> Download using promo code Free_Logger_4_Dev2Dev. Offer expires > >>> February 28th, so secure your free ArcSight Logger TODAY! > >>> http://p.sf.net/sfu/arcsight-sfd2d > >>> _______________________________________________ > >>> JWebUnit-users mailing list > >>> JWe...@li... > >>> https://lists.sourceforge.net/lists/listinfo/jwebunit-users > >>> > >>> > >> > >> >------------------------------------------------------------------------------ > >> ; Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > >> Finally, a world-class log management solution at an even better >price-free! > >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires > >> February 28th, so secure your free ArcSight Logger TODAY! > >> http://p.sf.net/sfu/arcsight-sfd2d > >> _______________________________________________ > >> JWebUnit-users mailing list > >> JWe...@li... > >> https://lists.sourceforge.net/lists/listinfo/jwebunit-users > >> > >> >------------------------------------------------------------------------------ > >> ; Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > >> Finally, a world-class log management solution at an even better >price-free! > >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires > >> February 28th, so secure your free ArcSight Logger TODAY! > >> http://p.sf.net/sfu/arcsight-sfd2d > >> _______________________________________________ > >> JWebUnit-users mailing list > >> JWe...@li... > >> https://lists.sourceforge.net/lists/listinfo/jwebunit-users > >> > >> >------------------------------------------------------------------------------ > >> ; Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > >> Finally, a world-class log management solution at an even better >price-free! > >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires > >> February 28th, so secure your free ArcSight Logger TODAY! > >> http://p.sf.net/sfu/arcsight-sfd2d > >> _______________________________________________ > >> JWebUnit-users mailing list > >> JWe...@li... > >> https://lists.sourceforge.net/lists/listinfo/jwebunit-users > >> > >> >------------------------------------------------------------------------------ > >> ; Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > >> Finally, a world-class log management solution at an even better >price-free! > >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires > >> February 28th, so secure your free ArcSight Logger TODAY! > >> http://p.sf.net/sfu/arcsight-sfd2d > >> _______________________________________________ > >> JWebUnit-users mailing list > >> JWe...@li... > >> https://lists.sourceforge.net/lists/listinfo/jwebunit-users > >> > > > > >------------------------------------------------------------------------------ > > ; Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > > Finally, a world-class log management solution at an even better >price-free! > > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > > February 28th, so secure your free ArcSight Logger TODAY! > > http://p.sf.net/sfu/arcsight-sfd2d > > _______________________________________________ > > JWebUnit-users mailing list > > JWe...@li... > > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > > > >------------------------------------------------------------------------------ > > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > > Finally, a world-class log management solution at an even better >price-free! > > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > > February 28th, so secure your free ArcSight Logger TODAY! > > http://p.sf.net/sfu/arcsight-sfd2d > > _______________________________________________ > > JWebUnit-users mailing list > > JWe...@li... > > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > > > ------------------------------------------------------------------------------ > The modern datacenter depends on network connectivity to access resources > and provide services. The best practices for maximizing a physical server's > connectivity to a physical network are well understood - see how these > rules translate into the virtual world? > http://p.sf.net/sfu/oracle-sfdevnlfb > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > |
From: Jevon W. <je...@je...> - 2011-02-03 23:41:17
|
Hi Eric, I assume you have tried getPageSource()? I don't know of any way to get the computed (i.e. runtime) page source, either through JWebUnit or HtmlUnit, but there probably is a way. If you use getElementByXPath("/") you could navigate through the DOM using IElement, I suppose. Why do you require access to the DOM? Cheers Jevon On Fri, Feb 4, 2011 at 8:24 AM, Eric Jelinek <eje...@ho...> wrote: > Jevon, > > So I've implemented the NicelyResynchronizingAjaxController and it seems to handle all of the client side js, my question is this, after the page is done doing its thing, should I be able to dump out the new DOM? If so I haven't been able to accomplish that is there a way? > > Thanks for your help > Eric > > -----Original Message----- > From: Jevon Wright [mailto:je...@je...] > Sent: Monday, January 31, 2011 9:52 PM > To: Usage problems for JWebUnit > Subject: Re: [JWebUnit-users] Full Page DOM > > Hi Eric, > > Thanks for looking into the problem! It sounds like perhaps using the > NicelyResynchronizingAjaxController might help in your case? > > Jevon > > On Tue, Feb 1, 2011 at 8:23 AM, Eric Jelinek <eje...@ho...> wrote: >> Jevon, >> >> So I started looking at htmlunit since it was mentioned with gwt. I setup a simple test to get a gwt element on the page. Once the code hit the break point I was trying to decide on which element to go with and then I noticed in the output window several lines going by. At the end of the log showed, 12:58:51.804 [JS executor for com.gargoylesoftware.htmlunit.WebClient@d1a34a] DEBUG c.g.h.j.b.JavaScriptJobManagerImpl - Finished job JavaScript Execution Job 6: window.setTimeout(1). There were actually several of these. Then I went and tried to get an element by id and it was successful. Then I tried it with jwebunit and got the same results. All that to say I needed to wait for the js to finish loading and running. As a suggestion for enhancement, there may need to be an event or something that says the JS is finished. Not sure how or even if it's possible but something to consider/think about. >> >> Eric >> >> -----Original Message----- >> From: Eric Jelinek [mailto:eje...@ho...] >> Sent: Friday, January 28, 2011 10:49 AM >> To: Usage problems for JWebUnit >> Subject: Re: [JWebUnit-users] Full Page DOM >> >> Jevon, >> >> After some digging around I see that the ui was built using GWT. I've done some quick reading on GWT and looks like it too is using HtmlUnit. Has anyone had success testing GWT with jWebUnit? >> >> Eric >> >> -----Original Message----- >> From: Eric Jelinek [mailto:eje...@ho...] >> Sent: Monday, January 24, 2011 2:43 PM >> To: Usage problems for JWebUnit >> Subject: Re: [JWebUnit-users] Full Page DOM >> >> Jevon, >> >> I'm using both FF3.6 and CR8. Client-side js. I do have access to all of the code, both client and server. I've been writing my tests in intellij 10 and I hit my break point, dumpout getPageSource to a text file and browse through it to find elements, xpaths, etc. >> >> I'll take a closer look at the js code to see which steps are firing. >> >> Thanks for your help >> >> Eric >> >> -----Original Message----- >> From: Jevon Wright [mailto:je...@je...] >> Sent: Saturday, January 22, 2011 5:51 AM >> To: Usage problems for JWebUnit >> Subject: Re: [JWebUnit-users] Full Page DOM >> >> Hi Eric, a few ideas: >> >> - What browser are you using to view source? >> - Do you use client-side Javascript or server-side code to populate >> "controlPanelMenu"? >> - Can you access the source code of the application to try and >> pinpoint the problem? >> >> As far as I know, in Firefox the "view source" only displays the page >> source at load, and not after any client-side modifications, unless >> you are viewing selection source. >> >> Hope this helps, >> Jevon >> >> On Sat, Jan 22, 2011 at 11:38 AM, Eric Jelinek <eje...@ho...> wrote: >>> All, >>> >>> >>> >>> I'm running into an issue where I ask for the page source, getPageSource() >>> and I get one value, yet when I view the source of the page I'm getting not >>> only what I'd expect with getPageSource but I'm getting much more. As an >>> example: >>> >>> >>> >>> getPageSource() >>> >>> <html> >>> >>> <head>some stuff...</head> >>> >>> <body> >>> >>> <div id="head></div> >>> >>> <div id="controlPanelMenu"></div> >>> >>> <div id="footer"></div> >>> >>> </body> >>> >>> </html> >>> >>> >>> >>> View source >>> >>> <html> >>> >>> <head>some stuff...</head> >>> >>> <body> >>> >>> <div id="head></div> >>> >>> <div id="controlPanelMenu"> >>> >>> All kinds of html and stuff in here that I can actually see on the page and >>> interact with firebug. >>> >>> </div> >>> >>> <div id="footer"></div> >>> >>> </body> >>> >>> </html> >>> >>> >>> >>> Any ideas on how to get to the "All kinds of html and stuff..."? >>> >>> >>> >>> Thanks in advance >>> >>> Eric Jelinek >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >>> Finally, a world-class log management solution at an even better price-free! >>> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >>> February 28th, so secure your free ArcSight Logger TODAY! >>> http://p.sf.net/sfu/arcsight-sfd2d >>> _______________________________________________ >>> JWebUnit-users mailing list >>> JWe...@li... >>> https://lists.sourceforge.net/lists/listinfo/jwebunit-users >>> >>> >> >> ------------------------------------------------------------------------------ >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >> Finally, a world-class log management solution at an even better price-free! >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >> February 28th, so secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsight-sfd2d >> _______________________________________________ >> JWebUnit-users mailing list >> JWe...@li... >> https://lists.sourceforge.net/lists/listinfo/jwebunit-users >> >> ------------------------------------------------------------------------------ >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >> Finally, a world-class log management solution at an even better price-free! >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >> February 28th, so secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsight-sfd2d >> _______________________________________________ >> JWebUnit-users mailing list >> JWe...@li... >> https://lists.sourceforge.net/lists/listinfo/jwebunit-users >> >> ------------------------------------------------------------------------------ >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >> Finally, a world-class log management solution at an even better price-free! >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >> February 28th, so secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsight-sfd2d >> _______________________________________________ >> JWebUnit-users mailing list >> JWe...@li... >> https://lists.sourceforge.net/lists/listinfo/jwebunit-users >> >> ------------------------------------------------------------------------------ >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >> Finally, a world-class log management solution at an even better price-free! >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >> February 28th, so secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsight-sfd2d >> _______________________________________________ >> JWebUnit-users mailing list >> JWe...@li... >> https://lists.sourceforge.net/lists/listinfo/jwebunit-users >> > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > |
From: Eric J. <eje...@ho...> - 2011-02-03 19:24:44
|
Jevon, So I've implemented the NicelyResynchronizingAjaxController and it seems to handle all of the client side js, my question is this, after the page is done doing its thing, should I be able to dump out the new DOM? If so I haven't been able to accomplish that is there a way? Thanks for your help Eric -----Original Message----- From: Jevon Wright [mailto:je...@je...] Sent: Monday, January 31, 2011 9:52 PM To: Usage problems for JWebUnit Subject: Re: [JWebUnit-users] Full Page DOM Hi Eric, Thanks for looking into the problem! It sounds like perhaps using the NicelyResynchronizingAjaxController might help in your case? Jevon On Tue, Feb 1, 2011 at 8:23 AM, Eric Jelinek <eje...@ho...> wrote: > Jevon, > > So I started looking at htmlunit since it was mentioned with gwt. I setup a simple test to get a gwt element on the page. Once the code hit the break point I was trying to decide on which element to go with and then I noticed in the output window several lines going by. At the end of the log showed, 12:58:51.804 [JS executor for com.gargoylesoftware.htmlunit.WebClient@d1a34a] DEBUG c.g.h.j.b.JavaScriptJobManagerImpl - Finished job JavaScript Execution Job 6: window.setTimeout(1). There were actually several of these. Then I went and tried to get an element by id and it was successful. Then I tried it with jwebunit and got the same results. All that to say I needed to wait for the js to finish loading and running. As a suggestion for enhancement, there may need to be an event or something that says the JS is finished. Not sure how or even if it's possible but something to consider/think about. > > Eric > > -----Original Message----- > From: Eric Jelinek [mailto:eje...@ho...] > Sent: Friday, January 28, 2011 10:49 AM > To: Usage problems for JWebUnit > Subject: Re: [JWebUnit-users] Full Page DOM > > Jevon, > > After some digging around I see that the ui was built using GWT. I've done some quick reading on GWT and looks like it too is using HtmlUnit. Has anyone had success testing GWT with jWebUnit? > > Eric > > -----Original Message----- > From: Eric Jelinek [mailto:eje...@ho...] > Sent: Monday, January 24, 2011 2:43 PM > To: Usage problems for JWebUnit > Subject: Re: [JWebUnit-users] Full Page DOM > > Jevon, > > I'm using both FF3.6 and CR8. Client-side js. I do have access to all of the code, both client and server. I've been writing my tests in intellij 10 and I hit my break point, dumpout getPageSource to a text file and browse through it to find elements, xpaths, etc. > > I'll take a closer look at the js code to see which steps are firing. > > Thanks for your help > > Eric > > -----Original Message----- > From: Jevon Wright [mailto:je...@je...] > Sent: Saturday, January 22, 2011 5:51 AM > To: Usage problems for JWebUnit > Subject: Re: [JWebUnit-users] Full Page DOM > > Hi Eric, a few ideas: > > - What browser are you using to view source? > - Do you use client-side Javascript or server-side code to populate > "controlPanelMenu"? > - Can you access the source code of the application to try and > pinpoint the problem? > > As far as I know, in Firefox the "view source" only displays the page > source at load, and not after any client-side modifications, unless > you are viewing selection source. > > Hope this helps, > Jevon > > On Sat, Jan 22, 2011 at 11:38 AM, Eric Jelinek <eje...@ho...> wrote: >> All, >> >> >> >> I'm running into an issue where I ask for the page source, getPageSource() >> and I get one value, yet when I view the source of the page I'm getting not >> only what I'd expect with getPageSource but I'm getting much more. As an >> example: >> >> >> >> getPageSource() >> >> <html> >> >> <head>some stuff...</head> >> >> <body> >> >> <div id="head></div> >> >> <div id="controlPanelMenu"></div> >> >> <div id="footer"></div> >> >> </body> >> >> </html> >> >> >> >> View source >> >> <html> >> >> <head>some stuff...</head> >> >> <body> >> >> <div id="head></div> >> >> <div id="controlPanelMenu"> >> >> All kinds of html and stuff in here that I can actually see on the page and >> interact with firebug. >> >> </div> >> >> <div id="footer"></div> >> >> </body> >> >> </html> >> >> >> >> Any ideas on how to get to the "All kinds of html and stuff..."? >> >> >> >> Thanks in advance >> >> Eric Jelinek >> >> >> >> ------------------------------------------------------------------------------ >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >> Finally, a world-class log management solution at an even better price-free! >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >> February 28th, so secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsight-sfd2d >> _______________________________________________ >> JWebUnit-users mailing list >> JWe...@li... >> https://lists.sourceforge.net/lists/listinfo/jwebunit-users >> >> > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ JWebUnit-users mailing list JWe...@li... https://lists.sourceforge.net/lists/listinfo/jwebunit-users |
From: Jevon W. <je...@je...> - 2011-02-01 03:52:12
|
Hi Eric, Thanks for looking into the problem! It sounds like perhaps using the NicelyResynchronizingAjaxController might help in your case? Jevon On Tue, Feb 1, 2011 at 8:23 AM, Eric Jelinek <eje...@ho...> wrote: > Jevon, > > So I started looking at htmlunit since it was mentioned with gwt. I setup a simple test to get a gwt element on the page. Once the code hit the break point I was trying to decide on which element to go with and then I noticed in the output window several lines going by. At the end of the log showed, 12:58:51.804 [JS executor for com.gargoylesoftware.htmlunit.WebClient@d1a34a] DEBUG c.g.h.j.b.JavaScriptJobManagerImpl - Finished job JavaScript Execution Job 6: window.setTimeout(1). There were actually several of these. Then I went and tried to get an element by id and it was successful. Then I tried it with jwebunit and got the same results. All that to say I needed to wait for the js to finish loading and running. As a suggestion for enhancement, there may need to be an event or something that says the JS is finished. Not sure how or even if it's possible but something to consider/think about. > > Eric > > -----Original Message----- > From: Eric Jelinek [mailto:eje...@ho...] > Sent: Friday, January 28, 2011 10:49 AM > To: Usage problems for JWebUnit > Subject: Re: [JWebUnit-users] Full Page DOM > > Jevon, > > After some digging around I see that the ui was built using GWT. I've done some quick reading on GWT and looks like it too is using HtmlUnit. Has anyone had success testing GWT with jWebUnit? > > Eric > > -----Original Message----- > From: Eric Jelinek [mailto:eje...@ho...] > Sent: Monday, January 24, 2011 2:43 PM > To: Usage problems for JWebUnit > Subject: Re: [JWebUnit-users] Full Page DOM > > Jevon, > > I'm using both FF3.6 and CR8. Client-side js. I do have access to all of the code, both client and server. I've been writing my tests in intellij 10 and I hit my break point, dumpout getPageSource to a text file and browse through it to find elements, xpaths, etc. > > I'll take a closer look at the js code to see which steps are firing. > > Thanks for your help > > Eric > > -----Original Message----- > From: Jevon Wright [mailto:je...@je...] > Sent: Saturday, January 22, 2011 5:51 AM > To: Usage problems for JWebUnit > Subject: Re: [JWebUnit-users] Full Page DOM > > Hi Eric, a few ideas: > > - What browser are you using to view source? > - Do you use client-side Javascript or server-side code to populate > "controlPanelMenu"? > - Can you access the source code of the application to try and > pinpoint the problem? > > As far as I know, in Firefox the "view source" only displays the page > source at load, and not after any client-side modifications, unless > you are viewing selection source. > > Hope this helps, > Jevon > > On Sat, Jan 22, 2011 at 11:38 AM, Eric Jelinek <eje...@ho...> wrote: >> All, >> >> >> >> I'm running into an issue where I ask for the page source, getPageSource() >> and I get one value, yet when I view the source of the page I'm getting not >> only what I'd expect with getPageSource but I'm getting much more. As an >> example: >> >> >> >> getPageSource() >> >> <html> >> >> <head>some stuff...</head> >> >> <body> >> >> <div id="head></div> >> >> <div id="controlPanelMenu"></div> >> >> <div id="footer"></div> >> >> </body> >> >> </html> >> >> >> >> View source >> >> <html> >> >> <head>some stuff...</head> >> >> <body> >> >> <div id="head></div> >> >> <div id="controlPanelMenu"> >> >> All kinds of html and stuff in here that I can actually see on the page and >> interact with firebug. >> >> </div> >> >> <div id="footer"></div> >> >> </body> >> >> </html> >> >> >> >> Any ideas on how to get to the "All kinds of html and stuff..."? >> >> >> >> Thanks in advance >> >> Eric Jelinek >> >> >> >> ------------------------------------------------------------------------------ >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >> Finally, a world-class log management solution at an even better price-free! >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >> February 28th, so secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsight-sfd2d >> _______________________________________________ >> JWebUnit-users mailing list >> JWe...@li... >> https://lists.sourceforge.net/lists/listinfo/jwebunit-users >> >> > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > |
From: Eric J. <eje...@ho...> - 2011-01-31 19:24:04
|
Jevon, So I started looking at htmlunit since it was mentioned with gwt. I setup a simple test to get a gwt element on the page. Once the code hit the break point I was trying to decide on which element to go with and then I noticed in the output window several lines going by. At the end of the log showed, 12:58:51.804 [JS executor for com.gargoylesoftware.htmlunit.WebClient@d1a34a] DEBUG c.g.h.j.b.JavaScriptJobManagerImpl - Finished job JavaScript Execution Job 6: window.setTimeout(1). There were actually several of these. Then I went and tried to get an element by id and it was successful. Then I tried it with jwebunit and got the same results. All that to say I needed to wait for the js to finish loading and running. As a suggestion for enhancement, there may need to be an event or something that says the JS is finished. Not sure how or even if it's possible but something to consider/think about. Eric -----Original Message----- From: Eric Jelinek [mailto:eje...@ho...] Sent: Friday, January 28, 2011 10:49 AM To: Usage problems for JWebUnit Subject: Re: [JWebUnit-users] Full Page DOM Jevon, After some digging around I see that the ui was built using GWT. I've done some quick reading on GWT and looks like it too is using HtmlUnit. Has anyone had success testing GWT with jWebUnit? Eric -----Original Message----- From: Eric Jelinek [mailto:eje...@ho...] Sent: Monday, January 24, 2011 2:43 PM To: Usage problems for JWebUnit Subject: Re: [JWebUnit-users] Full Page DOM Jevon, I'm using both FF3.6 and CR8. Client-side js. I do have access to all of the code, both client and server. I've been writing my tests in intellij 10 and I hit my break point, dumpout getPageSource to a text file and browse through it to find elements, xpaths, etc. I'll take a closer look at the js code to see which steps are firing. Thanks for your help Eric -----Original Message----- From: Jevon Wright [mailto:je...@je...] Sent: Saturday, January 22, 2011 5:51 AM To: Usage problems for JWebUnit Subject: Re: [JWebUnit-users] Full Page DOM Hi Eric, a few ideas: - What browser are you using to view source? - Do you use client-side Javascript or server-side code to populate "controlPanelMenu"? - Can you access the source code of the application to try and pinpoint the problem? As far as I know, in Firefox the "view source" only displays the page source at load, and not after any client-side modifications, unless you are viewing selection source. Hope this helps, Jevon On Sat, Jan 22, 2011 at 11:38 AM, Eric Jelinek <eje...@ho...> wrote: > All, > > > > I'm running into an issue where I ask for the page source, getPageSource() > and I get one value, yet when I view the source of the page I'm getting not > only what I'd expect with getPageSource but I'm getting much more. As an > example: > > > > getPageSource() > > <html> > > <head>some stuff...</head> > > <body> > > <div id="head></div> > > <div id="controlPanelMenu"></div> > > <div id="footer"></div> > > </body> > > </html> > > > > View source > > <html> > > <head>some stuff...</head> > > <body> > > <div id="head></div> > > <div id="controlPanelMenu"> > > All kinds of html and stuff in here that I can actually see on the page and > interact with firebug. > > </div> > > <div id="footer"></div> > > </body> > > </html> > > > > Any ideas on how to get to the "All kinds of html and stuff..."? > > > > Thanks in advance > > Eric Jelinek > > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ JWebUnit-users mailing list JWe...@li... https://lists.sourceforge.net/lists/listinfo/jwebunit-users ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ JWebUnit-users mailing list JWe...@li... https://lists.sourceforge.net/lists/listinfo/jwebunit-users ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ JWebUnit-users mailing list JWe...@li... https://lists.sourceforge.net/lists/listinfo/jwebunit-users |
From: Eric J. <eje...@ho...> - 2011-01-28 16:49:13
|
Jevon, After some digging around I see that the ui was built using GWT. I've done some quick reading on GWT and looks like it too is using HtmlUnit. Has anyone had success testing GWT with jWebUnit? Eric -----Original Message----- From: Eric Jelinek [mailto:eje...@ho...] Sent: Monday, January 24, 2011 2:43 PM To: Usage problems for JWebUnit Subject: Re: [JWebUnit-users] Full Page DOM Jevon, I'm using both FF3.6 and CR8. Client-side js. I do have access to all of the code, both client and server. I've been writing my tests in intellij 10 and I hit my break point, dumpout getPageSource to a text file and browse through it to find elements, xpaths, etc. I'll take a closer look at the js code to see which steps are firing. Thanks for your help Eric -----Original Message----- From: Jevon Wright [mailto:je...@je...] Sent: Saturday, January 22, 2011 5:51 AM To: Usage problems for JWebUnit Subject: Re: [JWebUnit-users] Full Page DOM Hi Eric, a few ideas: - What browser are you using to view source? - Do you use client-side Javascript or server-side code to populate "controlPanelMenu"? - Can you access the source code of the application to try and pinpoint the problem? As far as I know, in Firefox the "view source" only displays the page source at load, and not after any client-side modifications, unless you are viewing selection source. Hope this helps, Jevon On Sat, Jan 22, 2011 at 11:38 AM, Eric Jelinek <eje...@ho...> wrote: > All, > > > > I'm running into an issue where I ask for the page source, getPageSource() > and I get one value, yet when I view the source of the page I'm getting not > only what I'd expect with getPageSource but I'm getting much more. As an > example: > > > > getPageSource() > > <html> > > <head>some stuff...</head> > > <body> > > <div id="head></div> > > <div id="controlPanelMenu"></div> > > <div id="footer"></div> > > </body> > > </html> > > > > View source > > <html> > > <head>some stuff...</head> > > <body> > > <div id="head></div> > > <div id="controlPanelMenu"> > > All kinds of html and stuff in here that I can actually see on the page and > interact with firebug. > > </div> > > <div id="footer"></div> > > </body> > > </html> > > > > Any ideas on how to get to the "All kinds of html and stuff..."? > > > > Thanks in advance > > Eric Jelinek > > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ JWebUnit-users mailing list JWe...@li... https://lists.sourceforge.net/lists/listinfo/jwebunit-users ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ JWebUnit-users mailing list JWe...@li... https://lists.sourceforge.net/lists/listinfo/jwebunit-users |
From: Eric J. <eje...@ho...> - 2011-01-24 20:44:02
|
Jevon, I'm using both FF3.6 and CR8. Client-side js. I do have access to all of the code, both client and server. I've been writing my tests in intellij 10 and I hit my break point, dumpout getPageSource to a text file and browse through it to find elements, xpaths, etc. I'll take a closer look at the js code to see which steps are firing. Thanks for your help Eric -----Original Message----- From: Jevon Wright [mailto:je...@je...] Sent: Saturday, January 22, 2011 5:51 AM To: Usage problems for JWebUnit Subject: Re: [JWebUnit-users] Full Page DOM Hi Eric, a few ideas: - What browser are you using to view source? - Do you use client-side Javascript or server-side code to populate "controlPanelMenu"? - Can you access the source code of the application to try and pinpoint the problem? As far as I know, in Firefox the "view source" only displays the page source at load, and not after any client-side modifications, unless you are viewing selection source. Hope this helps, Jevon On Sat, Jan 22, 2011 at 11:38 AM, Eric Jelinek <eje...@ho...> wrote: > All, > > > > I'm running into an issue where I ask for the page source, getPageSource() > and I get one value, yet when I view the source of the page I'm getting not > only what I'd expect with getPageSource but I'm getting much more. As an > example: > > > > getPageSource() > > <html> > > <head>some stuff...</head> > > <body> > > <div id="head></div> > > <div id="controlPanelMenu"></div> > > <div id="footer"></div> > > </body> > > </html> > > > > View source > > <html> > > <head>some stuff...</head> > > <body> > > <div id="head></div> > > <div id="controlPanelMenu"> > > All kinds of html and stuff in here that I can actually see on the page and > interact with firebug. > > </div> > > <div id="footer"></div> > > </body> > > </html> > > > > Any ideas on how to get to the "All kinds of html and stuff..."? > > > > Thanks in advance > > Eric Jelinek > > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ JWebUnit-users mailing list JWe...@li... https://lists.sourceforge.net/lists/listinfo/jwebunit-users |
From: Jevon W. <je...@je...> - 2011-01-22 11:51:37
|
Hi Eric, a few ideas: - What browser are you using to view source? - Do you use client-side Javascript or server-side code to populate "controlPanelMenu"? - Can you access the source code of the application to try and pinpoint the problem? As far as I know, in Firefox the "view source" only displays the page source at load, and not after any client-side modifications, unless you are viewing selection source. Hope this helps, Jevon On Sat, Jan 22, 2011 at 11:38 AM, Eric Jelinek <eje...@ho...> wrote: > All, > > > > I’m running into an issue where I ask for the page source, getPageSource() > and I get one value, yet when I view the source of the page I’m getting not > only what I’d expect with getPageSource but I’m getting much more. As an > example: > > > > getPageSource() > > <html> > > <head>some stuff…</head> > > <body> > > <div id=”head></div> > > <div id=”controlPanelMenu”></div> > > <div id=”footer”></div> > > </body> > > </html> > > > > View source > > <html> > > <head>some stuff…</head> > > <body> > > <div id=”head></div> > > <div id=”controlPanelMenu”> > > All kinds of html and stuff in here that I can actually see on the page and > interact with firebug. > > </div> > > <div id=”footer”></div> > > </body> > > </html> > > > > Any ideas on how to get to the “All kinds of html and stuff…”? > > > > Thanks in advance > > Eric Jelinek > > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > |
From: Eric J. <eje...@ho...> - 2011-01-21 23:13:24
|
All, I'm running into an issue where I ask for the page source, getPageSource() and I get one value, yet when I view the source of the page I'm getting not only what I'd expect with getPageSource but I'm getting much more. As an example: getPageSource() <html> <head>some stuff...</head> <body> <div id="head></div> <div id="controlPanelMenu"></div> <div id="footer"></div> </body> </html> View source <html> <head>some stuff...</head> <body> <div id="head></div> <div id="controlPanelMenu"> All kinds of html and stuff in here that I can actually see on the page and interact with firebug. </div> <div id="footer"></div> </body> </html> Any ideas on how to get to the "All kinds of html and stuff..."? Thanks in advance Eric Jelinek |
From: Julien H. <he...@ya...> - 2011-01-06 08:28:33
|
Hi Gible, Thanks for the feedback, there is probably something to improve here in order to have a more consistent behavior. Please note that checkCheckbox will internally call assertCheckboxPresent so you can simplify your code by removing your call. [1] When there a re several forms in your page it's always a good thing to say on which one you are working, especially when identifying elements by name (as it is allowed to have duplicate name across forms in HTML). Regards, Julien [1] http://jwebunit.sourceforge.net/xref/net/sourceforge/jwebunit/junit/WebTester.html#2355 > >De : Gible Fog <gi...@gi...> >À : jwe...@li... >Envoyé le : Mer 5 janvier 2011, 23h 10min 59s >Objet : [JWebUnit-users] assertCheckboxPresent works but checkCheckbox fails > >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 |