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 Log in to VIVO
comment Must login as site admin
type loginName testAdmin@cornell.edu
type loginPassword Password
clickAndWait loginForm
comment Navigate to Index
clickAndWait link=Index
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 //h3[@id='authorInAuthorship']/a/img
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 //h3[@id='authorInAuthorship']/a/img
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 Please select an existing publication in the Title field or enter a new one.
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 id=title Nintendo O.K. for Kids
type id=book Raising Children in the 21st Century
clickAndWait submit
assertTitle Furter, Frank
comment Verify author info is there
verifyTextPresent chapter
verifyElementPresent link=Nintendo O.K. for Kids
verifyTextPresent Nintendo O.K. for Kids.  Raising Children in the 21st Century. Ed. Mouse, Minnie.  New York: Marcel Decker. 2009
comment Add Image, validating field first
clickAndWait link=Nintendo O.K. for Kids
clickAndWait //img[@alt='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 //img[@alt='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 //img[@alt='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 //img[@alt='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 css=img.add-individual
assertTitle Edit
verifyTextPresent Nintendo O.K. for Kids
verifyTextPresent Manage Web Pages
verifyTextPresent This individual currently has no web pages specified. Add a new web page by clicking on the button below.
clickAndWait id=showAddForm
assertTitle Edit
verifyTextPresent Add webpage for Nintendo O.K. for Kids
verifyTextPresent URL Type
verifyTextPresent URL
verifyTextPresent Webpage Name
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait css=img.add-individual
assertTitle Edit
clickAndWait id=showAddForm
assertTitle Edit
clickAndWait id=submit
assertTitle Edit
verifyTextPresent url: This field must not be empty.
verifyTextPresent urlType: This field must not be empty.
select name=urlType label=Other
clickAndWait id=submit
assertTitle Edit
verifyTextPresent url: This field must not be empty.
type url http://www.nintendo.com/
clickAndWait submit
verifyTextPresent urlType: This field must not be empty.
select name=urlType label=Other
type url http://www.nintendo.com/
clickAndWait id=submit
assertTitle Nintendo O.K. for Kids
clickAndWait css=img.add-individual
assertTitle Edit
verifyTextPresent Manage Web Pages
clickAndWait link=Edit
assertTitle Edit
type url
type id=anchor Company Homepage
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Author, validating field first
clickAndWait //h3[@id='informationResourceInAuthorship']/a/img
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 //h3[@id='informationResourceInAuthorship']/a/img
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 id=submit
assertTitle Edit
verifyTextPresent Furter, Frank
verifyTextPresent Mouse, Minnie M
clickAndWait link=Return to Publication
assertTitle Nintendo O.K. for Kids
comment Add Start Page, validating field first
clickAndWait //h3[@id='pageStart']/a/img
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 //h3[@id='pageStart']/a/img
assertTitle Edit
waitForElementPresent tinymce
type tinymce 123
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Chapter, validating field first
clickAndWait //h3[@id='chapter']/a/img
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
pause 10000
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='chapter']/a/img
assertTitle Edit
waitForElementPresent tinymce
type tinymce 15
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add End Page, validating field first
clickAndWait //h3[@id='pageEnd']/a/img
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 //h3[@id='pageEnd']/a/img
assertTitle Edit
waitForElementPresent tinymce
type tinymce 144
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Features, validating field first
clickAndWait //h3[@id='features']/a/img
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 //h3[@id='features']/a/img
assertTitle Edit
select objectVar label=Mouse, Minnie M
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Abstract, validating field first
clickAndWait //h3[@id='abstract']/a/img
assertTitle Edit
verifyTextPresent Add new entry for: abstract
verifyTextPresent A summary of the resource.
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='abstract']/a/img
assertTitle Edit
waitForElementPresent tinymce
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 Edition, validating field first
clickAndWait //h3[@id='edition']/a/img
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 //h3[@id='edition']/a/img
assertTitle Edit
waitForElementPresent tinymce
type tinymce First
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Presented At, validating field first
clickAndWait //h3[@id='presentedAt']/a/img
assertTitle Edit
verifyTextPresent Select an existing Event for Nintendo O.K. for Kids
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='presentedAt']/a/img
assertTitle Edit
clickAndWait id=offerCreate
assertTitle Edit
select typeOfNew label=Conference (bibo)
clickAndWait submit
assertTitle Edit
type name Kids Now!
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Status, validating field first
clickAndWait //h3[@id='status']/a/img
assertTitle Edit
verifyTextPresent Add an entry to: status
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='status']/a/img
assertTitle Edit
select objectVar label=published
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Has Part, validating field first
clickAndWait //h3[@id='hasPart']/a/img
assertTitle Edit
verifyTextPresent Select an existing Document Part for Nintendo O.K. for Kids
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='hasPart']/a/img
assertTitle Edit
select typeOfNew label=Document Part (bibo)
clickAndWait id=offerCreate
assertTitle Edit
type name Kids Now Conference Proceedings
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Part Of, validating field first
clickAndWait //h3[@id='partOf']/a/img
assertTitle Edit
verifyTextPresent Select an existing Document for Nintendo O.K. for Kids
verifyTextPresent Relates a component of something to the whole thing.
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='partOf']/a/img
assertTitle Edit
select typeOfNew label=Book (bibo)
clickAndWait //input[@id='submit' and @value='Add a new item of this type']
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 //h3[@id='geographicFocus']/a/img
assertTitle Edit
verifyTextPresent Select an existing Geographic Region for Nintendo O.K. for Kids
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='geographicFocus']/a/img
assertTitle Edit
type id=object United States of
click id=ui-active-menuitem
clickAndWait id=submit
assertTitle Nintendo O.K. for Kids
comment Add OCLCNUM validating field first
clickAndWait //h3[@id='oclcnum']/a/img
assertTitle Edit
clickAndWait link=Cancel
pause 10000
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='oclcnum']/a/img
assertTitle Edit
waitForElementPresent tinymce
type tinymce 1234-5678-90
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add PMID, validating field first
clickAndWait //h3[@id='pmid']/a/img
assertTitle Edit
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
pause 5000
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='pmid']/a/img
assertTitle Edit
waitForElementPresent tinymce
type tinymce 123456789
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Number of Pages, validating field first
clickAndWait //h3[@id='numPages']/a/img
assertTitle Edit
verifyTextPresent Add new entry for: number of pages
clickAndWait link=Cancel
pause 5000
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='numPages']/a/img
assertTitle Edit
waitForElementPresent tinymce
type tinymce 22
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Subject Area, validating field first
clickAndWait //h3[@id='hasSubjectArea']/a/img
assertTitle Edit
verifyTextPresent Manage Concepts
verifyTextPresent There are currently no concepts specified.
verifyElementPresent link=Return to Profile Page
clickAndWait link=Return to Profile Page
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='hasSubjectArea']/a/img
assertTitle Edit
click id=showAddFormButton
type id=searchTerm Child Development
click id=searchButton
clickAndWait link=exact:Can't find the concept you want? Create your own.
assertTitle Edit
type id=relatedIndLabel Child Development
clickAndWait id=submit
assertTitle Edit
clickAndWait link=Return to Profile Page
assertTitle Nintendo O.K. for Kids
comment Add Keywords, validating field first
clickAndWait //h3[@id='freetextKeyword']/a/img
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 //h3[@id='freetextKeyword']/a/img
assertTitle Edit
waitForElementPresent tinymce
type tinymce Children
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add Reproduced In, validating field first
clickAndWait //h3[@id='reproducedIn']/a/img
assertTitle Edit
verifyTextPresent Select an existing Document for Nintendo O.K. for Kids
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='reproducedIn']/a/img
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 //h3[@id='reproduces']/a/img
verifyTextPresent Add an entry to: reproduces
assertTitle Edit
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='reproduces']/a/img
assertTitle Edit
select id=objectVar label=Kids Now Conference Proceedings
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Add documentation for
clickAndWait css=a.add-documentationFor > img.add-individual
assertTitle Edit
click css=label
verifyTextPresent Add an entry to: documentation for
verifyTextPresent Documentation For Name *
verifyElementPresent link=Cancel
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-documentationFor > img.add-individual
assertTitle Edit
type id=object Kids Now Conference
clickAndWait id=submit
assertTitle Nintendo O.K. for Kids
comment Add has global citation frequency
clickAndWait css=a.add-hasGlobalCitationFrequency > img.add-individual
assertTitle Edit
verifyTextPresent Select an existing Global Citation Count for Nintendo O.K. for Kids
verifyTextPresent There are no entries in the system from which to select.
verifyTextPresent Please create a new entry.
verifyElementPresent link=Cancel
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-hasGlobalCitationFrequency > img.add-individual
assertTitle Edit
clickAndWait id=offerCreate
assertTitle Edit
type id=name 99
clickAndWait id=submit
assertTitle Nintendo O.K. for Kids
comment Add presented at
clickAndWait css=a.add-presentedAt > img.add-individual
assertTitle Edit
clickAndWait id=offerCreate
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-presentedAt > img.add-individual
assertTitle Edit
clickAndWait id=offerCreate
assertTitle Edit
type id=name Kids Now Conference
clickAndWait id=submit
assertTitle Nintendo O.K. for Kids
comment Add part of
clickAndWait css=a.add-partOf > img.add-individual
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 above:
verifyElementPresent link=Cancel
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-partOf > img.add-individual
assertTitle Edit
assertTitle Nintendo O.K. for Kids
comment Add cited by
clickAndWait css=a.add-citedBy > img.add-individual
assertTitle Edit
verifyTextPresent If you don't find the appropriate entry on the selection list above:
verifyElementPresent link=Cancel
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-citedBy > img.add-individual
assertTitle Edit
clickAndWait id=offerCreate
assertTitle Edit
type id=name Kids Today
clickAndWait id=submit
assertTitle Nintendo O.K. for Kids
comment cites
clickAndWait css=a.add-cites > img.add-individual
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 above:
verifyElementPresent link=Cancel
clickAndWait id=offerCreate
assertTitle Edit
type id=name Kids of the 21st Century
clickAndWait id=submit
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-cites > img.add-individual
assertTitle Edit
clickAndWait id=offerCreate
assertTitle Edit
type id=name Children Today
clickAndWait id=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
verifyElementPresent link=Furter, Frank
verifyElementPresent link=Mouse, Minnie M
verifyTextPresent 1
verifyTextPresent 9
verifyTextPresent 123
verifyTextPresent 144
verifyTextPresent Mouse, Minnie M
verifyElementPresent link=Marcel Decker
verifyTextPresent Marcel Decker
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
verifyTextPresent First
verifyElementPresent link=Kids Now!
verifyTextPresent Kids Now!
verifyElementPresent link=published
verifyTextPresent published
verifyElementPresent link=Kids Now Conference Proceedings
verifyTextPresent Kids Now Conference Proceedings
verifyElementPresent link=exact:Nintendo: Good or Bad for Kids?
verifyTextPresent Nintendo: Good or Bad for Kids?
verifyElementPresent link=United States of America
verifyTextPresent 2009
verifyTextPresent 123456789
verifyTextPresent 1234-5678-90
verifyTextPresent 15
verifyTextPresent 22
verifyElementPresent link=Child Development
verifyTextPresent Child Development
verifyTextPresent Children
verifyElementPresent link=Nintendo: Good or Bad for Kids?
verifyTextPresent Nintendo: Good or Bad for Kids?
verifyElementPresent link=Kids Now Conference Proceedings
verifyTextPresent Kids Now Conference Proceedings
comment Verify Index is correct
clickAndWait link=Index
verifyTextPresent people
verifyTextPresent Faculty Member (1)
verifyTextPresent Person (2)
verifyTextPresent research
verifyTextPresent Book (1)
verifyTextPresent Chapter (1)
verifyTextPresent Concept (1)
verifyTextPresent events
verifyTextPresent Conference (1)
verifyTextPresent organizations
verifyTextPresent Organization (1)
verifyTextPresent Publisher (1)
comment Navigate back to Frank Furter
clickAndWait link=Index
clickAndWait link=Faculty Member
assertTitle Faculty Member
clickAndWait link=Furter, Frank
assertTitle Furter, Frank
comment Verify Book Chapter is there
verifyTextPresent chapter
verifyElementPresent link=Nintendo O.K. for Kids
verifyTextPresent Nintendo O.K. for Kids.  Raising Children in the 21st Century. Ed. Mouse, Minnie M.  New York: Marcel Decker. 123-144. 2009
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO