| 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/private/acme/siteExplorer'] |
|
| echo |
--Open driver pane |
|
| waitForElementPresent |
//div[@title='Show Drives'] |
|
| click |
//div[@title='Show Drives'] |
|
| echo |
--Open Private driver |
|
| waitForElementPresent |
link=Private |
|
| click |
link=Private |
|
| echo |
-- Select Admin View |
|
| waitForElementPresent |
//a[@title='Admin View'] |
|
| click |
//a[@title='Admin View'] |
|
| echo |
-- Go to Action tab |
|
| pause |
10000 |
|
| waitForElementPresent |
link=Actions |
|
| click |
link=Actions |
|
| pause |
10000 |
|
| echo |
--Add File |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| pause |
10000 |
|
| echo |
--Add File |
|
| waitForElementPresent |
selectTemplate |
label=File |
| select |
selectTemplate |
label=File |
| pause |
10000 |
|
| 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 as Draft |
|
| waitForElementPresent |
link=Save as Draft |
|
| click |
link=Save as Draft |
|
| pause |
10000 |
|
| echo |
--Close the form |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| pause |
10000 |
|
| echo |
-- Open form to view metadata |
|
| waitForElementPresent |
link=Test_SNF_ECMS_56 |
|
| click |
link=Test_SNF_ECMS_56 |
|
| pause |
10000 |
|
| echo |
-- Info tab |
|
| waitForElementPresent |
link=Info |
|
| click |
link=Info |
|
| pause |
10000 |
|
| waitForElementPresent |
link=View Metadatas |
|
| click |
link=View Metadatas |
|
| pause |
10000 |
|
| 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 |
10000 |
|
| waitForElementPresent |
link=Cancel |
|
| click |
link=Cancel |
|
| echo |
-- Referesh |
|
| waitForElementPresent |
//form[@id='UIAddressBar']//a[@title="Refresh"] |
|
| click |
//form[@id='UIAddressBar']//a[@title="Refresh"] |
|
| pause |
10000 |
|
| echo |
-- OK |
|
| waitForElementPresent |
//div[@id="UIJCRExplorerPortlet"]//a[text()="OK"] |
|
| click |
//div[@id="UIJCRExplorerPortlet"]//a[text()="OK"] |
|
| pause |
10000 |
|
| 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 |
10000 |
|
| echo |
--Logout |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|