First CREAM testsuites (regression and functionality) trial

Testsuites installation

Server side installation (test on cream ce cream-48)

For first install the needed software:

  • python
  • pyro4

mkdir software
cd software

wget http://python.org/ftp/python/2.7.2/Python-2.7.2.tgz
tar -xzvf Python-2.7.2.tgz
cd Python-2.7.2
./configure
make
make install

wget http://pypi.python.org/packages/source/P/Pyro4/Pyro4-4.11.tar.gz#md5=8126e7049206b7b09f324750f50cee2d
tar -xzvf Pyro4-4.11.tar.gz
cd ../Pyro4-4.11
/usr/local/bin/python2.7 setup.py install

Then install the cream regression testsuite serverside and configure it. The [[https://wiki-igi.cnaf.infn.it/twiki/pub/IGIRelease/FirstSreamTestsuitesTrial/regression_testsuite_server_20120126.tar][regression_testsuite_server_20120126.tar] file is linked to this wiki, for the moment:

scp regression_testsuite_server_20120126.tar cream-48: -scrivi come prendere il file
tar -xvf regression_testsuite_server_20120126.tar

export CREAM_TESTSUITE_HOME=/root/regression_testsuite_server
export PYRO_LOGFILE=/var/log/cream/cream_testsuite_srv.log
export PYRO_LOGLEVEL=DEBUG
export PYTHONPATH=/root/regression_testsuite_server:/root/regression_testsuite_server/conf:/root/regression_testsuite_server/utils:/opt/cream_test/lib/

Customize the configuration file editing it:

vi conf/cream_testsuite_conf.ini  
(be careful that the configured siteinfo_dir and related files must be writeble)

Client side installation (cream-wn-035 as UI)

For first install the needed software. I made a mistake bacause the functionality testsuite packaging and deployment procedure is for python 2.6 and I installed python 2.7 so I had to install "by hand" also all dependencies (a good exercise, but not convenient):

  • python
  • pyro4
  • robotframework
  • paramiko
  • pycrypto
  • pexpect
  • MySQL-python

mkdir software
cd software

wget http://python.org/ftp/python/2.7.2/Python-2.7.2.tgz
tar -xzvf Python-2.7.2.tgz
cd Python-2.7.2
./configure
make
make install

wget http://pypi.python.org/packages/source/P/Pyro4/Pyro4-4.11.tar.gz#md5=8126e7049206b7b09f324750f50cee2d
tar -xzvf Pyro4-4.11.tar.gz
cd ../Pyro4-4.11
/usr/local/bin/python2.7 setup.py install

wget http://robotframework.googlecode.com/files/robotframework-2.7a1.tar.gz
tar -xvf robotframework-2.7a1.tar.gz
cd robotframework-2.7a1
python setup.py install

wget http://pypi.python.org/packages/source/p/paramiko/paramiko-1.7.7.1.zip#md5=4a9d3bab15a0cbf8b0b828aefd395993
unzip paramiko-1.7.7.1.zip
cd paramiko-1.7.7.1
python setup.py install

wget http://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.3.tar.gz#md5=2b811cfbfc342d83ee614097effb8101
tar -xzvf pycrypto-2.3.tar.gz
cd pycrypto-2.3
python setup.py install

tar -xzvf pexpect-2.4.tar.gz
wget http://pypi.python.org/packages/source/p/pexpect/pexpect-2.4.tar.gz#md5=fe82d69be19ec96d3a6650af947d5665
python setup.py install

download MySQL-python-1.2.3.tar.gz (http://www.mysql.com/downloads/ or http://sourceforge.net/projects/mysql-python/files/latest/download)
tar -xzvf MySQL-python-1.2.3.tar.gz
wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz#md5=7df2a529a074f613b509fb44feefe74e
tar -xzvf setuptools-0.6c11.tar.gz
cd setuptools-0.6c11
python setup.py install
cd ../MySQL-python-1.2.3
python setup.py build
python setup.py install

Regression testsuite client installation

scp regression_testsuite_server_20120126.tar cream-wn-035.pn: -scrivi come prendere il file
tar -xvf regression_testsuite_server_20120126.tar
export CREAM_TESTSUITE_HOME=/home/bertocco/regression_testsuite_server
export PYRO_LOGFILE=/var/log/cream/cream_testsuite_srv.log
export PYRO_LOGLEVEL=DEBUG
export PYTHONPATH=/home/bertocco/regression_testsuite_server:/home/bertocco/regression_testsuite_server/conf:/home/bertocco/regression_testsuite_server/utils:/home/bertocco/regression_testsuite_server/lib:/opt/cream_test/lib/
cp $CREAM_TESTSUITE_HOME:conf/cream_testsuite_conf.ini from CE to UI

Functionality testsuite install

Instructions

wget http://yum.gridctb.uoa.gr/repository/robot_testing.repo -O /etc/yum.repos.d/robot_testing.repo
yum groupinstall cream_testing_group
yum install cream_test

Regression testsuite run:

  • On server (for first):
/usr/local/bin/python2.7 cream_testsuite_start.py

  • On client:
cd $CREAM_TESTSUITE_HOME
pybot tests

Functionality testsuite run:

pybot /opt/cream_test

Notes

  • The regression testsuite suffer a lack in packaging. Must be improved
  • There is a bit of confusion on testsuites configuration
  • Too often same error in testsuites run leaves the cream ce in unpredictable status. Need big improve

Topic attachments
I Attachment Action Size Date Who Comment
HTMLhtml regression_log.html manage 189.6 K 2012-01-27 - 09:04 SaraBertocco Log of a regression testsuite run
XMLxml regression_output.xml manage 64.9 K 2012-01-27 - 09:05 SaraBertocco Output of a regression testsuite run
HTMLhtml regression_report.html manage 189.5 K 2012-01-27 - 09:05 SaraBertocco Report of a regression testsuite run
Edit | Attach | PDF | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | More topic actions
Topic revision: r5 - 2012-02-29 - SaraBertocco
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback