Example Selenium test suite

From Organic Design wiki
Revision as of 09:27, 13 December 2007 by Sven (talk | contribs)
See also

First test

This test is an example of transclusion of another article which itself a test article encapsulated in <selenium> tags. <selenium> Create Account

Create Account
open {{localurl:Special:Userlogout}}
open {{localurl:Main Page}}
clickAndWait link=Log in / create account
clickAndWait link=Create an account
storeEval new Date().getTime()-1000000000000 username
type wpName2 ${username}
type wpPassword2 password
type wpRetype password
clickAndWait wpCreateaccount
verifyTitle glob:*successful*

</selenium>

Second test

this test is an example of an inline <selenium> test. <selenium> Create Account

Create Account
open /wiki/index.php?title=Special:Userlogout
clickAndWait link=Log in / create account
clickAndWait link=Create an account
storeEval new Date().getTime()-1000000000000 username
type wpName2 ${username}
type wpPassword2 password
type wpRetype password
clickAndWait wpCreateaccount
verifyTitle glob:*successful*

</selenium>