deleteAllVisibleCookies |
|
|
setTimeout |
200000 |
|
comment |
|
open |
/vivo/ |
|
assertTitle |
VIVO |
|
comment |
|
clickAndWait |
link=Log in |
|
assertTitle |
Log in to VIVO |
|
comment |
|
type |
loginName |
testAdmin@cornell.edu |
type |
loginPassword |
Password |
clickAndWait |
loginForm |
|
comment |
|
clickAndWait |
link=Index |
|
clickAndWait |
link=Country |
|
assertTitle |
Country |
|
clickAndWait |
link=3 |
|
assertTitle |
Country |
|
clickAndWait |
link=Germany |
|
assertTitle |
Germany |
|
verifyTextPresent |
Photo |
|
comment |
|
verifyTextNotPresent |
//img[@title='click to view larger image'] |
|
comment |
|
clickAndWait |
//img[@alt='add'] |
|
assertTitle |
Upload image for Germany |
|
verifyTextPresent |
Photo Upload |
|
verifyTextPresent |
Current Photo |
|
verifyTextPresent |
Upload a photo (JPEG, GIF or PNG) |
|
comment |
|
clickAndWait |
link=Cancel |
|
comment |
|
assertTitle |
Germany |
|
clickAndWait |
//img[@alt='add'] |
|
assertTitle |
Upload image for Germany |
|
clickAndWait |
//input[@value='Upload photo'] |
|
assertTitle |
Upload image for Germany |
|
verifyTextPresent |
Please browse and select a photo. |
|
comment |
|
type |
datafile |
C:\VIVO\vivo\utilities\acceptance-tests\suites\CreatePeople\germany1.jpg |
clickAndWait |
//input[@value='Upload photo'] |
|
assertTitle |
Crop Photo for Germany |
|
clickAndWait |
link=Cancel |
|
assertTitle |
Germany |
|
comment |
|
clickAndWait |
//img[@alt='add'] |
|
assertTitle |
Upload image for Germany |
|
type |
datafile |
C:\VIVO\vivo\utilities\acceptance-tests\suites\CreatePeople\germany1.jpg |
clickAndWait |
//input[@value='Upload photo'] |
|
assertTitle |
Crop Photo for Germany |
|
clickAndWait |
//input[@value='Save photo'] |
|
assertTitle |
Germany |
|
verifyElementPresent |
//img[@title='click to view larger image'] |
|
verifyAttribute |
//img[@title='click to view larger image']@src |
/vivo/file/*/thumbnail_germany1.jpg |
comment |
|
clickAndWait |
//img[@alt='edit'] |
|
assertTitle |
Replace image for Germany |
|
verifyTextPresent |
Photo Upload |
|
verifyTextPresent |
Current Photo |
|
verifyElementPresent |
//img[@alt='Individual photo'] |
|
verifyTextPresent |
Replace Photo (JPEG, GIF or PNG) |
|
comment |
|
clickAndWait |
link=Cancel |
|
assertTitle |
Germany |
|
verifyElementPresent |
//img[@title='click to view larger image'] |
|
verifyAttribute |
//img[@title='click to view larger image']@src |
/vivo/file/*/thumbnail_germany1.jpg |
comment |
|
clickAndWait |
//img[@alt='edit'] |
|
assertTitle |
Replace image for Germany |
|
type |
datafile |
C:\VIVO\vivo\utilities\acceptance-tests\suites\CreatePeople\germany2.jpg |
clickAndWait |
//input[@value='Upload photo'] |
|
assertTitle |
Crop Photo for Germany |
|
clickAndWait |
link=Cancel |
|
assertTitle |
Germany |
|
verifyElementPresent |
//img[@title='click to view larger image'] |
|
verifyAttribute |
//img[@title='click to view larger image']@src |
/vivo/file/*/thumbnail_germany1.jpg |
comment |
|
clickAndWait |
//img[@alt='edit'] |
|
assertTitle |
Replace image for Germany |
|
type |
datafile |
C:\VIVO\vivo\utilities\acceptance-tests\suites\CreatePeople\germany2.jpg |
clickAndWait |
//input[@value='Upload photo'] |
|
assertTitle |
Crop Photo for Germany |
|
clickAndWait |
//input[@value='Save photo'] |
|
assertTitle |
Germany |
|
comment |
|
verifyElementPresent |
//img[@title='click to view larger image'] |
|
verifyAttribute |
//img[@title='click to view larger image']@src |
/vivo/file/*/thumbnail_germany2.jpg |
comment |
|
clickAndWait |
//img[@alt='delete'] |
|
assertConfirmation |
Are you sure you want to delete this photo? |
|
waitForPageToLoad |
5000 |
|
assertTitle |
Germany |
|
comment |
|
verifyElementNotPresent |
//img[@title='click to view larger image'] |
|
comment |
|
clickAndWait |
link=Home |
|
clickAndWait |
link=Log out |
|
assertTitle |
VIVO |
|