Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.
/ RFWeb Public archive

Web-app for browsing and scheduling Robot Framework tests, inspired by RFDoc

Notifications You must be signed in to change notification settings

ex5/RFWeb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

RFWeb

Web-app for browsing and scheduling Robot Framework tests, inspired by RFDoc

RFDaemon

RFDaemon is a small daemon which was created to run RobotFramework test suites as they are scheduled by RFWeb. It reads RFWeb.RFWebApp settings module and uses the same database configuration to access RFWeb database. If RFDaemon and RFWeb are running on different hosts RFWeb settings and settings.RESULTS_PATH/SUITES_PATH should be accessible from both of these hosts (e.g., via NFS).

Requirements

Installation

Python 2.7

If you need to install Python 2.7 separately from any other Python that is already installed in the system (e.g., if it's CentOS you are dealing with), then you might want to build Python from source:

#!/bin/sh

PYTHON_PREFIX=/opt/python2.7

wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
tar -zxvf Python-2.7.3.tgz
cd Python-2.7.3.tgz
make clean
./configure --prefix=$PYTHON_PREFIX --exec-prefix=$PYTHON_PREFIX --libexecdir=$PYTHON_PREFIX/lib --with-pth --with-fpectl --with-system-expat --with-threads --enable-shared --enable-unicode --enable-big-digits --with-signal-module --with-pydebug
make
make install
touch /etc/ld.so.conf.d/python2.7.conf
echo $PYTHON_PREFIX/lib > /etc/ld.so.conf.d/python2.7.conf
ldconfig 

Setuptools are needed too:

wget http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg#md5=fe1f997bc722265116870bc7919059ea
ln -s $PYTHON_PREFIX/bin/python2.7 /usr/bin/python2.7
/bin/sh setuptools-0.6c11-py2.7.egg --prefix=$PYTHON_PREFIX
ln -s $PYTHON_PREFIX/bin/easy_install-2.7 /usr/bin/easy_install-2.7

After that MySQL-python and lxml can be easily installed:

easy_install-2.7 MySQL-python
easy_install-2.7 lxml

Setting up RobotFramework 2.7

wget http://robotframework.googlecode.com/files/robotframework-2.7.5.tar.gz
tar -zxvf robotframework-2.7.5.tar.gz
cd robotframework-2.7.5
python2.7 setup.py install

Setting up Django

Setting up Dajaxice

wget https://github.com/downloads/jorgebastida/django-dajaxice/django-dajaxice-0.2.tar.gz
tar -zxvf django-dajaxice-0.2.tar.gz
cd django-dajaxice-0.2
python2.7 setup.py install

Setting up Dajax

wget https://github.com/downloads/jorgebastida/django-dajax/django-dajax-0.8.4.tar.gz
tar -zxvf django-dajax-0.8.4.tar.gz
cd django-dajax-0.8.4
python2.7 setup.py install

Preparing database

Assuming MySQL is on the same host:

$ mysql -u root -p
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> CREATE DATABASE rfweb;
Query OK, 1 row affected (0.00 sec)

mysql> GRANT ALL ON rfweb.* TO rfweb@localhost IDENTIFIED BY '123456';
Query OK, 0 rows affected (0.00 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

mysql> exit
Bye

Now we can sync Django db:

$ python2.7 manage.py syncdb

If everything worked well Django development server can be started:

$ python2.7 manage.py runserver

Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
[07/Dec/2012 01:24:36] "GET / HTTP/1.1" 200 2404
[07/Dec/2012 01:24:36] "GET /dajaxice/dajaxice.core.js HTTP/1.1" 200 3624

About

Web-app for browsing and scheduling Robot Framework tests, inspired by RFDoc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published