TS 61 JBoss

"JBoss Test Specification for "NetBeans 6.1"

Author: "Radim Roska"
Version: "1.2"
Estimated time: 3 hours
Default IZ component(s): serverplugins/jboss4
Last update: "2008/04/28"
Introduction: "This test specification is focused on testing netbeans support for JBoss application server.
Comments: "Netbeans support both current versions of JBoss - 4.x and 5. But JBoss 5 is still beta with some issues. You must run NetBeans on JDK 1.5 when testing JBoss 5."


Test suite: "Register JBoss"

Purpose: "To verify a JBoss server instance can be easily added/removed and used within the IDE."
Setup: "I assume you have already installed desired version of JBoss server on your computer. If not look at http://wiki.netbeans.org/AppServersInstallation "

  1. "Register JBoss"
    1. In services view perform add server action on Servers node
    2. In the opened dialog choose server JBoss Application Server and click Next
    3. Till you specify location error msg "Provide a valid JBoss Application 4 or 5 Installation Location" is displayed.
    4. Specify correct location, where JBoss is installed. Next.
    5. You can specify domain. Leave it default and press Finish.
    6. Remove JBoss.
    • EXPECTED RESULT: "All operations works fine. When JBoss is registered to the IDE, its node appears as subnode of Servers node in Services View. After Remove action JBoss node disappears from Services View."
  2. "Server manager"
    1. Open Tools - Servers
    2. In opened dialog try to remove and add JBoss server.
    • EXPECTED RESULT: "Works as in the first case."

Test suite: "Managing JBoss"

Purpose: "To verify a JBoss can be controlled from IDE."

  1. "JBoss server instance"
    1. Perform start action on JBoss server node.
    2. Check output window, there should be server log displayed.
    3. Check server node icon in services view has changed.
    4. Perform refresh action on JBoss.
    5. Perform stop action.
    6. Verify it has really stopped by opening server URL in browser. (e.g. http://localhost:8081 - port may be different)
    7. Start server in debug mode.
    8. Perform restart action server.
    9. Close output window. And perform View server log operation.
    10. Perform View admin console action.
    11. Perform View JMX console action.
    12. Perform Properties action.
    13. Stop server.
    14. Most of these actions can be performed from output window as well.Verify it works.
    • EXPECTED RESULT: "Following options should be available after right click on server node:
   * Start
   * Start in Debug mode
   * Start in Profile mode 
   * Restart (not enabled)
   * Stop    (not enabled) 
   * Refresh
   * Remove 
   * View Admin Console 
   * View JMX Console
   * View Server Log
   * Properties
Server responds to the operations correctly. Icon in services view is changing with server status. Appropriate string (e.g. "Starting JBoss Application Server") appears in the status bar when operation is performed. Server log is displayed when it should be. Performing View admin console actions runs browser with web configuration tool and so does view JMX console "

Test suite: "Deployment"

Purpose: "To verify a j2ee project can be deployed to server using IDE."

  1. "Deploying Web Application"
    1. Create Web Application. Be sure to select JBoss in New Web Application wizard.
    2. Run new application while server is down. Server has to start automatically.
    3. Application welcome page should be displayed in new tab of your browser.
    4. Change "Hello World!" in index.jsp and run Undeploy and deploy operation. Refresh your browser when its done.
    5. Perform debug operation on Web Application.
    6. Again index.jsp should be displayed in your browser.
    7. In services view under JBoss node look for all applications you have deployed to the server.
    8. Try to undeploy these applications.
    9. Check deployment descriptor - jboss-web.xml in Configuration Files.
    • EXPECTED RESULT: " All operations run successfully. Project wizard always set correct j2ee version. JBoss 4.x.x supports only J2EE 1.4. JBoss 5.x.x supports already also J2ee 5. After deploying changed application result in browser has to be changed too. Check aplication subnode in JBoss node in services view (web apps/ear are placed correctly - divided into 3 parts (EAR, EJB and WEB))"
  2. "Deploying Enterprise Application"
    1. Create Enterprise Application project. Again be sure to select JBoss. Create some Session Bean in EJB Module.
    2. Perform steps 2-8 in case "Deploying Web Application" this time with Enteprise application.
    • EXPECTED RESULT: " All operations run successfully. Project wizard always set correct j2ee version. JBoss 4.x supports only J2EE 1.4. After deploying changed application result in browser has to be changed too. "
  1. "Visual Web"
    1. http://qa.netbeans.org/modules/webapps/promo-h/JBossDeployment.html#Deployment
    • EXPECTED RESULT: " All operations run successfully."

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo