Changeset 4960 for main/waeup.sirp/trunk


Ignore:
Timestamp:
1 Feb 2010, 16:22:52 (15 years ago)
Author:
uli
Message:

Remove quick-import browser tests.

File:
1 edited

Legend:

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

    r4932 r4960  
    867867--------------------
    868868
    869 As the uploaded file conforms with what we expect from a faculty-CSV
    870 file, we can import it. To do this we click the ``Import CSV data``
    871 link:
    872 
    873   >>> browser.open('http://localhost/myuniversity/datacenter')
    874   >>> browser.getLink('Import CSV data').click()
    875 
    876 Here we get all importable files listed:
    877 
    878   >>> print browser.contents
    879   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    880   ...The following files are available for import:...
    881   ...mycertcourses_zope.mgr.csv...Certificate Course Importer...
    882   ...mycertificates_zope.mgr.csv...Certificate Importer...
    883   ...mycourses_zope.mgr.csv...Course Importer...
    884   ...mydepartments_zope.mgr.csv...Department Importer...
    885   ...myfaculties_zope.mgr.csv...Faculty Importer...
    886   ...
    887 
    888 As we can see, the files are analyzed on-the-fly so the system can
    889 tell us what kind of importer is available for each.
    890 
    891 We do import the faculty file by clicking on ``Import!`` next to the
    892 appropriate file:
    893 
    894   >>> facimport = browser.getControl('Import!', index=4)
    895   >>> facimport.click()
    896 
    897   >>> print browser.contents
    898   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    899   ...Successfully imported: myfaculties_zope.mgr.csv...
    900   ...
    901 
    902 We just created two new faculties:
    903 
    904   >>> browser.open('http://localhost/myuniversity/faculties/')
    905   >>> print browser.contents
    906   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    907   ...<h2>Registered Faculties</h2>...
    908   ...Arts...
    909   ...Sciences...
    910   ...
    911 
    912 We can also import the department data:
    913 
    914   >>> browser.open('http://localhost/myuniversity/datacenter')
    915   >>> browser.getLink('Import CSV data').click()
    916   >>> browser.getControl('Import!', index=3).click()
    917 
    918   >>> print browser.contents
    919   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    920   ...Successfully imported: mydepartments_zope.mgr.csv...
    921   ...
    922 
    923 We can also import the course data:
    924 
    925   >>> browser.open('http://localhost/myuniversity/datacenter')
    926   >>> browser.getLink('Import CSV data').click()
    927   >>> browser.getControl('Import!', index=2).click()
    928 
    929   >>> print browser.contents
    930   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    931   ...Successfully imported: mycourses_zope.mgr.csv...
    932   ...
    933 
    934 We can also import the certificate data:
    935 
    936   >>> browser.open('http://localhost/myuniversity/datacenter')
    937   >>> browser.getLink('Import CSV data').click()
    938   >>> browser.getControl('Import!', index=1).click()
    939 
    940   >>> print browser.contents
    941   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    942   ...Successfully imported: mycertificates_zope.mgr.csv...
    943   ...
    944 
    945 We can also import certificate courses:
    946 
    947   >>> browser.open('http://localhost/myuniversity/datacenter')
    948   >>> browser.getLink('Import CSV data').click()
    949   >>> browser.getControl('Import!', index=0).click()
    950 
    951   >>> print browser.contents
    952   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    953   ...Successfully imported: mycertcourses_zope.mgr.csv...
    954   ...
     869The import of CSV files is described in batchprocessing.txt.
     870
    955871
    956872Clean up:
Note: See TracChangeset for help on using the changeset viewer.