Manual tests for Management

Guidelines for documenting the manual tests:

  • Summarize the elements covered in the test
  • Enumerate the steps (ordered list)
  • Call out test points with a TEST bullet
  • Include screenshots as appropriate; many of the manual tests will be visual, so screenshots are helpful

Management Dependency

Update Employee Demo within eclipse to include management dependency

Tests confirm:
  • zero.management can be added to a project and can be resolved in eclipse

Steps:

  1. Check out employee.demo from SVN into eclipse
  2. Update all dependencies in eclipse
  3. Open the config/ivy.xml for editing
  4. add the following line the dependencies stanza:
<dependency name="zero.management" org="zero" rev="1.0+"/>

management_dependency.jpg
  1. save ivy.xml
  2. ensure dependency resolution works

Update Employee Demo on the command line to include management dependency

Tests confirm:
  • zero.management can be added to a project and can be resolved in command line

Steps:

  1. Download M4 command Line build and untar/unzip
  2. Install the employee.demo application using the following command - zero install zero:employee.demo
  3. Delete all dependencies in local repository
  4. Update employee.demo/config/ivy.xml
  5. add the following line the dependencies stanza :
<dependency name="zero.management" org="zero" rev="1.0+"/>
  1. save ivy.xml
  2. Within the employee.demo directory run: "zero resolve"

Management Commands

Tests confirm:
  • Once management has been added to a project, the management command extensions work to control the application

Steps:

  1. Ensure employee.demo has been updated with the zero.management dependency per the above instructions, zerohome is in your $PATH, and you are within the employee demo directory
  2. execute: zero start
    start_cmd.jpg
  3. execute: zero restart
    restart_cmd.jpg
  4. execute: zero info
    info_cmd.jpg
  5. execute: zero status
    status_cmd.jpg
  6. execute: zero stop
    stop_cmd.jpg

Zero Socket Opener (ZSO) functional

Tests confirm:
  • That the ZSO can be used to front a zero app, so the JVM is only started when a request is received.
  • That the idle timeout works for shutting down a JVM when it is not in use.
  • These steps only work on Linux -- the only ZSO supported platform for M4.

Steps:

  1. Update employee.demo as above, but instead of "zero.management", use the dependency "zero.management.zso"
  2. Update the zero.config of employee.demo with "/config/idleTimeout=60". This configures the JVM to stay alive for at least 60 seconds from the last request.
    idleTimeout_config.jpg
  3. Open a terminal / shell to the root directory of employee.demo. Make sure that zerohome is in your $PATH.
  4. Start the application via the ZSO. execute: zero startzso
    zero_startzso.jpg
  5. Confirm that the zso is running. "ps -ef |grep zso" should have 1 entry. "ps -ef |grep java" should have no entries.
  6. Connect to the application. Open a browser to "http://localhost:8080" The application should respond as normal.
  7. Confirm both the zso and the JVM are running. "ps -ef |grep zso" should have one entry for the zso itself, and one for the java vm. "ps -ef |grep java" should have 1 entry.
    zso_afterconnection.jpg
  8. Wait 60 seconds or so. The JVM should exit. A "ps -ef |grep java" should be empty, with no entries.
    zso_aftertimeout.jpg
  9. Connect to the application. (Reload the page). The application should response as normal.
  10. Stop the application and the ZSO. execute: zero stop
  11. "ps -ef|grep zso" and "ps -ef|grep java" should both be empty.
    zero_stop.jpg

  Attachment Action Size Date Who Comment
jpg idleTimeout_config.jpg props, move 40.9 K 05 Feb 2008 - 19:12 gregsmit  
jpg info_cmd.jpg props, move 36.1 K 12 Dec 2007 - 03:07 tom  
jpg management_dependency.jpg props, move 256.3 K 11 Dec 2007 - 22:23 tom  
jpg restart_cmd.jpg props, move 33.8 K 12 Dec 2007 - 03:07 tom  
jpg start_cmd.jpg props, move 28.0 K 12 Dec 2007 - 03:08 tom  
jpg status_cmd.jpg props, move 32.9 K 12 Dec 2007 - 03:08 tom  
jpg stop_cmd.jpg props, move 39.6 K 12 Dec 2007 - 03:08 tom  
jpg zero_startzso.jpg props, move 29.4 K 05 Feb 2008 - 19:32 gregsmit  
jpg zero_stop.jpg props, move 49.5 K 05 Feb 2008 - 19:40 gregsmit  
jpg zso_afterconnection.jpg props, move 43.2 K 05 Feb 2008 - 19:34 gregsmit  
jpg zso_aftertimeout.jpg props, move 21.1 K 05 Feb 2008 - 19:40 gregsmit  
r7 - 08 Feb 2008 - 22:39:35 - madhu
Syndicate this site RSS ATOM
Copyright 2007 © IBM Corporation | Privacy | Terms of Use | About this site