| 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 Sites 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 |
--Create a Article document |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| pause |
10000 |
|
| waitForElementPresent |
title |
|
| type |
title |
Test_SNF_ECMS_50 |
| waitForElementPresent |
//td[@id='cke_contents_summary']/iframe |
|
| selectFrame |
//td[@id='cke_contents_summary']/iframe |
|
| type |
//html/body |
Lam Y khue, Em yeu chi |
| selectFrame |
relative=top |
|
| selectFrame |
//td[@id='cke_contents_content']/iframe |
|
| type |
//html/body |
Tai sao chi lai tu` choi em chu', Em muon het len. EM YEU CHI. Minh bi dien mia roi |
| selectFrame |
relative=top |
|
| echo |
-- Save as Draft |
|
| waitForElementPresent |
link=Save as Draft |
|
| click |
link=Save as Draft |
|
| pause |
10000 |
|
| echo |
-- Close |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| pause |
10000 |
|
| echo |
--Go to Private |
|
| waitForElementPresent |
//div[@title='Private'] |
|
| click |
//div[@title='Private'] |
|
| echo |
--create another document |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| pause |
10000 |
|
| waitForElementPresent |
selectTemplate |
label=Kofax document |
| select |
selectTemplate |
label=Kofax document |
| pause |
10000 |
|
| type |
name |
Kofax |
| echo |
-- Save as Draft "Kofax document " |
|
| waitForElementPresent |
link=Save as Draft |
|
| click |
link=Save as Draft |
|
| pause |
10000 |
|
| echo |
-- Close |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| pause |
10000 |
|
| echo |
-- Add Relation |
|
| waitForElementPresent |
link=Test_SNF_ECMS_50 |
|
| click |
link=Test_SNF_ECMS_50 |
|
| echo |
--Open Add relation form |
|
| pause |
10000 |
|
| waitForElementPresent |
//a[text()='Admin'] |
|
| click |
//a[text()='Admin'] |
|
| pause |
10000 |
|
| echo |
-- Manage Relations |
|
| waitForElementPresent |
link=Manage Relations |
|
| click |
link=Manage Relations |
|
| echo |
-- Go to "Select relation tab" |
|
| waitForElementPresent |
//div[@id='UIRelationManager']/div/div/div[1]/div[1]/div/div/div/div/div[2]/div/div/div/div |
|
| click |
//div[@id='UIRelationManager']/div/div/div[1]/div[1]/div/div/div/div/div[2]/div/div/div/div |
|
| echo |
-- Select node to relation |
|
| echo |
-- User |
|
| waitForElementPresent |
//div[text()='Users'] |
|
| click |
//div[text()='Users'] |
|
| echo |
-- root |
|
| waitForElementPresent |
//div[text()='root'] |
|
| click |
//div[text()='root'] |
|
| echo |
-- Private |
|
| waitForElementPresent |
//div[text()='Private'] |
|
| click |
//div[text()='Private'] |
|
| echo |
-- Choose Kofax file |
|
| waitForElementPresent |
//div[@id='UISelectPathPanel']/table/tbody/tr[2]/td[2]/a/div |
|
| click |
//div[@id='UISelectPathPanel']/table/tbody/tr[2]/td[2]/a/div |
|
| waitForTextPresent |
/Users/root/Private/Kofax |
|
| verifyTextPresent |
/Users/root/Private/Kofax |
|
| echo |
-- Close |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| echo |
--Go to Infor Tab |
|
| pause |
10000 |
|
| waitForElementPresent |
link=Info |
|
| click |
link=Info |
|
| pause |
10000 |
|
| echo |
-- Verify link to Kofax: Select Relation |
|
| waitForElementPresent |
link=Show/Hide Relations |
|
| click |
link=Show/Hide Relations |
|
| echo |
-- Check in Relations List |
|
| waitForElementPresent |
//div[@class='UIViewRelationList']//a[text()='Kofax'] |
|
| click |
//div[@class='UIViewRelationList']//a[text()='Kofax'] |
|
| echo |
-- Check References List |
|
| waitForElementPresent |
//div[@class='UIViewRelationList']//a[text()='Test_SNF_ECMS_50'] |
|
| verifyElementPresent |
//div[@class='UIViewRelationList']//a[text()='Test_SNF_ECMS_50'] |
|
| echo |
-- Show |
|
| waitForElementPresent |
link=Show/Hide Relations |
|
| click |
link=Show/Hide Relations |
|
| echo |
-- Delete Relation: Go to Admin Tab |
|
| waitForElementPresent |
link=Admin |
|
| click |
link=Admin |
|
| waitForElementPresent |
link=Test_SNF_ECMS_50 |
|
| click |
link=Test_SNF_ECMS_50 |
|
| echo |
-- Access Manage Relations |
|
| waitForElementPresent |
link=Manage Relations |
|
| click |
link=Manage Relations |
|
| echo |
-- Delete icon |
|
| waitForElementPresent |
//img[@alt='Delete'] |
|
| click |
//img[@alt='Delete'] |
|
| assertConfirmation |
Do you really want to delete this relation? |
|
| waitForTextPresent |
Empty data |
|
| verifyTextPresent |
Empty data |
|
| echo |
-- Close |
|
| pause |
10000 |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| echo |
-- Delete document |
|
| waitForElementPresent |
link=Test_SNF_ECMS_50 |
|
| mouseDownRight |
link=Test_SNF_ECMS_50 |
|
| click |
link=Delete |
|
| echo |
-- Ok |
|
| waitForElementPresent |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| click |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| pause |
10000 |
|
| waitForElementNotPresent |
//div[@class='UIViewRelationList']//a[text()='Test_SNF_ECMS_50'] |
|
| verifyElementNotPresent |
//div[@class='UIViewRelationList']//a[text()='Test_SNF_ECMS_50'] |
|
| echo |
-- Delete Kofax document |
|
| waitForElementPresent |
link=Kofax |
|
| mouseDownRight |
link=Kofax |
|
| click |
link=Delete |
|
| echo |
-- Ok |
|
| waitForElementPresent |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| click |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| pause |
10000 |
|
| waitForElementNotPresent |
//div[@class='UIViewRelationList']//a[text()='Kofax'] |
|
| verifyElementNotPresent |
//div[@class='UIViewRelationList']//a[text()='Kofax'] |
|
| echo |
-- Log out |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|