VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/testmanager/readme.txt@ 82803

Last change on this file since 82803 was 82803, checked in by vboxsync, 5 years ago

Validation Kit/testmanager: Some more docs / hints.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.3 KB
Line 
1$Id: readme.txt 82803 2020-01-20 18:07:44Z vboxsync $
2
3Directory descriptions:
4 ./ The Test Manager.
5 ./batch/ Batch scripts to be run via cron.
6 ./cgi/ CGI scripts (we'll use standard CGI at first).
7 ./core/ The core Test Manager logic (model).
8 ./htdocs/ Files to be served directly by the web server.
9 ./htdocs/css/ Style sheets.
10 ./htdocs/images/ Graphics.
11 ./webui/ The Web User Interface (WUI) bits. (Not sure if we will
12 do model-view-controller stuff, though. Time will show.)
13
14I. Running a Test Manager instance with Docker:
15
16 - This way should be preferred to get a local Test Manager instance running
17 and is NOT meant for production use!
18
19 - Install docker-ce and docker-compose on your Linux host (not tested on
20 Windows yet). Your user must be able to run the Docker CLI (see Docker documentation).
21
22 - Type "kmk" to get the containers built, "kmk start|stop" to start/stop them
23 respectively. To start over, use "kmk clean". For having a peek into the container
24 logs, use "kmk logs".
25
26 - There are two ways of doing development with this setup:
27
28 a. The Test Manager source is stored inside a separate data volume called
29 "docker_vbox-testmgr-web". The source will be checked out automatically on
30 container initialization. Development then can take part within that data
31 container. The initialization script will automatically pull the sources
32 from the public OSE tree, so make sure this is what you want!
33
34 b. Edit the (hidden) .env file in this directory and change VBOX_TESTMGR_DATA
35 to point to your checked out VBox root, e.g. VBOX_TESTMGR_DATA=/path/to/VBox/trunk
36
37
38II. Steps for manually setting up a local Test Manager instance for development:
39
40 - Install apache, postgresql, python, psycopg2 (python) and pylint.
41
42 - Create the database by executing 'kmk load-testmanager-db' in
43 the './db/' subdirectory. The default psql parameters there
44 requies pg_hba.conf to specify 'trust' instead of 'peer' as the
45 authentication method for local connections.
46
47 - Use ./db/partial-db-dump.py on the production system to extract a
48 partial database dump (last 14 days).
49
50 - Use ./db/partial-db-dump.py with the --load-dump-into-database
51 parameter on the development box to load the dump.
52
53 - Configure apache using the ./apache-template-2.4.conf (see top of
54 file for details), for example:
55
56 Define TestManagerRootDir "/mnt/scratch/vbox/svn/trunk/src/VBox/ValidationKit/testmanager"
57 Define VBoxBuildOutputDir "/tmp"
58 Include "${TestManagerRootDir}/apache-template-2.4.conf"
59
60 Make sure to enable cgi (a2enmod cgi && systemctl restart apache2).
61
62 - Default htpasswd file has users a user 'admin' with password 'admin' and a
63 'test' user with password 'test'. This isn't going to get you far if
64 you've loaded something from the production server as there is typically
65 no 'admin' user in the 'Users' table there. So, you will need to add your
66 user and a throwaway password to 'misc/htpasswd-sample' using the htpasswd
67 utility.
68
69 - Try http://localhost/testmanager/ in a browser and see if it works.
70
71
72
73N.B. For developing tests (../tests/), setting up a local test manager will be
74 a complete waste of time. Just run the test drivers locally.
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette