Testing tips

OMTP BONDI codefest in Chiswick
21th January, 2009

Sanity testing

First, please check you are up to date.

Do not use IE8beta with WebVM

Please use Internet Explorer 7 for testing ActiveX, not IE8beta. Try use a virgin VMWare image.

PIE on your face!

Your testing environment

Disable any caching by adding to your .htaccess:

Header set Expires "Thu, 19 Nov 1981 08:52:00 GMT"
Header set Cache-Control "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
Header set Pragma "no-cache"
  1. mkdir mysimplenewtest && cd $_
  2. wget http://example.webvm.net/template/
  3. wget http://example.webvm.net/template/test.js

Please validate your HTML and lint you Javascript. Best to integrate these tools into vim.

Recording failure

Iframe logging to logs.

PASS: 2009-01-15T14:41:57+00:00,/121/,0,xp-x86-activex,0.8.3742,Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
PASS: 2009-01-16T13:44:42+00:00,/121/,0,xp-x86-activex,0.8.3742,Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
PASS: 2009-01-16T13:44:57+00:00,/121/,0,xp-x86-activex,0.8.3742,Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

More test automation

Writeup on the difficulties of unit tests and further test automation.

Widget testing

BONDI
curl -s -F "zip=@yourwidget.wgt" http://wgt.webvm.net | grep widget-start