| SetupTest | ||
| waitForElementPresent | //a[@id="my-community-private-pages"] | |
| clickAndWait | //a[@id="my-community-private-pages"] | |
| waitForElementPresent | //div/a/span | |
| click | //div/a/span | |
| waitForElementPresent | new_page | |
| typeKeys | new_page | AP Setup Blogs Test Page |
| type | new_page | AP Setup Blogs Test Page |
| click | link=Save | |
| waitForElementPresent | link=AP Setup Blogs Test Page | |
| clickAndWait | link=AP Setup Blogs Test Page | |
| waitForElementPresent | link=Add Application | |
| click | link=Add Application | |
| waitForElementPresent | //div[@id="Collaboration-Blogs"] | |
| click | //div[@id="Collaboration-Blogs"]/p/a | |
| waitForElementPresent | //input[@value='Add Blog Entry'] | |
| click | //input[@value='Add Blog Entry'] | |
| waitForElementPresent | _33_title | |
| typeKeys | _33_title | AP Setup Test Entr |
| type | _33_title | AP Setup Test Entry |
| pause | 5000 | |
| waitForElementPresent | _33_editor | |
| waitForElementPresent | FCKeditor1___Frame | |
| waitForElementPresent | //textarea | |
| selectFrame | //iframe[@id="_33_editor"] | |
| selectFrame | //iframe[@id="FCKeditor1___Frame"] | |
| selectFrame | //iframe | |
| typeKeys | //body | This is an AP setup test entr! |
| type | //body | This is an AP setup test entry! |
| selectFrame | relative=top | |
| waitForElementPresent | _33_saveButton | |
| clickAndWait | _33_saveButton | |
| waitForElementPresent | //div/a/span | |
| click | //div/a/span | |
| waitForElementPresent | new_page | |
| typeKeys | new_page | AP Setup Bookmark Test Page |
| type | new_page | AP Setup Bookmark Test Page |
| click | link=Save | |
| waitForElementPresent | link=AP Setup Bookmark Test Page | |
| clickAndWait | link=AP Setup Bookmark Test Page | |
| waitForElementPresent | link=Add Application | |
| click | link=Add Application | |
| waitForElementPresent | //div[@id='Community-Bookmarks']/p/a | |
| click | //div[@id='Community-Bookmarks']/p/a | |
| waitForElementPresent | //input[@value='Add Folder'] | |
| clickAndWait | //input[@value='Add Folder'] | |
| waitForElementPresent | _28_name | |
| typeKeys | _28_name | AP Setup Test Bookmark Folder |
| type | _28_name | AP Setup Test Bookmark Folder |
| clickAndWait | //input[@value='Save'] | |
| clickAndWait | //td[1]/a | |
| clickAndWait | //input[@value='Add Entry'] | |
| typeKeys | _28_name | AP Setup Test Bookmark |
| type | _28_name | AP Setup Test Bookmark |
| typeKeys | _28_url | http://www.liferay.com |
| type | _28_url | http://www.liferay.com |
| clickAndWait | //input[@value='Save'] | |
| waitForElementPresent | //div/a/span | |
| click | //div/a/span | |
| waitForElementPresent | new_page | |
| typeKeys | new_page | AP Setup DL Test Page |
| type | new_page | AP Setup DL Test Page |
| click | link=Save | |
| waitForElementPresent | link=AP Setup DL Test Page | |
| clickAndWait | link=AP Setup DL Test Page | |
| waitForElementPresent | link=Add Application | |
| click | link=Add Application | |
| waitForElementPresent | //div[@id='ContentManagement-DocumentLibrary']/p/a | |
| click | //div[@id='ContentManagement-DocumentLibrary']/p/a | |
| pause | 2000 | |
| clickAndWait | link=AP Setup DL Test Page | |
| clickAndWait | //input[@value='Add Folder'] | |
| waitForElementPresent | _20_name | |
| typeKeys | _20_name | AP Setup DL Test Folder |
| type | _20_name | AP Setup DL Test Folder |
| clickAndWait | //input[@value='Save'] | |
| waitForElementPresent | link=AP Setup DL Test Folder | |
| clickAndWait | link=AP Setup DL Test Folder | |
| clickAndWait | //input[@value='Add Document'] | |
| pause | 5000 | |
| waitForElementPresent | link=Use the classic uploader. | |
| click | link=Use the classic uploader. | |
| waitForElementPresent | _20_file | |
| type | _20_file | L:\portal\build\portal-web\test\com\liferay\portalweb\portlet\assetpublisher\AP_test_document.txt |
| typeKeys | _20_title | AP Setup Test Document |
| type | _20_title | AP Setup Test Document |
| clickAndWait | //input[@value='Save'] | |
| pause | 5000 | |
| waitForElementPresent | //div/a/span | |
| click | //div/a/span | |
| waitForElementPresent | new_page | |
| typeKeys | new_page | AP Setup IG Test Page |
| type | new_page | AP Setup IG Test Page |
| click | link=Save | |
| waitForElementPresent | link=AP Setup IG Test Page | |
| clickAndWait | link=AP Setup IG Test Page | |
| waitForElementPresent | link=Add Application | |
| click | link=Add Application | |
| waitForElementPresent | //div[@id='ContentManagement-ImageGallery']/p/a | |
| click | //div[@id='ContentManagement-ImageGallery']/p/a | |
| pause | 2000 | |
| clickAndWait | link=AP Setup IG Test Page | |
| clickAndWait | //input[@value='Add Folder'] | |
| waitForElementPresent | _31_name | |
| typeKeys | _31_name | AP Setup IG Test Folder |
| type | _31_name | AP Setup IG Test Folder |
| clickAndWait | //input[@value='Save'] | |
| clickAndWait | //b | |
| clickAndWait | //input[@value='Add Image'] | |
| pause | 5000 | |
| waitForElementPresent | link=Use the classic uploader. | |
| click | link=Use the classic uploader. | |
| waitForElementPresent | _31_file | |
| type | _31_file | L:\portal\build\portal-web\test\com\liferay\portalweb\portlet\assetpublisher\AP_test_image.jpg |
| typeKeys | _31_name | AP Setup Test Image |
| type | _31_name | AP Setup Test Image |
| clickAndWait | //input[@value='Save'] | |
| pause | 5000 | |
| waitForElementPresent | link=Control Panel | |
| clickAndWait | link=Control Panel | |
| clickAndWait | link=Web Content | |
| clickAndWait | //input[@value='Add Web Content'] | |
| waitForElementPresent | _15_title | |
| typeKeys | _15_title | AP Setup Test Article |
| type | _15_title | AP Setup Test Article |
| pause | 5000 | |
| waitForElementPresent | _15_editor | |
| waitForElementPresent | FCKeditor1___Frame | |
| waitForElementPresent | //textarea | |
| selectFrame | //iframe[@id="_15_editor"] | |
| selectFrame | //iframe[@id="FCKeditor1___Frame"] | |
| selectFrame | //iframe | |
| typeKeys | //body | This is an AP setup test article! |
| type | //body | This is an AP setup test article! |
| selectFrame | relative=top | |
| waitForElementPresent | //input[@value='Save and Approve'] | |
| clickAndWait | //input[@value='Save and Approve'] | |
| clickAndWait | link=Back to My Community | |
| waitForElementPresent | //div/a/span | |
| click | //div/a/span | |
| waitForElementPresent | new_page | |
| typeKeys | new_page | AP Setup MB Test Page |
| type | new_page | AP Setup MB Test Page |
| click | link=Save | |
| waitForElementPresent | link=AP Setup MB Test Page | |
| clickAndWait | link=AP Setup MB Test Page | |
| waitForElementPresent | link=Add Application | |
| click | link=Add Application | |
| waitForElementPresent | //div[@id='Collaboration-MessageBoards']/p/a | |
| click | //div[@id='Collaboration-MessageBoards']/p/a | |
| waitForElementPresent | //input[@value='Add Category'] | |
| clickAndWait | //input[@value='Add Category'] | |
| waitForElementPresent | _19_name | |
| typeKeys | _19_name | AP Setup MB Test Categor |
| type | _19_name | AP Setup MB Test Category |
| clickAndWait | //input[@value='Save'] | |
| clickAndWait | //b | |
| clickAndWait | //input[@value='Post New Thread'] | |
| waitForElementPresent | _19_subject | |
| typeKeys | _19_subject | AP Setup MB Test Thread |
| type | _19_subject | AP Setup MB Test Thread |
| typeKeys | _19_textArea | This is an AP setup MB test thread. |
| type | _19_textArea | This is an AP setup MB test thread. |
| clickAndWait | //input[@value='Save'] | |
| waitForElementPresent | //div/a/span | |
| click | //div/a/span | |
| waitForElementPresent | new_page | |
| typeKeys | new_page | AP Setup Wiki Test Page |
| type | new_page | AP Setup Wiki Test Page |
| click | link=Save | |
| waitForElementPresent | link=AP Setup Wiki Test Page | |
| clickAndWait | link=AP Setup Wiki Test Page | |
| waitForElementPresent | link=Add Application | |
| click | link=Add Application | |
| waitForElementPresent | //div[@id='Wiki-Wiki']/p/a | |
| click | //div[@id='Wiki-Wiki']/p/a | |
| waitForElementPresent | link=Configuration | |
| clickAndWait | link=AP Setup Wiki Test Page | |
| waitForElementPresent | //img[@alt='Manage Wikis'] | |
| clickAndWait | //img[@alt='Manage Wikis'] | |
| store | eval(selenium.isElementPresent('//tr[4]/td[4]/ul/li/strong/span')) | ExtraMainPage |
| gotoIf | !${ExtraMainPage} | No Extra Page |
| click | //tr[4]/td[4]/ul/li/strong/span | |
| waitForElementPresent | //body/div[2]/ul/li[6]/a | |
| clickAndWait | //body/div[2]/ul/li[6]/a | |
| assertConfirmation | Are you sure you want to delete this? | |
| label | No Extra Page | |
| clickAndWait | link=Main | |
| clickAndWait | //a[3]/span | |
| click | //td[5]/ul/li/strong/span | |
| waitForElementPresent | link=Delete | |
| clickAndWait | link=Delete | |
| assertConfirmation | Are you sure you want to delete this? | |
| clickAndWait | //input[@value='Add Page'] | |
| waitForElementPresent | _36_title | |
| typeKeys | _36_title | AP Setup Test Wiki Page |
| type | _36_title | AP Setup Test Wiki Page |
| type | _36_content | ==AP Setup Test Wiki== *This is an AP setup test wiki. |
| clickAndWait | //input[@value='Save'] | |