From: ldimaggi@sourceware.org <ldimaggi@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci/test conga_Helpers.py conga_suite.p ...
Date: 11 Dec 2006 21:37:23 -0000 [thread overview]
Message-ID: <20061211213723.3470.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: conga
Changes by: ldimaggi at sourceware.org 2006-12-11 21:37:22
Modified files:
luci/test : conga_Helpers.py conga_suite.py
Added files:
luci/test : tests_README.txt
Log message:
Added first revision of tests_README.txt
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/test/tests_README.txt.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/test/conga_Helpers.py.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/test/conga_suite.py.diff?cvsroot=cluster&r1=1.4&r2=1.5
/cvs/cluster/conga/luci/test/tests_README.txt,v --> standard output
revision 1.1
--- conga/luci/test/tests_README.txt
+++ - 2006-12-11 21:37:22.873459000 +0000
@@ -0,0 +1,85 @@
+README for Running RHEL5 Conga Automated GUI Tests
+==================================================
+
+(Rev 1.0 - 20061211, ldimaggi at redhat.com)
+
+1) Install Selenium Core
+ a. wget http://release.openqa.org/selenium-core/0.8.1/selenium-core-0.8.1.zip
+ b. Unzip someplace - I used /opt
+
+2) Make sure Firefox 1.5 or newer is installed - I'm using 1.5.0.8
+
+3) Make sure Java 1.5 is installed - I'm using Sun 1.5.0_09
+
+4) Add Firefox bin dir to PATH
+ a. export PATH=/usr/lib/firefox-1.5.0.8:$PATH
+
+5) Start up Selenium server:
+ a. cd /opt/selenium/selenium-remote-control-0.9.0/server/
+ b. java -jar selenium-server.jar
+
+6) On the luci server, modify config to not use SSL, edit /var/lib/luci/etc/zope.conf:
+ a. Change this:
+
+ <cgi-environment>
+ HTTPS ON
+ <cgi-environment>
+
+ to this:
+
+ <cgi-environment>
+ HTTPS OFF
+ <cgi-environment>
+
+ b. Change this:
+
+ <http-server>
+ # valid keys are "address" and "force-connection-close"
+ #address 8080
+ address localhost:25639
+ # force-connection-close on
+ </http-server>
+
+ to this:
+
+ <http-server>
+ address 8080
+ </http-server>
+
+ c. Restart luci service
+
+7) Get a local copy of the tests.
+
+ a. mkdir sandbox; cd sandbox
+ b. cvs -d :ext:ldimaggi at sources.redhat.com:/cvs/cluster checkout conga
+ c. cd conga/luci/tests
+
+8) Set up the test data to match your current test network node names
+ and passwords - edit conga_Helpers.py
+
+9) Run the tests individually:
+ a. python congaDemoTests.py
+ b. python CGA_0160_Add_User.py
+ c. python CGA_0170_Online_Documenation_Portlet.py
+ d. python CGA_0200_Create_cluster.py
+
+ Or, run all the tests as a suite:
+ a. python conga_suite.py
+
+ Look in the syslog and debug log on the luci server and in the selenium server log for errors if a test fails.
+
+Current Issues:
+===============
+
+ 1) The tests that create a cluster (congaDemoTests.py,
+ CGA_0200_Create_cluster.py) don't yet fully cleanup after a test
+ run. The cluster is deleted in the luci database, but the
+ cluster.conf file and the service startup settings are not reset
+ on the cluster nodes.
+
+ 2) The tests do not yet handle errors, other than expected failures.
+
+
+
+
+
--- conga/luci/test/conga_Helpers.py 2006/12/08 16:17:23 1.6
+++ conga/luci/test/conga_Helpers.py 2006/12/11 21:37:22 1.7
@@ -41,16 +41,16 @@
# 20061130 - Node tng3-1 isn't booting, node tng3-4 is having some problems too
-#CONGA_STORAGE_SYSTEMS = {'tng3-1.lab.msp.redhat.com':'password',
+CONGA_STORAGE_SYSTEMS = {'tng3-1.lab.msp.redhat.com':'password',
# 'tng3-2.lab.msp.redhat.com':'password',
-# 'tng3-3.lab.msp.redhat.com':'password',
-# 'tng3-4.lab.msp.redhat.com':'password',
-# 'tng3-5.lab.msp.redhat.com':'password'}
-
-CONGA_STORAGE_SYSTEMS = {'tng3-2.lab.msp.redhat.com':'password',
- 'tng3-3.lab.msp.redhat.com':'password',
+ 'tng3-3.lab.msp.redhat.com':'password',
+ 'tng3-4.lab.msp.redhat.com':'password',
'tng3-5.lab.msp.redhat.com':'password'}
+#CONGA_STORAGE_SYSTEMS = {'tng3-2.lab.msp.redhat.com':'password',
+# 'tng3-3.lab.msp.redhat.com':'password',
+# 'tng3-5.lab.msp.redhat.com':'password'}
+
#CONGA_CLUSTER_SYSTEMS = {'tng3-1.lab.msp.redhat.com':'password',
# 'tng3-2.lab.msp.redhat.com':'password',
# 'tng3-3.lab.msp.redhat.com':'password',
--- conga/luci/test/conga_suite.py 2006/12/07 20:56:48 1.4
+++ conga/luci/test/conga_suite.py 2006/12/11 21:37:22 1.5
@@ -64,9 +64,9 @@
# Assemble the suite
suite = unittest.TestSuite()
-suite.addTest(congaDemoSuite)
+#suite.addTest(congaDemoSuite)
suite.addTest(CGA_0160_Add_UserSuite)
-suite.addTest(CGA_0170_Online_Documentation_Portlet_Suite)
+#suite.addTest(CGA_0170_Online_Documentation_Portlet_Suite)
# Run the test suite
unittest.TextTestRunner(verbosity=2).run(suite)
next reply other threads:[~2006-12-11 21:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-11 21:37 ldimaggi [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-12-07 20:56 [Cluster-devel] conga/luci/test conga_Helpers.py conga_suite.p ldimaggi
2006-12-05 21:23 ldimaggi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061211213723.3470.qmail@sourceware.org \
--to=ldimaggi@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.