Changeset 8854 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 29 Jun 2012, 21:22:38 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r8820 r8854 1894 1894 1895 1895 def test_request_pw(self): 1896 # Student with wrong reg_number can't be found.1896 # Student with wrong number can't be found. 1897 1897 self.browser.open('http://localhost/app/requestpw') 1898 1898 self.browser.getControl(name="form.firstname").value = 'Anna' 1899 self.browser.getControl(name="form. reg_number").value = 'anynumber'1899 self.browser.getControl(name="form.number").value = 'anynumber' 1900 1900 self.browser.getControl(name="form.email").value = 'xx@yy.zz' 1901 self.browser.getControl(" Getlogin credentials").click()1901 self.browser.getControl("Send login credentials").click() 1902 1902 self.assertTrue('No student record found.' 1903 1903 in self.browser.contents) … … 1906 1906 self.browser.open('http://localhost/app/requestpw') 1907 1907 self.browser.getControl(name="form.firstname").value = 'Johnny' 1908 self.browser.getControl(name="form. reg_number").value = '123'1908 self.browser.getControl(name="form.number").value = '123' 1909 1909 self.browser.getControl(name="form.email").value = 'xx@yy.zz' 1910 self.browser.getControl(" Getlogin credentials").click()1910 self.browser.getControl("Send login credentials").click() 1911 1911 self.assertTrue('No student record found.' 1912 1912 in self.browser.contents) … … 1914 1914 # password has been set and used. 1915 1915 self.browser.getControl(name="form.firstname").value = 'Anna' 1916 self.browser.getControl(name="form. reg_number").value = '123'1917 self.browser.getControl(" Getlogin credentials").click()1916 self.browser.getControl(name="form.number").value = '123' 1917 self.browser.getControl("Send login credentials").click() 1918 1918 self.assertTrue('Your password has already been set and used.' 1919 1919 in self.browser.contents) … … 1922 1922 # The firstname field, used for verification, is not case-sensitive. 1923 1923 self.browser.getControl(name="form.firstname").value = 'aNNa' 1924 self.browser.getControl(name="form. reg_number").value = '123'1924 self.browser.getControl(name="form.number").value = '123' 1925 1925 self.browser.getControl(name="form.email").value = 'new@yy.zz' 1926 self.browser.getControl(" Getlogin credentials").click()1926 self.browser.getControl("Send login credentials").click() 1927 1927 # Yeah, we succeded ... 1928 self.assertTrue('Your password request was successful.' 1929 in self.browser.contents) 1930 # We can also use the matric_number instead. 1931 self.browser.open('http://localhost/app/requestpw') 1932 self.browser.getControl(name="form.firstname").value = 'aNNa' 1933 self.browser.getControl(name="form.number").value = '234' 1934 self.browser.getControl(name="form.email").value = 'new@yy.zz' 1935 self.browser.getControl("Send login credentials").click() 1928 1936 self.assertTrue('Your password request was successful.' 1929 1937 in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.