Jump to: navigation, search

Difference between revisions of "J2EE Smoke Test"

m
 
(2 intermediate revisions by 2 users not shown)
Line 25: Line 25:
 
:Check the checkbox next to the EJB project name
 
:Check the checkbox next to the EJB project name
 
:Press OK
 
:Press OK
 +
 +
;Add a bean to the EJB project
 +
:Create a new XDoclet Enterprise JavaBean as a Session Bean in package test
  
 
;Verify the EAR module in the navigator
 
;Verify the EAR module in the navigator
:Expand the EAR - verify that there is a node for the deployment descriptor, and containers for the JRE/JDK library and the Server library
+
:Expand the EAR - verify that there is a node for the deployment descriptor.
 
:Expand the deployment descriptor node- verify that there are "Modules" and "Utility JARs" nodes
 
:Expand the deployment descriptor node- verify that there are "Modules" and "Utility JARs" nodes
 
:Expand the Modules node - verify that the EJB reference is shown
 
:Expand the Modules node - verify that the EJB reference is shown
Line 36: Line 39:
  
 
;See also
 
;See also
:[[WTP Smoke Test Scenarios R15 | Click here to view smoke test scenarios for WTP 1.5.]]
+
{{J2EE_Smoke_Test_See_Also_Links}}
:[[WTP Smoke Test Scenarios R20 | Click here to view smoke test scenarios for WTP 2.0.]]
+
 
:[[WTP Smoke Test Results | Click here to view WTP smoke test results.]]
+
[[Category:Eclipse Web Tools Platform Project]][[Category:WTP Testing Related| ]]
:[[Web_Tools_Project | Back to Web Tools Wiki Home]]
+

Latest revision as of 03:43, 10 September 2007

Setup

Install a J2EE-compatible server, such as JOnAS or WebSphere Add the server in Window->Preferences...->Server->Installed Runtimes Install the XDoclet support (1.2.1, 1.2.2, or 1.2.3) Add the XDoclet support in Window->Preferences...->XDoclet Expand the XDoclet node and configure the ejbdoclet and webdoclet support for your installed server(s).

Verify the following function:

Create resources
Create a web project, targeted at a server
Create a servlet inside the project - Java Package of test, specify a name, and select "Generate an annotated servlet class file"
Create a JSP inside the project - file name index.jsp
Add the following text into the body: <body>This is the Smoke Test.</body>
Ensure it builds and is targeted to a server correctly
Create an EAR project, targeted at a server
Create an EJB project, targeted at a server
Add EJB to an EAR
Bring up the Properties dialog of the EAR project
Select J2EE Modules
Check the checkbox next to the EJB project name
Press OK
Add a bean to the EJB project
Create a new XDoclet Enterprise JavaBean as a Session Bean in package test
Verify the EAR module in the navigator
Expand the EAR - verify that there is a node for the deployment descriptor.
Expand the deployment descriptor node- verify that there are "Modules" and "Utility JARs" nodes
Expand the Modules node - verify that the EJB reference is shown
Export the projects
Export the web project - verify that the deployment descriptor, Servlet class, and libraries are included in the WAR.
Export the EJB project - verify that all of the classes and the deployment descriptor are included in the EJB JAR.
See also
Click here to view smoke test scenarios for WTP 1.5.
Click here to view smoke test scenarios for WTP 2.0.
Click here to view smoke test scenarios for WTP 3.0.
Click here to view WTP smoke test results.
Back to Web Tools Wiki Home