Quick startup guides for Test manager plugin
[ Home | Latest changes | Image gallery | Video tutorial on Youtube | Quick setup guide | Download | Source | Bugs/Feature requests ]
Quick startup guide for Linux
This guide will help you to quickly set up an environment with Apache, modwsgi and the Test Manager plugin. Security is based on Apache password file, with basic authentication.
Run every command as root. The examples are for a freshly installed Debian machine:
- Download python setup tools from PyPi.
- Compile and install:
tar xvzf setuptools-0.6c11.tar.gz cd setuptools-0.6c11/ python setup.py install
- Install Trac 0.12.2 using the now available easy_install:
easy_install Trac
- Create the directories to host the foo project:
mkdir -p /var/lib/trac
- Create a foo trac project environment:
trac-admin /var/lib/trac/foo initenv
- Create a password file for Apache authentication, for example with an "admin" and a "roberto" users:
htpasswd -c /var/lib/trac/foo/conf/passwd admin htpasswd /var/lib/trac/foo/conf/passwd roberto
- Grant the anonymous user
TRAC_ADMIN
permissions:trac-admin /var/lib/trac/foo permission add anonymous TRAC_ADMIN
- Run Trac through tracd to verify everything worked:
tracd -r --port 8000 /var/lib/trac/foo
- Set trace level to DEBUG in trac, and log to file, using the admin panel. The admin panel can be accessed from Trac's navigation bar:
localhost:8000/foo/admin
- Configure Apache and wsgi as follows:
Snippet forapache2.conf
:Snippet forWSGIScriptAlias /trac /var/lib/trac/foo/trac.wsgi <Directory /var/lib/trac/foo/apache> WSGIApplicationGroup %{GLOBAL} Order deny,allow Allow from all </Directory> <Location /trac> AuthType Basic AuthName "trac" AuthUserFile /var/lib/trac/foo/conf/passwd Require valid-user </Location>
/var/lib/trac/foo/trac.wsgi
:import os os.environ['TRAC_ENV'] = '/var/lib/trac/foo' os.environ['PYTHON_EGG_CACHE'] = '/var/lib/trac/foo/eggs' import trac.web.main application = trac.web.main.dispatch_request
- Grant everyone read, write and execute permissions on
/var/lib/trac
:chmod -R 777 /var/lib/trac
- (Re-)start Apache:
/etc/init.d/apache2 restart
- Verify Trac is up and running, with basic authentication working, using the browser.
- Download the egg files for the TestManagerForTracPlugin from sourceforge and extract the archive:
sourceforge.net/projects/testman4trac/files/
- Open your browser to the foo trac project, on the admin panel
http://localhost/trac/foo/admin
, and install TracGenericClassPlugin from the first egg file. Note: the order in which you install the plugins is important. - Install the TracGenericWorkflowPlugin the same way. This asks for a database upgrade.
- To upgrade, open a command console as root and enter the command displayed in the browser:
trac-admin /var/lib/trac/foo upgrade
- Restart Apache to verify its cache is updated:
/etc/init.d/apache2 restart
- Refresh your browser (F5). The Trac admin page should show the new plugin in place.
- Install TestManagerForTracPlugin the same way. This asks for another database upgrade.
- From the same command console, as root, run the same command as before. Then also issue the command to update the documentation, which is displayed at the end of the database update:
trac-admin /var/lib/trac/foo upgrade trac-admin /var/lib/trac/foo wiki upgrade
- Restart Apache. This time is actually required:
/etc/init.d/apache2 restart
- Refresh your browser (F5). The Trac admin page should show the three installed plugins.
- Click on the Test Manager tab in Trac's top navigation bar to start using the new plugin.
Quick startup guide for Windows
- Install Linux.
- Follow the Quick startup guide for Linux.
Last modified 9 years ago
Last modified on Aug 21, 2015, 7:41:15 AM