Buildfile: build.xml run: 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: [webtest] Full Path of Result File-> /export/sonia/appserver-sqe/reports/pe-pe/sparc_jed-asqe-1_SunOS/gtest-results.xml [webtest] Test ID= singlesignonapp1first [webtest] This is the new GTest version. in request dispatch... [webtest] Non SSL request... [webtest] host=localhost;port=8080 [webtest] Request->GET /secssignonapp1first/TestJSP HTTP/1.0 [webtest] Using BASIC Authentication [webtest] authHeader=Authorization: Basic ajJlZTpqMmVl [webtest] Request Headers : Host: localhost:8080 [webtest] In Session :singlesignonapp1 [webtest] RESPONSE: HTTP/1.1 200 OK [webtest] HEADER: X-Powered-By: Servlet/3.0X [webtest] HEADER: Server: GlassFish/v3X [webtest] HEADER: Content-Length: 0X [webtest] HEADER: Date: Wed, 14 Oct 2009 23:00:41 GMTX [webtest] HEADER: Connection: closeX [webtest] BODY: null [webtest] RedirectResponse=HTTP/1.0 [webtest] authMethod BASIC [webtest] EXPECTED RESULT [webtest] ===================================================== [webtest] [webtest] [webtest] [webtest] [webtest] [webtest] [webtest] [webtest] [webtest] [webtest] [webtest] Single Sign-on Test [webtest] [webtest]

Single Sign-on Test App1 - first app

[webtest]
Basic Authentication tests from JSP: Test1,Test2,Test3 [webtest]
Authorization test from JSP: Test4,Test5-> HttpServletRequest.isUserInRole() authorization from JSP. [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] [webtest] [webtest] [webtest] [webtest] [webtest] ===================================================== [webtest] ERROR (false,true)in : GET /secssignonapp1first/TestJSP HTTP/1.0 [webtest] Expected Output **************************************** [webtest] [webtest] [webtest] [webtest] [webtest] [webtest] [webtest] [webtest] [webtest] [webtest] [webtest] Single Sign-on Test [webtest] [webtest]

Single Sign-on Test App1 - first app

[webtest]
Basic Authentication tests from JSP: Test1,Test2,Test3 [webtest]
Authorization test from JSP: Test4,Test5-> HttpServletRequest.isUserInRole() authorization from JSP. [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] [webtest] [webtest] [webtest] [webtest] [webtest] ******************************************************** [webtest] Actual Output ########################################## [webtest] null [webtest] ##################################################### [webtest] FAIL No description (GET /secssignonapp1first/TestJSP HTTP/1.0) [webtest] lastTask [webtest] Full Path of Result File-> /export/sonia/appserver-sqe/reports/pe-pe/sparc_jed-asqe-1_SunOS/gtest-results.xml [webtest] Test ID= singlesignonapp1-second [webtest] This is the new GTest version. in request dispatch... [webtest] Non SSL request... [webtest] host=localhost;port=8080 [webtest] Request->GET /secssignonapp1second/TestJSP HTTP/1.0 [webtest] Request Headers : Host: localhost:8080 [webtest] In Session :singlesignonapp1 [webtest] RESPONSE: HTTP/1.1 200 OK [webtest] HEADER: X-Powered-By: Servlet/3.0X [webtest] HEADER: Server: GlassFish/v3X [webtest] HEADER: Content-Length: 0X [webtest] HEADER: Date: Wed, 14 Oct 2009 23:00:41 GMTX [webtest] HEADER: Connection: closeX [webtest] BODY: null [webtest] RedirectResponse=HTTP/1.0 [webtest] authMethod OTHER [webtest] EXPECTED RESULT [webtest] ===================================================== [webtest] [webtest] Single Sign-on Test [webtest] [webtest]

Single Sign-on Test App1 - second app

[webtest]
Basic Authentication tests from JSP: Test1,Test2,Test3 [webtest]
Authorization test from JSP: Test4,Test5-> HttpServletRequest.isUserInRole() authorization from JSP. [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_2") 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_2") is= false [webtest] [webtest] [webtest] ===================================================== [webtest] ERROR (false,true)in : GET /secssignonapp1second/TestJSP HTTP/1.0 [webtest] Expected Output **************************************** [webtest] [webtest] Single Sign-on Test [webtest] [webtest]

Single Sign-on Test App1 - second app

[webtest]
Basic Authentication tests from JSP: Test1,Test2,Test3 [webtest]
Authorization test from JSP: Test4,Test5-> HttpServletRequest.isUserInRole() authorization from JSP. [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_2") 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_2") is= false [webtest] [webtest] [webtest] ******************************************************** [webtest] Actual Output ########################################## [webtest] null [webtest] ##################################################### [webtest] FAIL No description (GET /secssignonapp1second/TestJSP HTTP/1.0) [webtest] lastTask [webtest] Full Path of Result File-> /export/sonia/appserver-sqe/reports/pe-pe/sparc_jed-asqe-1_SunOS/gtest-results.xml [webtest] Test ID= singlesignonapp1-prompt [webtest] This is the new GTest version. in request dispatch... [webtest] Non SSL request... [webtest] host=localhost;port=8080 [webtest] Request->GET /secssignonapp1prompt/TestJSP HTTP/1.0 [webtest] Request Headers : Host: localhost:8080 [webtest] In Session :singlesignonapp1 [webtest] RESPONSE: HTTP/1.1 200 OK [webtest] HEADER: X-Powered-By: Servlet/3.0X [webtest] HEADER: Server: GlassFish/v3X [webtest] HEADER: Content-Length: 0X [webtest] HEADER: Date: Wed, 14 Oct 2009 23:00:41 GMTX [webtest] HEADER: Connection: closeX [webtest] BODY: null [webtest] RedirectResponse=HTTP/1.0 [webtest] authMethod OTHER [webtest] EXPECTED RESULT [webtest] ===================================================== [webtest] GlassFish/v3 - Error report

HTTP Status 403 - Access to the requested resource has been denied


type Status report

messageAccess to the requested resource has been denied

descriptionAccess to the specified resource (Access to the requested resource has been denied) has been forbidden.


GlassFish/v3

[webtest] [webtest] ===================================================== [webtest] ERROR (false,true)in : GET /secssignonapp1prompt/TestJSP HTTP/1.0 [webtest] Expected Output **************************************** [webtest] GlassFish/v3 - Error report

HTTP Status 403 - Access to the requested resource has been denied


type Status report

messageAccess to the requested resource has been denied

descriptionAccess to the specified resource (Access to the requested resource has been denied) has been forbidden.


GlassFish/v3

[webtest] [webtest] ******************************************************** [webtest] Actual Output ########################################## [webtest] null [webtest] ##################################################### [webtest] FAIL No description (GET /secssignonapp1prompt/TestJSP HTTP/1.0) [webtest] lastTask BUILD SUCCESSFUL Total time: 5 seconds