ValidateFields
deleteAllVisibleCookies
setTimeout 100000
comment Add Book Chapter to validate fields
open /vivo/
assertTitle VIVO
comment Must not be logged in already
clickAndWait link=Log in
assertTitle VIVO
comment Must login as site admin
type loginName testAdmin
type loginPassword Password
clickAndWait loginForm
assertTitle VIVO
comment Navigate to Index
clickAndWait link=Index
assertTitle Index to VIVO Contents
comment Navigate to Frank Furter
clickAndWait link=Faculty Member
assertTitle Faculty Member
clickAndWait link=Furter, Frank
assertTitle Furter, Frank
comment Select to add a Publication
clickAndWait //div[@id='authorInAuthorship']/a
assertTitle Edit
verifyTextPresent Create publication entry for Furter, Frank
verifyTextPresent Publication Type
comment Cancel out before doing anything
clickAndWait link=Cancel
assertTitle Furter, Frank
comment Select to add a Publication again
clickAndWait //div[@id='authorInAuthorship']/a
assertTitle Edit
verifyTextPresent Create publication entry for Furter, Frank
verifyTextPresent Publication Type
comment Select to add a book chapter
select typeSelector label=Chapter
comment Cancel out before entering in title
click link=Cancel
comment Select to add an book chapter again, this time without a title
assertTitle Edit
verifyTextPresent Create publication entry for Furter, Frank
verifyTextPresent Publication Type
select typeSelector label=Chapter
verifyTextPresent Title
clickAndWait submit
assertTitle Edit
verifyTextPresent Must specify a publication title.
comment Select to add a Book Chapter again, this time do it right
assertTitle Edit
verifyTextPresent Create publication entry for Furter, Frank
verifyTextPresent Publication Type
select typeSelector label=Chapter
verifyTextPresent Title
type relatedIndLabel Nintendo O.K. for Kids
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Verify author info is there
verifyElementPresent link=Furter, Frank
comment Add Image, validating field first
clickAndWait link=add
assertTitle Upload image for Nintendo O.K. for Kids
verifyTextPresent Photo Upload
verifyTextPresent Current Photo
verifyTextPresent Upload a photo (JPEG, GIF or PNG)
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait link=add
assertTitle Upload image for Nintendo O.K. for Kids
type datafile C:\VIVO\vivo\utilities\acceptance-tests\suites\AddPublications\
intendo-logo.jpg
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait link=add
assertTitle Upload image for Nintendo O.K. for Kids
type datafile C:\VIVO\vivo\utilities\acceptance-tests\suites\AddPublications\nintendo-logo.jpg
clickAndWait //input[@value='Upload photo']
assertTitle Crop Photo for Nintendo O.K. for Kids
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait link=add
assertTitle Upload image for Nintendo O.K. for Kids
type datafile C:\VIVO\vivo\utilities\acceptance-tests\suites\AddPublications\nintendo-logo.jpg
clickAndWait //input[@value='Upload photo']
assertTitle Crop Photo for Nintendo O.K. for Kids
clickAndWait //input[@value='Save photo']
assertTitle Nintendo O.K. for Kids
comment Add Web Page, validating field first
clickAndWait //div[@id='dprop-vitro-links']/a
assertTitle Edit
verifyTextPresent Create primary link for Nintendo O.K. for Kids
verifyTextPresent URL
verifyTextPresent Link anchor text
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='dprop-vitro-links']/a
assertTitle Edit
clickAndWait submit
assertTitle Edit
verifyTextPresent This field must not be empty.
type url http://www.nintendo.com/
type anchor
clickAndWait submit
assertTitle Edit
verifyTextPresent This field must not be empty.
type url
type anchor Company Homepage
clickAndWait submit
assertTitle Edit
verifyTextPresent This field must not be empty.
type url http://www.nintendo.com/
type anchor Company Homepage
clickAndWait submit
comment Add Author, validating field first
clickAndWait //div[@id='informationResourceInAuthorship']/a
assertTitle Edit
verifyTextPresent Nintendo O.K. for Kids
verifyTextPresent Manage Authors
verifyTextPresent Furter, Frank
clickAndWait link=Return to Publication
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='informationResourceInAuthorship']/a
assertTitle Edit
click showAddFormButton
verifyTextPresent Add an Author
verifyTextPresent Last name
click link=Cancel
click showAddFormButton
type lastName Mouse
type firstName Minnie
type middleName M
clickAndWait submit
assertTitle Edit
verifyTextPresent Furter, Frank
verifyTextPresent Mouse, Minnie M
clickAndWait link=Return to Publication
assertTitle Nintendo O.K. for Kids
comment Add Editor, validating field first
clickAndWait //div[@id='editor']/a
assertTitle Edit
verifyTextPresent Select an existing Person for Nintendo O.K. for Kids
verifyTextPresent A person having managerial and sometimes policy-making responsibility for the editorial part of a publishing firm or of a newspaper, magazine, or other publication.
verifyTextPresent If you don't find the appropriate entry on the selection list:
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='editor']/a
assertTitle Edit
select objectVar label=Mouse, Minnie M
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Volume, validating field first
clickAndWait //div[@id='volume']/a
assertTitle Edit
verifyTextPresent Add new entry for: volume
verifyTextPresent A volume number.
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='volume']/a
assertTitle Edit
type tinymce 1
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Number, validating field first
clickAndWait //div[@id='number']/a
assertTitle Edit
verifyTextPresent Add new entry for: number
verifyTextPresent A generic item or document number. Not to be confused with issue number. A barcode, perhaps?
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='number']/a
assertTitle Edit
type tinymce 9
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Start Page, validating field first
clickAndWait //div[@id='pageStart']/a
assertTitle Edit
verifyTextPresent Add new entry for: start page
verifyTextPresent Starting page number within a continuous page range.
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='pageStart']/a
assertTitle Edit
type tinymce 123
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Chapter, validating field first
clickAndWait //div[@id='chapter']/a
assertTitle Edit
verifyTextPresent Add new entry for: chapter
verifyTextPresent A chapter number. NOT to be used for the chapter title, which should be entered in the "name" field instead (the field in bold at the top of the page)
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='chapter']/a
assertTitle Edit
type tinymce 15
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add End Page, validating field first
clickAndWait //div[@id='pageEnd']/a
assertTitle Edit
verifyTextPresent Add new entry for: end page
verifyTextPresent Ending page number within a continuous page range.
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='pageEnd']/a
assertTitle Edit
type tinymce 144
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Features, validating field first
clickAndWait //div[@id='features']/a
assertTitle Edit
verifyTextPresent Add an entry to: features
verifyTextPresent This relates an information resource to a person it features.
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='features']/a
assertTitle Edit
select objectVar label=Mouse, Minnie M
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Publisher, validating field first
clickAndWait //div[@id='publisher']/a
assertTitle Edit
verifyTextPresent Select an existing Organization for Nintendo O.K. for Kids
verifyTextPresent There are no entries in the system to select from.
verifyTextPresent Please create a new entry.
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='publisher']/a
assertTitle Edit
select typeOfNew label=Publisher (core)
clickAndWait submit
assertTitle Edit
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='publisher']/a
assertTitle Edit
select typeOfNew label=Publisher (core)
clickAndWait submit
assertTitle Edit
type name Marcel Decker
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Place of Publication, validating field first
clickAndWait //div[@id='placeOfPublication']/a
assertTitle Edit
verifyTextPresent Add new entry for: place of publication
verifyTextPresent City in which the publication was done.
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='placeOfPublication']/a
assertTitle Edit
type tinymce New York
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Abstract, validating field first
clickAndWait //div[@id='abstract']/a
assertTitle Edit
verifyTextPresent Add new entry for: abstract
verifyTextPresent A summary of the resource.
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='abstract']/a
assertTitle Edit
type tinymce This is a chapter in a book that provides various professional viewpoints as to the impact of Nintendo usage on kids.
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Published In, validating field first
clickAndWait //div[@id='hasPublicationVenue']/a
assertTitle Edit
verifyTextPresent Select an existing Collection for Nintendo O.K. for Kids
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='hasPublicationVenue']/a
assertTitle Edit
select typeOfNew label=Collection (bibo)
clickAndWait submit
assertTitle Edit
type name Raising Children in the 21st Century
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Edition, validating field first
clickAndWait //div[@id='edition']/a
assertTitle Edit
verifyTextPresent Add new entry for: edition
verifyTextPresent The name defining a special edition of a document. Normally its a literal value composed of a version number and words.
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='edition']/a
assertTitle Edit
type tinymce First
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Presented At, validating field first
clickAndWait //div[@id='presentedAt']/a
assertTitle Edit
verifyTextPresent Select an existing Event for Nintendo O.K. for Kids
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='presentedAt']/a
assertTitle Edit
select typeOfNew label=Conference (bibo)
clickAndWait //input[@id='submit' and @value='add a new item to this list']
assertTitle Edit
type name Kids Now!
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Status, validating field first
clickAndWait //div[@id='status']/a
assertTitle Edit
verifyTextPresent Add an entry to: status
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='status']/a
assertTitle Edit
select objectVar label=published
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Has Part, validating field first
clickAndWait //div[@id='hasPart']/a
assertTitle Edit
verifyTextPresent Select an existing Document Part for Nintendo O.K. for Kids
verifyTextPresent If you don't find the appropriate entry on the selection list:
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='hasPart']/a
assertTitle Edit
select typeOfNew label=Document Part (bibo)
clickAndWait //input[@id='submit' and @value='add a new item to this list']
assertTitle Edit
type name Kids Now Conference Proceedings
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Part Of, validating field first
clickAndWait //div[@id='partOf']/a
assertTitle Edit
verifyTextPresent Select an existing Document for Nintendo O.K. for Kids
verifyTextPresent Relates a component of something to the whole thing.
verifyTextPresent If you don't find the appropriate entry on the selection list:
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='partOf']/a
assertTitle Edit
select typeOfNew label=Book (bibo)
clickAndWait //input[@id='submit' and @value='add a new item to this list']
assertTitle Edit
type name Nintendo: Good or Bad for Kids?
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Domestic Geo Focus, validating field first
clickAndWait //div[@id='geographicFocus']/a
assertTitle Edit
verifyTextPresent Select an existing Geographic Region for Nintendo O.K. for Kids
verifyTextPresent If you don't find the appropriate entry on the selection list:
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='geographicFocus']/a
assertTitle Edit
select objectVar label=the United States of America
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Year, validating field first
clickAndWait //div[@id='year']/a
assertTitle Edit
verifyTextPresent Add new entry for: year
verifyTextPresent Use when start year and end year are not appropriate display level
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='year']/a
assertTitle Edit
type tinymce 2009
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Year and Month, validating field first
clickAndWait //div[@id='yearMonth']/a
assertTitle Edit
verifyTextPresent Add new entry for: year and month
verifyTextPresent Use when a single year-month value is appropriate rather than a separate start and end display level
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='yearMonth']/a
assertTitle Edit
type tinymce March 2009
clickAndWait submit
assertTitle Edit
verifyTextPresent Please correct this value: must be a valid year and month (YYYY-MM).
type tinymce 2009-03
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add OCLCNUM validating field first
clickAndWait //div[@id='oclcnum']/a
assertTitle Edit
verifyTextPresent Add new entry for: oclcnum
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='oclcnum']/a
assertTitle Edit
type tinymce 1234-5678-90
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add PMID, validating field first
clickAndWait //div[@id='pmid']/a
assertTitle Edit
verifyTextPresent Add new entry for: pmid
verifyTextPresent A PMID (PubMed Identifier or PubMed Unique Identifier) is a unique number assigned to each PubMed citation of life sciences and biomedical scientific journal articles.
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='pmid']/a
assertTitle Edit
type tinymce 123456789
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Number of Pages, validating field first
clickAndWait //div[@id='numPages']/a
assertTitle Edit
verifyTextPresent Add new entry for: number of pages
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='numPages']/a
assertTitle Edit
type tinymce 22
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Subject Area, validating field first
clickAndWait //div[@id='hasSubjectArea']/a
assertTitle Edit
verifyTextPresent Select an existing Subject Area for Nintendo O.K. for Kids
verifyTextPresent There are no entries in the system to select from.
verifyTextPresent Please create a new entry.
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='hasSubjectArea']/a
assertTitle Edit
clickAndWait submit
assertTitle Edit
verifyTextPresent Edit "subject area" entry for Nintendo O.K. for Kids
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='hasSubjectArea']/a
assertTitle Edit
clickAndWait submit
assertTitle Edit
type name Child Development
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Keywords, validating field first
clickAndWait //div[@id='freetextKeyword']/a
assertTitle Edit
verifyTextPresent Add new entry for: keywords
verifyTextPresent Intended for a word or short phrase only where no instance of a controlled vocabulary can be identified. Can also be used to help in highlighting subtle difference in work.
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='freetextKeyword']/a
assertTitle Edit
type tinymce Children
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Reproduced In, validating field first
clickAndWait //div[@id='reproducedIn']/a
assertTitle Edit
verifyTextPresent Select an existing Document for Nintendo O.K. for Kids
verifyTextPresent If you don't find the appropriate entry on the selection list:
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='reproducedIn']/a
assertTitle Edit
select objectVar label=Nintendo: Good or Bad for Kids?
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Reproduces, validating field first
clickAndWait //div[@id='reproduces']/a
verifyTextPresent Add an entry to: reproduces
assertTitle Edit
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='reproduces']/a
assertTitle Edit
select objectVar label=Kids Now Conference Proceedings
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Verify all fields display properly
verifyElementPresent //img[@title='click to view larger image']
verifyElementPresent link=Company Homepage
verifyTextPresent Company Homepage (primary link)
verifyElementPresent link=Furter, Frank
verifyElementPresent link=Mouse, Minnie M
verifyTextPresent Mouse, Minnie M | Person
verifyTextPresent 1
verifyTextPresent 9
verifyTextPresent 123
verifyTextPresent 15
verifyTextPresent 144
verifyTextPresent Mouse, Minnie M | Person
verifyElementPresent link=Marcel Decker
verifyTextPresent Marcel Decker | Publisher
verifyTextPresent New York
verifyTextPresent This is a chapter in a book that provides various professional viewpoints as to the impact of Nintendo usage on kids.
verifyElementPresent link=Raising Children in the 21st Century
verifyTextPresent Raising Children in the 21st Century | Collection
verifyTextPresent First
verifyElementPresent link=Kids Now!
verifyTextPresent Kids Now! | Conference
verifyElementPresent link=published
verifyTextPresent published | Document Status
verifyElementPresent link=Kids Now Conference Proceedings
verifyTextPresent Kids Now Conference Proceedings | Document Part
verifyElementPresent link=exact:Nintendo: Good or Bad for Kids?
verifyTextPresent Nintendo: Good or Bad for Kids? | Book
verifyElementPresent link=the United States of America
verifyTextPresent 2009
verifyTextPresent 2009-03
verifyTextPresent 123456789
verifyTextPresent 1234-5678-90
verifyTextPresent 22
verifyElementPresent link=Child Development
verifyTextPresent Child Development | Subject Area
verifyTextPresent Children
verifyElementPresent link=Nintendo: Good or Bad for Kids?
verifyTextPresent Nintendo: Good or Bad for Kids? | Book
verifyElementPresent link=Kids Now Conference Proceedings
verifyTextPresent Kids Now Conference Proceedings | Document Part
comment Verify Index is correct
clickAndWait link=Index
assertTitle Index to VIVO Contents
verifyTextPresent people
verifyTextPresent Faculty Member (1)
verifyTextPresent Person (2)
verifyTextPresent topics
verifyTextPresent Subject Area (1)
verifyTextPresent events
verifyTextPresent Conference (1)
verifyTextPresent organizations
verifyTextPresent Organization (1)
verifyTextPresent Publisher (1)
verifyTextPresent publications
verifyTextPresent Book (1)
verifyTextPresent Chapter (1)
comment Navigate back to Frank Furter
clickAndWait link=Index
assertTitle Index to VIVO Contents
clickAndWait link=Faculty Member
assertTitle Faculty Member
clickAndWait link=Furter, Frank
assertTitle Furter, Frank
comment Verify Book Chapter is there
verifyElementPresent link=Nintendo O.K. for Kids
verifyTextPresent Nintendo O.K. for Kids | Chapter
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO