OpenID fresh auth can be slow

I’ve been thinking of how to test Web applications lately. Since I’m playing with OpenID I wrote a unit test using twill which I discovered with this post on mailing list.

So I am running the example from python-openid and here is what the test case looks like:

monty$ cat t.twill
#debug http 1
code 200

fv 1 openid_identifier
code 200

fv 1 password YOURPASSWORD
code 200

find successfully

Fill in your openID details and lets try it with twill:

monty$ time ./twill-sh t.twill
==> at
Note: submit is using submit button: name="None", value="Verify"
Note: submit is using submit button: name="None", value="Sign In"

1 of 1 files SUCCEEDED.

real 0m33.065s
user 0m0.920s
sys 0m0.100s

33 seconds! Ok, I’ve run this a couple of times and it can be low as 17 seconds or it is usually in the mid-twenty seconds somewhere. So I wish that was a little faster.


If you like this, you might like the stateless Web kiosk software I develop. Webconverger typically replaces Windows on PCs and is deployed in public and business environments for ease of deployment and privacy. Once installed it auto-updates making it painless to maintain. Try it where you exclusively use the only viable open platform... the Web!