admin@glassfish.java.net

Fwd: svn commit: r22392 - trunk/v3/tests/quicklook/adminconsole/src/test/admin/AdminConsoleTests.java

From: Jason Lee <jasondlee_at_sun.com>
Date: Fri, 05 Sep 2008 00:36:44 -0400

FYI

Begin forwarded message:

> From: jdlee_at_dev.java.net
> Date: September 5, 2008 12:35:54 AM EDT
> To: commits_at_glassfish-svn.dev.java.net
> Subject: svn commit: r22392 - trunk/v3/tests/quicklook/adminconsole/
> src/test/admin/AdminConsoleTests.java
> Reply-To: commits_at_glassfish-svn.dev.java.net
>
> Author: jdlee
> Date: 2008-09-05 04:35:52+0000
> New Revision: 22392
>
> Modified:
> trunk/v3/tests/quicklook/adminconsole/src/test/admin/
> AdminConsoleTests.java
>
> Log:
> The admin console QL test now appears to work as expected/desired.
> Once issue 5880 is resolved, we can enable the tests. For now, I
> have it enabled in my local tree and stage the admingui.war manually
>
> Modified: trunk/v3/tests/quicklook/adminconsole/src/test/admin/
> AdminConsoleTests.java
> Url: https://glassfish-svn.dev.java.net/source/browse/glassfish-svn/trunk/v3/tests/quicklook/adminconsole/src/test/admin/AdminConsoleTests.java?view=diff&rev=22392&p1=trunk/v3/tests/quicklook/adminconsole/src/test/admin/AdminConsoleTests.java&p2=trunk/v3/tests/quicklook/adminconsole/src/test/admin/AdminConsoleTests.java&r1=22391&r2=22392
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- trunk/v3/tests/quicklook/adminconsole/src/test/admin/
> AdminConsoleTests.java (original)
> +++ trunk/v3/tests/quicklook/adminconsole/src/test/admin/
> AdminConsoleTests.java 2008-09-05 04:35:52+0000
> @@ -50,15 +50,16 @@
>
> boolean framesFound = false;
> int iteration = 0;
> + String result = "";
>
> while (!framesFound && (iteration <= 10)) {
> iteration++;
> - System.err.println("***** adminUrl = " + adminUrl);
> - String result = requestUrl(adminUrl);
> - framesFound = result.indexOf("frameset id=
> \"outerFrameset\"") > -1;
> + result = requestUrl(adminUrl);
> + framesFound = result.indexOf("name=\"loginform\"") > -1;
> if (!framesFound) {
> try {
> - Thread.sleep(15);
> + System.err.println("***** Login page not
> found. Sleeping to allow app to deploy....");
> + Thread.sleep(10000);
> } catch (InterruptedException ie) {
> //
> }
> @@ -73,6 +74,5 @@
>
> @Test(groups={"pulse"}) // test method
> public void testLogin() {
> -
> }
> }
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commits-unsubscribe_at_glassfish-svn.dev.java.net
> For additional commands, e-mail: commits-help_at_glassfish-svn.dev.java.net
>

Jason Lee - x31197
Senior Java Developer, Sun Microsystems
GlassFish Admin Console Team
Email: jasondlee_at_sun.com