Buildfile: build.xml runweb: setdefaultmode: [echo] So you are using Platform Edition print-props: [echo] admin.user=admin [echo] admin.port=4848 [echo] admin.domain=domain1 [echo] appserver.instance.name=server setOSConditions: setToolWin: setToolUnix: setToolProperty: setS1ASclassPath: [echo] Workaround for early v3: create directories... setS1AS80classPath: setS1WSclassPath: setJWSDPclassPath: setTimeStamp: init-password-file: init-common: init-password-file: create-password-file: create-report-dir: runweb-client2: [webtest] Full Path of Result File-> /export1/sonia/appserver-sqe/reports/pe-pe/sparc_jed-asqe-2_SunOS/gtest-results.xml [webtest] Test ID= servlet3.0-annotation-RolesAllwoed [webtest] This is the new GTest version. in request dispatch... [webtest] Non SSL request... [webtest] host=localhost;port=8080 [webtest] Request->GET /basicauth/TestServlet HTTP/1.0 [webtest] Using BASIC Authentication [webtest] authHeader=Authorization: Basic ajJlZTpqMmVl [webtest] Request Headers : Host: localhost:8080 [webtest] In Session :basicauthweb [webtest] RESPONSE: HTTP/1.1 500 Internal Server Error [webtest] HEADER: Content-Type: text/htmlX [webtest] HEADER: Content-Length: 1210X [webtest] HEADER: Date: Tue, 06 Oct 2009 23:15:33 GMTX [webtest] HEADER: Connection: closeX [webtest] BODY: GlassFish/v3 - Error report

HTTP Status 500 -


type Exception report

message

descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.NullPointerException

note The full stack traces of the exception and its root causes are available in the GlassFish/v3 logs.


GlassFish/v3

[webtest] RedirectResponse=HTTP/1.0 [webtest] authMethod BASIC [webtest] EXPECTED RESULT [webtest] ===================================================== [webtest]

Test1. Postive check for the correct authentication type [webtest]
request.getAuthType() test Passed. [webtest]
Info:request.getAuthType() is= BASIC [webtest]

Test2. Positive check for the correct principal name [webtest]
request.getUserPrincipal() test Passed. [webtest]
Info:request.getUserPrincipal() is= j2ee [webtest]

Test3. Positive check whether given user authenticated [webtest]
request.getRemoteUser() test Passed. [webtest]
Info:request.getRemoteUser() is= j2ee [webtest]

Test4.Positive check whether the user is in proper role [webtest]
HttpServletRequest.isUserInRole() test Passed. [webtest]
Info:request.isUserInRole("Employee") is= true [webtest]

Test5.Negative check whether the current user is any other other role [webtest]
HttpServletRequest.isUserInRole() test Passed. [webtest]
Info:request.isUserInRole("Manager") is= false [webtest] ===================================================== [webtest] FAIL*** : Rtok1 =
Test1. [webtest] ERROR (false,true)in : GET /basicauth/TestServlet HTTP/1.0 [webtest] Expected Output **************************************** [webtest]

Test1. Postive check for the correct authentication type [webtest]
request.getAuthType() test Passed. [webtest]
Info:request.getAuthType() is= BASIC [webtest]

Test2. Positive check for the correct principal name [webtest]
request.getUserPrincipal() test Passed. [webtest]
Info:request.getUserPrincipal() is= j2ee [webtest]

Test3. Positive check whether given user authenticated [webtest]
request.getRemoteUser() test Passed. [webtest]
Info:request.getRemoteUser() is= j2ee [webtest]

Test4.Positive check whether the user is in proper role [webtest]
HttpServletRequest.isUserInRole() test Passed. [webtest]
Info:request.isUserInRole("Employee") is= true [webtest]

Test5.Negative check whether the current user is any other other role [webtest]
HttpServletRequest.isUserInRole() test Passed. [webtest]
Info:request.isUserInRole("Manager") is= false [webtest] ******************************************************** [webtest] Actual Output ########################################## [webtest] GlassFish/v3 - Error report

HTTP Status 500 -


type Exception report

message

descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.NullPointerException

note The full stack traces of the exception and its root causes are available in the GlassFish/v3 logs.


GlassFish/v3

[webtest] ##################################################### [webtest] FAIL No description (GET /basicauth/TestServlet HTTP/1.0) [webtest] lastTask BUILD SUCCESSFUL Total time: 5 seconds