open |
/pubman/faces/HomePage.jsp |
|
clickAndWait |
form1:Header:lnkSubmission |
|
clickAndWait |
lnkNewSubmission |
|
clickAndWait |
//a[text()='PubMan Test Collection'] |
|
waitForElementPresent |
cboGenre |
|
selectAndWait |
cboGenre |
label=Journal |
type |
inputTitleText |
validate testing case for Organization |
type |
iterCreatorOrganisationAuthors:0:inpcreator_persons_person_family_name_optional |
weber |
type |
iterCreatorOrganisationAuthors:0:inppersons_person_given_name_optional |
max |
type |
iterCreatorOrganisationAuthors:0:inppersons_person_ous_optional |
1 |
clickAndWait |
lnkValidate |
|
verifyText |
//div[@id='content']/div[1]/div[2]/div[3]/div/ul/li |
At least one creator needs an organizational unit. |
click |
//input[@type='button'] |
|
type |
iterCreatorOrganisationAuthors:0:inppersons_person_ous_optional |
|
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[4]/li[2] |
|
mouseOver |
//ul[4]/li[2] |
|
click |
//ul[4]/li[2] |
|
pause |
5000 |
|
clickAndWait |
lnkValidate |
|
verifyText |
//div[@id='content']/div[1]/div[2]/div[3]/div/ul/li |
The affiliation number 1 is not linked to any creator. Please add a creator for this affiliation or remove the affiliation. |
click |
//input[@type='button'] |
|
type |
iterCreatorOrganisationAuthors:0:inppersons_person_ous_optional |
2 |
clickAndWait |
lnkValidate |
|
verifyText |
//div[@id='content']/div[1]/div[2]/div[3]/div/ul/li |
The affiliation number of a creator is not in the valid range: "2" |
click |
//input[@type='button'] |
|
clickAndWait |
iterCreatorOrganisation:0:btnAddCreatorPersonAffiliation |
|
mouseDown |
iterCreatorOrganisation:1:inporganizations_organization_name |
|
keyPress |
iterCreatorOrganisation:1:inporganizations_organization_name |
\109 |
keyPress |
iterCreatorOrganisation:1:inporganizations_organization_name |
\97 |
keyPress |
iterCreatorOrganisation:1:inporganizations_organization_name |
\120 |
waitForElementPresent |
//ul[5]/li[1] |
|
mouseOver |
//ul[5]/li[1] |
|
click |
//ul[5]/li[1] |
|
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 |
The affiliation number 2 is not linked to any creator. Please add a creator for this affiliation or remove the affiliation. |
click |
//input[@type='button'] |
|
clickAndWait |
iterCreatorOrganisation:1:btnRemoveCreatorPersonAffiliation |
|
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 |
|