wiki.webvm.net/ webvm/ Testing and Quality Assurance

Tests are deployed at http://qa.webvm.net.

Some of these tests double as demos.

Bug tracking system (BTS)

Currently the WebVM Trac BTS is not public. WebVM is not released yet.

Gears more complex test runner script and bug.

runtest.sh script

git clone git://git.webvm.net/runtest

I add the alias:

x61:~% alias rtest
rtest='ssh -X nox /home/hendry/runtest/runtest.sh -u'
x61:~% alias itest
itest=/home/hendry/aplix/runtest/runtest.sh

And then run:

itest -h

For usage information. Currently you can setup configs, like so:

itest -c ~/aplix/runtest/debian-ff2

To avoid prompts, you need to setup the policy manually.

nox:~% cat .webvm/qa.webvm.net/policy
ruleset "qa.webvm.net" {
        priority "0"
        display "qa.webvm.net"
        domain "qa.webvm.net"
        grant "jsx:bind"
}

Then:

Check the logs and the debug page.

Adding a description to your test

Simply by giving them a title and:

x61:~% tests
x61:~/aplix/code/trunk/tests/html% ./toc.sh >! .htaccess

Local test setup

Local test

Recreate qa.webvm.net and api.webvm.net on your local machine.

Install Apache2 and PHP for logging to work.

sudo apt-get install php5 apache2

Now generally everything falls into place at /srv/www. For example:

x61:/srv/www% ll api.webvm.net 
lrwxrwxrwx 1 hendry hendry 37 2008-06-03 09:51 api.webvm.net -> /home/hendry/aplix/code/trunk/modules/
x61:/srv/www% ll tests 
lrwxrwxrwx 1 hendry hendry 40 2008-06-03 09:12 tests -> /home/hendry/aplix/code/trunk/tests/html/
x61:/srv/www% cat /etc/apache2/sites-enabled/virtual 
NameVirtualHost *:80

<VirtualHost *:80>
UseCanonicalName    Off
VirtualDocumentRoot /srv/www/%0
Options All ExecCGI
</VirtualHost>

Setup your local DNS server from /etc/hosts

x61:~% grep  api.webvm.net /etc/hosts
127.0.0.1       localhost api.webvm.net tests
x61:~% ping api.webvm.net
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.036 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.030 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.036 ms
^C
--- localhost ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.030/0.034/0.036/0.003 ms
x61:~%

Then you begin testing:

iceweasel -p test -a test http://tests/111

Or using the runtest script:

x61:~% alias itest
itest=/home/hendry/aplix/code/trunk/tests/html/logs/runtest.sh
x61:~% itest -d tests -t 111

Under Win32

WebVM testing locally on Win32