[TIP] What strategies to you use to factor seleniums tests to avoid duplications of the same or similar test steps?

tarjei tarjei at nu.no
Thu Feb 14 05:02:38 PST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bob Clancy wrote:
> Grig wrote:
>> The 2nd book in the O'Reilly Shortcut series is supposed to cover
>> Selenium RC among other things (<http://selenium-rc.openqa.org/>)
> 
> Is there a planned ETA for the 2nd ShortCut book?
> 
> Will it cover abstracting testcases to reduce duplicate code?  (Such a topic
> seems more like the topic for a whole book rather than a shortcut.)

Hmm, I'm not sure how you define duplicate testcases, but an interesting
approach would be to make a selenium version that only relates to the
html (for example using Webtest[1]) and that discards the commands it
cannot support. Thus you could have a version of your tests running in a
virtual browser that would be a lot faster than a normal browser but
that could still do most of the things you are interested in.

1. http://webtest.canoo.com/webtest/manual/keyCharacteristics.html

Regards,
Tarjei

> 
> thanks,
> --
> Bob Clancy  (9 Lives Software Engineering,  Boston, MA, USA)Grig
> 
> 
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHtDvuYVRKCnSvzfIRAi0fAJ9QpJ7MPnTOZ3xYz3dRzFQy2F7xpwCfUgUe
WExxIVXXhO6ViKq6MflmmQQ=
=dG2t
-----END PGP SIGNATURE-----



More information about the testing-in-python mailing list