CreateCourse
comment Validate adding Course
deleteAllVisibleCookies
open /vivo/
assertTitle VIVO
comment Must be logged off to start
clickAndWait link=Log in
assertTitle Log in to VIVO
comment Must login as the site admin
type loginName testAdmin
type loginPassword Password
clickAndWait loginForm
clickAndWait link=Site Admin
assertTitle VIVO Site Administration
verifyTextPresent Data Input
comment Select to add then cancel right away
select VClassURI label=Course (core)
clickAndWait submit
assertTitle Edit
verifyTextPresent Create a new Course
clickAndWait link=Cancel
assertTitle VIVO Site Administration
comment Select to add then enter empty field
select VClassURI label=Course (core)
clickAndWait submit
assertTitle Edit
verifyTextPresent Create a new Course
clickAndWait submit
assertTitle Edit
verifyTextPresent This field must not be empty.
comment Now enter something in the field
type label Introduction to Primate Health
clickAndWait submit
assertTitle Introduction to Primate Health
comment Test overview entry (image and webpage have been tested)
clickAndWait //h3[@id='description']/a/img
assertTitle Edit
verifyTextPresent Add new entry for: description
type tinymce Learn the basics about the general health of primates.
clickAndWait submit
assertTitle Introduction to Primate Health
clickAndWait //h3[@id='courseOfferedBy']/a/img
assertTitle Edit
verifyTextPresent Add an entry to: offered by
clickAndWait submit
assertTitle Introduction to Primate Health
clickAndWait //h3[@id='organizer']/a/img
assertTitle Edit
clickAndWait submit
assertTitle Introduction to Primate Health
clickAndWait //h3[@id='prerequisiteFor']/a/img
assertTitle Edit
verifyTextPresent Add an entry to: prerequisite for
clickAndWait submit
assertTitle Introduction to Primate Health
clickAndWait //h3[@id='contactInformation']/a/img
assertTitle Edit
verifyTextPresent Add new entry for: contact information
type tinymce ME Tarzan at metarzan@primates.edu or 555-555-5553
clickAndWait submit
assertTitle Introduction to Primate Health
comment Test research entry
clickAndWait //h3[@id='geographicFocus']/a/img
assertTitle Edit
select objectVar label=Africa
clickAndWait submit
assertTitle Introduction to Primate Health
comment Test location entry
clickAndWait //h3[@id='hasGeographicLocation']/a/img
assertTitle Edit
verifyTextPresent Select an existing Geographic Location for Introduction to Primate Health
select objectVar label=Liberia
clickAndWait submit
assertTitle Introduction to Primate Health
comment Test time entry
clickAndWait //h3[@id='dateTimeInterval']/a
assertTitle Edit
verifyTextPresent Create date time interval for Introduction to Primate Health
type startField.year 2007
select startField.month label=9
select startField.day label=1
type endField.year 2007
select endField.month label=12
select endField.day label=15
clickAndWait submit
assertTitle Introduction to Primate Health
comment Test additional document info
clickAndWait //h3[@id='presents']/a/img
assertTitle Edit
select typeOfNew label=Webpage (bibo)
verifyTextPresent Select an existing Document for Introduction to Primate Health
clickAndWait //input[@id='submit' and @value='add a new item to this list']
assertTitle Edit
verifyTextPresent Edit "related documents" entry for Introduction to Primate Health
type name http://primatehealthintro.cornell.edu
clickAndWait submit
assertTitle Introduction to Primate Health
comment Test other entry
clickAndWait //h3[@id='includesEvent']/a/img
assertTitle Edit
select objectVar label=Primate Health Check
clickAndWait submit
assertTitle Introduction to Primate Health
clickAndWait //h3[@id='hasSubjectArea']/a/img
assertTitle Edit
verifyTextPresent Select an existing Subject Area for Introduction to Primate Health
clickAndWait submit
assertTitle Edit
type name Animal Health
clickAndWait submit
assertTitle Introduction to Primate Health
clickAndWait //h3[@id='courseCredits']/a/img
assertTitle Edit
type tinymce 9
clickAndWait submit
assertTitle Introduction to Primate Health
comment Verify everything entered is displaying properly
verifyTextPresent Primate College of America
verifyTextPresent Learn the basics about the general health of primates.
verifyTextPresent Faculty, Jane Assistant Professor
verifyTextPresent Introduction to Primate Health
verifyTextPresent ME Tarzan at metarzan@primates.edu or 555-555-5553
verifyTextPresent Africa
verifyTextPresent Liberia
verifyTextPresent September 1, 2007 - December 15, 2007
verifyTextPresent http://primatehealthintro.cornell.edu
verifyTextPresent Introduction to Primate Health
verifyTextPresent Primate Health Check
verifyTextPresent Animal Health
verifyTextPresent 9
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO