kablamo/Test-WWW-Selenium-More — Issue #5: Make it more clear whats happening when the selenium server is down.
Author: kablamo
Created: 2012-02-16 09:38:39+00:00
State: open

Better error messages? I just had a weird issue. I think the server was down. But I'm not sure. But then things started working again. I should test this scenario and make sure error messages are clear.

TAP output:

# register a user - yarf@example.com
ok 1 - open, /auth/register
not ok 2 - is_text_present, Register new user
not ok 3 - type, email, yarf@example.com
...snip...
not ok 9 - type, mobile_phone, +44 77 11 671 828

Jenkins console output:

# Failed test 'is_text_present, Register new user
# at /var/lib/jenkins/tests/smoke_test_work/lib/Moose/Meta/Method/Delegation.pm line 110.
# Error requesting http://localhost:4444/selenium-server/driver/:
# ERROR: Element email not found

...snip...

# Failed test 'type, email, yarf@example.com'
# at /var/lib/jenkins/tests/smoke_test_work/lib/Moose/Meta/Method/Delegation.pm line 110.
# Error requesting http://localhost:4444/selenium-server/driver/:
# ERROR: Element mobile_phone not found

...snip...