Test_SNF_ECMS_56_ViewMetadata_ecmdemo
open /ecmdemo/public/acme/
windowMaximize
echo -- Login ---
click link=Login
waitForElementPresent username
type username root
type password gtn
clickAndWait link=Sign in
echo --Go to site Explorer--
clickAndWait //a[@href='/ecmdemo/groups/:platform:web-contributors/siteExplorer']
echo --Open  driver pane--
waitForElementPresent //div[@title='Show Drives']
click //div[@title='Show Drives']
echo --Open Sites Management driver--
waitForElementPresent link=Sites Management
click link=Sites Management
pause 1000
echo --Add File
waitForElementPresent link=Add Document
click link=Add Document
pause 1000
echo --Add File--
waitForElementPresent link=File
click link=File
pause 1000
waitForElementPresent name
type name Test_SNF_ECMS_56
waitForElementPresent //td[@id='cke_contents_contentHtml']/iframe
selectFrame //td[@id='cke_contents_contentHtml']/iframe
type //html/body Test_SNF_ECMS_56
selectFrame relative=top
echo --Save --
waitForElementPresent link=Save & Close
click link=Save & Close
pause 1000
echo -- Open form to view metadata--
waitForElementPresent link=Test_SNF_ECMS_56
click link=Test_SNF_ECMS_56
echo -- Info tab--
waitForElementPresent link=Collaboration
click link=Collaboration
pause 1000
waitForElementPresent link=View Metadatas
click link=View Metadatas
pause 1000
echo -- Add metadata--
waitForElementPresent link=Add/Edit
click link=Add/Edit
waitForElementPresent title0
type title0 Test_SNF_ECMS_56
type creator0 Test_SNF_ECMS_56
type subject0 Test_SNF_ECMS_56
type source0 Test_SNF_ECMS_56
type contributor0 Test_SNF_ECMS_56
type resourceType0 Test_SNF_ECMS_56
type publisher0 Test_SNF_ECMS_56
type description0 Test_SNF_ECMS_56
type rights0 Test_SNF_ECMS_56
type relation0 Test_SNF_ECMS_56
type format0 Test_SNF_ECMS_56
type identifier0 Test_SNF_ECMS_56
type coverage0 Test_SNF_ECMS_56
type language0 laos
echo -- Save--
waitForElementPresent //form[@id='UIViewMetadataForm']//a[contains(text(),"Save")]
click //form[@id='UIViewMetadataForm']//a[contains(text(),"Save")]
pause 1000
waitForElementPresent link=Cancel
click link=Cancel
echo -- Referesh--
waitForElementPresent //form[@id='UIAddressBar']//a[@title="Refresh"]
click //form[@id='UIAddressBar']//a[@title="Refresh"]
pause 1000
echo -- OK--
waitForElementPresent //div[@id="UIJCRExplorerPortlet"]//a[text()="OK"]
click //div[@id="UIJCRExplorerPortlet"]//a[text()="OK"]
pause 1000
echo -- Delete document
waitForElementPresent //a[contains(text(),'Test_SNF_ECMS_56')]
mouseDownRight //a[contains(text(),'Test_SNF_ECMS_56')]
waitForElementPresent link=Delete
click link=Delete
waitForElementPresent //div[@id='UIPopupWindow']//a[text()="OK"]
click //div[@id='UIPopupWindow']//a[text()="OK"]
pause 1000
echo --Logout--
waitForElementPresent link=Sign out
clickAndWait link=Sign out