open |
/pubman/faces/HomePage.jsp |
|
clickAndWait |
form1:Header:lnkSubmission |
|
clickAndWait |
lnkNewSubmission |
|
clickAndWait |
//a[text()='PubMan Test Collection'] |
|
waitForElementPresent |
cboGenre |
|
selectAndWait |
cboGenre |
label=Book |
clickAndWait |
lnkValidate |
|
verifyText |
//div[@id='content']/div[1]/div[2]/div[3]/div/h2 |
System Messages and Warnings: |
verifyText |
//div[@id='content']/div[1]/div[2]/div[3]/div/ul/li[1] |
Title is required. |
click |
//input[@type='button'] |
|
type |
inputTitleText |
validate testing case for book |
clickAndWait |
lnkValidate |
|
verifyText |
//div[@id='content']/div[1]/div[2]/div[3]/div/ul/li[1] |
At least one creator is required. |
click |
//input[@type='button'] |
|
type |
iterCreatorOrganisationAuthors:0:inpcreator_persons_person_family_name_optional |
weber |
type |
iterCreatorOrganisationAuthors:0:inppersons_person_given_name_optional |
max |
clickAndWait |
lnkValidate |
|
verifyText |
//div[@id='content']/div[1]/div[2]/div[3]/div/ul/li[1] |
At least one creator needs an organizational unit. |
mouseDown |
iterCreatorOrganisation:0:inporganizations_organization_name |
|
keyPress |
iterCreatorOrganisation:0:inporganizations_organization_name |
\109 |
keyPress |
iterCreatorOrganisation:0:inporganizations_organization_name |
\97 |
keyPress |
iterCreatorOrganisation:0:inporganizations_organization_name |
\120 |
waitForElementPresent |
//ul[5]/li[2] |
|
mouseOver |
//ul[5]/li[2] |
|
click |
//ul[5]/li[2] |
|
pause |
5000 |
|
type |
iterCreatorOrganisationAuthors:0:inppersons_person_ous_optional |
1 |
clickAndWait |
lnkValidate |
|
verifyText |
//div[@id='content']/div[1]/div[2]/div[3]/div/ul/li |
If genre is not equal to "Series" or "Journal" or "Other" or "Manuscript" at least one date has to be provided. |
type |
txtDatePublishedInPrint |
2011-01-11 |
clickAndWait |
lnkValidate |
|
verifyText |
//div[@id='content']/div[1]/div[2]/div[3]/div/ul/li |
The Item is valid. |
click |
//input[@type='button'] |
|
clickAndWait |
lnkSave |
|