dev@glassfish.java.net

Re: adminconsole_tests failing on prelude branch

From: Sahoo <sahoo_at_sun.com>
Date: Thu, 16 Oct 2008 02:41:47 +0530

Are you referring to "asadmin version?" If yes, then yes, after my
change, server returns 3.0-Prelude-SNAPSHOT. Does the test make any
assumption about this? As I said earlier, I did not do anything special.
All I did was I started the server and access admin console. After that
the tests started passing. After that point, the failures did not occur
even if I uninstalled and installed the server. I don't understand why
they were failing first time. Any way, now they are gone, so I am not
that worried.

Thanks,
Sahoo

Snjezana Sevo-Zenzerovic wrote:
> Just a crazy thought - does your version change by any chance affect
> the value of the string admin console is returning after QL request so
> that validation fails?
>
> Sahoo wrote:
>
>> Hi,
>>
>> In my local workspace, adminconsole_tests from quicklook test suite
>> are failing. I have a bunch of local changes, which are to do with
>> version changes from 10.0 to 3.0. I can't see how they are related to
>> the failures shown below:
>>
>> [testng] FAILED CONFIGURATION: @BeforeTest
>> loginBeforeTest("http://localhost:4848/", 8686)
>> [testng] java.lang.AssertionError:
>> BaseAdminConsoleTest.getUrlAndTestForString() failed. HTTP Status
>> Code: 404
>> [testng] at
>> test.admin.BaseAdminConsoleTest.getUrl(BaseAdminConsoleTest.java:193)
>> [testng] at
>> test.admin.BaseAdminConsoleTest.getUrlAndTestForStrings(BaseAdminConsoleTest.java:169)
>>
>> [testng] at
>> test.admin.BaseAdminConsoleTest.loginBeforeTest(BaseAdminConsoleTest.java:112)
>>
>> [testng] ... Removed 20 stack frames
>> [testng] FAILED: testFrameSet
>> [testng] java.lang.AssertionError: The main frameset does not
>> appear to have been rendered. expected:<true> but was:<false>
>> [testng] at
>> test.admin.AdminConsoleTests.testFrameSet(AdminConsoleTests.java:42)
>> [testng] ... Removed 25 stack frames
>> [testng] FAILED: testDeployedWebAppPage
>> [testng] java.lang.AssertionError:
>> BaseAdminConsoleTest.getUrlAndTestForString() failed. HTTP Status
>> Code: 404
>> [testng] at
>> test.admin.BaseAdminConsoleTest.getUrl(BaseAdminConsoleTest.java:193)
>> [testng] at
>> test.admin.BaseAdminConsoleTest.getUrlAndTestForStrings(BaseAdminConsoleTest.java:169)
>>
>> [testng] at
>> test.admin.AdminConsoleTests.testDeployedWebAppPage(AdminConsoleTests.java:86)
>>
>> [testng] ... Removed 23 stack frames
>> [testng] FAILED: testCommonTasks
>> [testng] java.lang.AssertionError:
>> BaseAdminConsoleTest.getUrlAndTestForString() failed. HTTP Status
>> Code: 404
>> [testng] at
>> test.admin.BaseAdminConsoleTest.getUrl(BaseAdminConsoleTest.java:193)
>> [testng] at
>> test.admin.BaseAdminConsoleTest.getUrlAndTestForStrings(BaseAdminConsoleTest.java:169)
>>
>> [testng] at
>> test.admin.AdminConsoleTests.testCommonTasks(AdminConsoleTests.java:75)
>> [testng] ... Removed 23 stack frames
>> [testng] FAILED: testNavTree
>> [testng] java.lang.AssertionError:
>> BaseAdminConsoleTest.getUrlAndTestForString() failed. HTTP Status
>> Code: 404
>> [testng] at
>> test.admin.BaseAdminConsoleTest.getUrl(BaseAdminConsoleTest.java:193)
>> [testng] at
>> test.admin.BaseAdminConsoleTest.getUrlAndTestForStrings(BaseAdminConsoleTest.java:169)
>>
>> [testng] at
>> test.admin.AdminConsoleTests.testNavTree(AdminConsoleTests.java:53)
>> [testng] ... Removed 23 stack frames
>> [testng] FAILED: testHeader
>> [testng] java.lang.AssertionError:
>> BaseAdminConsoleTest.getUrlAndTestForString() failed. HTTP Status
>> Code: 404
>> [testng] at
>> test.admin.BaseAdminConsoleTest.getUrl(BaseAdminConsoleTest.java:193)
>> [testng] at
>> test.admin.BaseAdminConsoleTest.getUrlAndTestForStrings(BaseAdminConsoleTest.java:169)
>>
>> [testng] at
>> test.admin.AdminConsoleTests.testHeader(AdminConsoleTests.java:64)
>> [testng] ... Removed 23 stack frames
>> [testng] FAILED: testHelpPage
>> [testng] java.lang.AssertionError:
>> BaseAdminConsoleTest.getUrlAndTestForString() failed. HTTP Status
>> Code: 404
>> [testng] at
>> test.admin.BaseAdminConsoleTest.getUrl(BaseAdminConsoleTest.java:193)
>> [testng] at
>> test.admin.BaseAdminConsoleTest.getUrlAndTestForStrings(BaseAdminConsoleTest.java:169)
>>
>> [testng] at
>> test.admin.AdminConsoleTests.testHelpPage(AdminConsoleTests.java:93)
>> [testng] ... Removed 23 stack frames
>>
>> [testng] ===============================================
>> [testng] adminconsole_tests
>> [testng] Tests run: 6, Failures: 6, Skips: 0
>> [testng] Configuration Failures: 1, Skips: 0
>> [testng] ===============================================
>>
>>
>> All other tests in QL are passing. There is no information in
>> server.log. I have checked admingui separately and it seems to be
>> functioning correctly. I am using a separate maven local repo for
>> this workspace and I have set it in command line like this:
>> mvn -Dmaven.repo.local=/space/ss141213/WS/gf/v3-prelude/maven2rep.
>>
>> Any clue what's going wrong here.
>>
>> Thanks,
>> Sahoo
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>