open |
/pubman/faces/HomePage.jsp |
|
clickAndWait |
form1:Header:lnkSubmission |
|
clickAndWait |
lnkNewSubmission |
|
clickAndWait |
//a[text()='PubMan Test Collection'] |
|
waitForElementPresent |
cboGenre |
|
select |
cboGenre |
label=Journal Article |
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 Journal Article |
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[1] |
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 |
If genre is equal to "Journal Article", "Book Chapter" or "Conference Paper" at least one source has to be provided. |
click |
//input[@type='button'] |
|
select |
//div[@id='editSource']/div/div/div[1]/span[1]/select |
label=Book |
type |
//div[@id='editSource']/div/div/div[2]/span[1]/textarea |
test case |
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 |
|