Difference between revisions of "Example Selenium test suite"

From Organic Design wiki
Line 5: Line 5:
 
==First test==
 
==First test==
 
This test is an example of transclusion of another article which itself a test article encapsulated in <nowiki><selenium></nowiki> tags.
 
This test is an example of transclusion of another article which itself a test article encapsulated in <nowiki><selenium></nowiki> tags.
{{:Test:Create account}}
+
{{:Test:Create account|TEST=you mofo}}
  
 
==Second test==
 
==Second test==

Revision as of 22:13, 17 December 2007

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>