~chiawen-ho/sahana-eden/test

« back to all changes in this revision

Viewing changes to static/selenium/src/register.py

  • Committer: Tina
  • Date: 2010-08-01 09:45:20 UTC
  • Revision ID: tina@tina-vaio-20100801094520-iyifngvbd52k2dfc
initial version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""
 
2
No description.
 
3
"""
 
4
 
 
5
S.open('/sahana')
 
6
S.clickAndWait('link=Register')
 
7
S.click('t2_person_name')
 
8
S.storeRandom('8', 'user')
 
9
S.storeRandom('8', 'domain')
 
10
S.store('${user}@${domain}.com', 'email')
 
11
S.type('t2_person_name', '${user}')
 
12
S.type('t2_person_email', '${email}')
 
13
S.storeRandom('8', 'password')
 
14
S.type('t2_person_password', '${password}')
 
15
S.clickAndWait('//input[@value=\'Submit\']')
 
16
S.verifyTextPresent('You have been successfully registered')
 
17
S.open('/sahana/default/login')
 
18
S.clickAndWait('link=Logout')
 
19
S.verifyTextPresent('Logged Out')
 
20
S.open('/sahana/default/login')
 
21
S.clickAndWait('link=Login')
 
22
S.type('t2_person_email', '${email}')
 
23
S.type('t2_person_password', '${password}')
 
24
S.clickAndWait('//input[@value=\'Submit\']')
 
25
S.verifyTextPresent('Logged In')