AddBook
deleteAllVisibleCookies
setTimeout 100000
comment Add Book
open /vivo/
assertTitle VIVO
comment Must not be logged in already
clickAndWait link=Log in
assertTitle VIVO Site Administration
comment Must login as site admin
type loginName testAdmin
type loginPassword Password
clickAndWait loginForm
assertTitle VIVO Site Administration
comment Navigate to Index
clickAndWait link=Index
assertTitle Index to VIVO Contents
comment Verify that no books currently exist
verifyTextNotPresent Book
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 Select to add a book
select typeSelector label=Book
verifyTextPresent Book Title
type relatedIndLabel Nintendo: Good or Bad for Kids?
clickAndWait submit
assertTitle Nintendo: Good or Bad for Kids?
comment Verify author info is there
verifyElementPresent link=Furter, Frank
comment Add details for Book
clickAndWait //div[@id='publisher']/a
assertTitle Edit
select typeOfNew label=Publisher (core)
clickAndWait submit
assertTitle Edit
type name Putnam
clickAndWait submit
assertTitle exact:Nintendo: Good or Bad for Kids?
clickAndWait //div[@id='placeOfPublication']/a
assertTitle Edit
type tinymce New York
clickAndWait submit
assertTitle exact:Nintendo: Good or Bad for Kids?
clickAndWait //div[@id='status']/a
assertTitle Edit
select objectVar label=in press
clickAndWait submit
assertTitle exact:Nintendo: Good or Bad for Kids?
clickAndWait //div[@id='year']/a
assertTitle Edit
type tinymce 2010
clickAndWait submit
assertTitle exact:Nintendo: Good or Bad for Kids?
clickAndWait //div[@id='numPages']/a
assertTitle Edit
type tinymce 258
clickAndWait submit
assertTitle exact:Nintendo: Good or Bad for Kids?
clickAndWait //div[@id='hasSubjectArea']/a
assertTitle Edit
clickAndWait submit
assertTitle Edit
type name Child Development
clickAndWait submit
assertTitle exact:Nintendo: Good or Bad for Kids?
clickAndWait //div[@id='freetextKeyword']/a
assertTitle Edit
type tinymce Children
clickAndWait submit
assertTitle exact:Nintendo: Good or Bad for Kids?
clickAndWait //div[@id='freetextKeyword']/a
assertTitle Edit
type tinymce Games
clickAndWait submit
assertTitle exact:Nintendo: Good or Bad for Kids?
comment Validate unique field LCCN
clickAndWait //div[@id='lccn']/a
assertTitle Edit
verifyTextPresent Add new entry for: lccn
verifyTextPresent The Library of Congress Control Number or LCCN is a serially based system of numbering cataloging records in the Library of Congress in the United States.
clickAndWait link=Cancel
assertTitle exact:Nintendo: Good or Bad for Kids?
clickAndWait //div[@id='lccn']/a
assertTitle Edit
clickAndWait submit
assertTitle exact:Nintendo: Good or Bad for Kids?
comment Validate unique field ISBN-10
clickAndWait //div[@id='isbn10']/a
assertTitle Edit
verifyTextPresent Add new entry for: isbn-10
verifyTextPresent The International Standard Book Number (ISBN) is a unique[1][2] numeric commercial book identifier based upon the 9-digit Standard Book Numbering (SBN) code created by Gordon Foster. The 10-digit ISBN format was developed by the International Organization for Standardization and was published in 1970 as international standard ISO 2108.
clickAndWait link=Cancel
assertTitle exact:Nintendo: Good or Bad for Kids?
clickAndWait //div[@id='isbn10']/a
assertTitle Edit
type tinymce 5555555555
clickAndWait submit
assertTitle exact:Nintendo: Good or Bad for Kids?
comment Validate unique field ISBN-13
clickAndWait //div[@id='isbn13']/a
assertTitle Edit
verifyTextPresent Add new entry for: isbn-13
verifyTextPresent The International Standard Book Number (ISBN) is a unique[1][2] numeric commercial book identifier based upon the 9-digit Standard Book Numbering (SBN) code created by Gordon Foster.Since 1 January 2007, ISBNs have contained 13 digits, a format that is compatible with Bookland EAN-13s.
clickAndWait link=Cancel
assertTitle exact:Nintendo: Good or Bad for Kids?
clickAndWait //div[@id='isbn13']/a
assertTitle Edit
type tinymce 7777777777777
clickAndWait submit
assertTitle exact:Nintendo: Good or Bad for Kids?
comment Naviage back to Index
clickAndWait link=Index
assertTitle Index to VIVO Contents
comment Verify Book link now appears
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
verifyTextPresent publications
verifyElementPresent link=Book
verifyTextPresent Book (1)
comment Verify Book shows up for Frank Furter
clickAndWait link=Faculty Member
assertTitle Faculty Member
clickAndWait link=Furter, Frank
assertTitle Furter, Frank
verifyElementPresent link=View all VIVO publications and corresponding co-author network
verifyTextPresent View all VIVO publications and corresponding co-author network.
verifyElementPresent link=Nintendo: Good or Bad for Kids?
verifyTextPresent Book
verifyTextPresent Nintendo: Good or Bad for Kids? Book
verifyElementPresent //div[@id='authorInAuthorship']/ul/li[1]/span
comment Verify book details
clickAndWait link=exact:Nintendo: Good or Bad for Kids?
assertTitle exact:Nintendo: Good or Bad for Kids?
verifyElementPresent link=Furter, Frank
verifyTextPresent Putnam
verifyTextPresent Putnam | Publisher
verifyTextPresent New York
verifyElementPresent link=in press
verifyTextPresent in press | document status
verifyTextPresent 2010
verifyTextPresent 258
verifyElementPresent link=Child Development
verifyTextPresent Child Development | Subject Area
verifyTextPresent 5555555555
verifyTextPresent 7777777777777
verifyTextPresent Children
verifyTextPresent Games
comment Log out
clickAndWait link=Log out
assertTitle VIVO