Ignore:
Timestamp:
11 Nov 2011, 08:27:36 (13 years ago)
Author:
Henrik Bettermann
Message:

Increase test coverage in university package (now 100%).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt

    r7063 r7076  
    652652  ...
    653653
     654  >>> browser.open('http://localhost/myuniversity/faculties/search')
     655  >>> browser.getControl(name='query').value = "COURSE1"
     656  >>> browser.getControl('Search').click()
     657  >>> print browser.contents
     658  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
     659  ...faculties/TF/TD/courses/COURSE1">COURSE1</a>
     660  ...
     661
    654662  >>> browser.getControl(name='query').value = "Nonsense"
    655663  >>> browser.getControl('Search').click()
    656664  >>> 'Search Results' in browser.contents
    657665  False
     666
     667  >>> browser.getControl(name='query').value = ""
     668  >>> browser.getControl('Search').click()
     669  >>> 'Empty search string' in browser.contents
     670  True
    658671
    659672Deleting courses
     
    808821  ...
    809822
     823Searching certificates
     824----------------------
     825
     826  >>> browser.open('http://localhost/myuniversity/faculties/search')
     827  >>> browser.getControl(name='query').value = "My renamed cert"
     828  >>> browser.getControl('Search').click()
     829  >>> print browser.contents
     830  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
     831  ...faculties/TF/TD/certificates/CERT1">CERT1</a>
     832  ...
     833
     834  >>> browser.open('http://localhost/myuniversity/faculties/search')
     835  >>> browser.getControl(name='query').value = "CERT1"
     836  >>> browser.getControl('Search').click()
     837  >>> print browser.contents
     838  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
     839  ...faculties/TF/TD/certificates/CERT1">CERT1</a>
     840  ...
    810841
    811842Deleting certificates
     
    9821013  ...
    9831014
     1015Searching certificatecourses
     1016----------------------------
     1017
     1018  >>> browser.open('http://localhost/myuniversity/faculties/search')
     1019  >>> browser.getControl(name='query').value = "COURSE1"
     1020  >>> browser.getControl('Search').click()
     1021  >>> print browser.contents
     1022  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
     1023  ...faculties/TF/TD/certificates/CERT1/COURSE1_200">COURSE1</a>
     1024  ...
     1025
     1026  >>> browser.getControl(name='query').value = "*"
     1027  >>> browser.getControl('Search').click()
     1028  >>> 'Search string not allowed' in browser.contents
     1029  True
    9841030
    9851031Deleting certificatecourses
Note: See TracChangeset for help on using the changeset viewer.