dev@glassfish.java.net

Run one test suite in v3 QL

From: Sherry Shen <Sherry.Shen_at_Sun.COM>
Date: Wed, 10 Sep 2008 23:30:00 -0700
Dear V3 QL users,

Several people asked how to run one test suite in v3 QL, which is very useful
in trouble shooting.      As I remember, it used to work.   Since I
haven't touched QL for a while, I tried QL today.   It still works.  :-)
Enclosed is  my test steps how to run QL in all or in one test suite.

Thanks Sahoo and Marina for several good suggestions on improving QL.
Ming and I discussed the suggestions and will start to work on the improvement.

Best Regards,

Sherry

PS:  my test steps.

1. Get build
% wget -O web.zip http://hudson.sfbay/job/glassfish-v3/lastSuccessfulBuild/org.glassfish.distributions\$web/artifact/org.glassfish.distributions/web/10.0-SNAPSHOT/web.zip
which is based on dev build used by
http://hudson.sfbay.sun.com/job/v3-dev-builds-quicklook/
% unzip -l web.zip | more
Archive:  web.zip
 Length    Date    Time    Name
 ------    ----    ----    ----
      0  09-10-08  22:29   glassfish/javadb/

% wget -O web-ips.zip http://gf-hudson.sfbay/hudson/job/gf-prelude-build/lastSuccessfulBuild/artifact/bundles/web-ips.zip
which is based on release build used by
http://gf-hudson.sfbay.sun.com/hudson/job/prelude-ql/
% unzip -l web-ips.zip | more
Archive:  web-ips.zip
 Length    Date    Time    Name
 ------    ----    ----    ----
      0  09-10-08  14:42   glassfishv3-prelude/javadb/
      0  09-10-08  14:41   glassfishv3-prelude/glassfish/

Please note javadb is at a different level for web.zip and web-ips.zip,
and directory of glassfish will be used as  $S1AS_HOME in the tests below.

2. Run all tests
% svn checkout https://svn.dev.java.net/svn/glassfish-svn/trunk/v3/tests/quicklook
% cd quicklook

For web.zip:

% mvn -Dglassfish.home=$S1AS_HOME   test


For web-ips.zip:

% mvn -Dglassfish.home=$S1AS_HOME -Dderby.system.home=$S1AS_HOME/../javadb  test

3. Run one test suite

For web.zip:

% svn checkout https://svn.dev.java.net/svn/glassfish-svn/trunk/v3/tests/quicklook
% cd quicklook
% ant -Dglassfish.home=$S1AS_HOME  startDerby
% ant -Dglassfish.home=$S1AS_HOME  start-server-felix
% cd persistence/jpainjectemf
% ant -Dglassfish.home=$S1AS_HOME  all
% cd ../..
% ant -Dglassfish.home=$S1AS_HOME  stop-server
% ant -Dglassfish.home=$S1AS_HOME  stopDerby

For web-ips.zip:
% svn checkout https://svn.dev.java.net/svn/glassfish-svn/trunk/v3/tests/quicklook
% cd quicklook
% ant -Dglassfish.home=$S1AS_HOME -Dderby.system.home=$S1AS_HOME/../javadb startDerby
% ant -Dglassfish.home=$S1AS_HOME -Dderby.system.home=$S1AS_HOME/../javadb start-server-felix
% cd persistence/jpainjectemf
% ant -Dglassfish.home=$S1AS_HOME -Dderby.system.home=$S1AS_HOME/../javadb all
% cd ../..
% ant -Dglassfish.home=$S1AS_HOME -Dderby.system.home=$S1AS_HOME/../javadb stop-server
% ant -Dglassfish.home=$S1AS_HOME -Dderby.system.home=$S1AS_HOME/../javadb stopDerby