diff options
author | Artur Signell <artur@vaadin.com> | 2013-03-18 13:56:56 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-03-21 07:22:18 +0000 |
commit | 5d8b1862b63d32070b4084d7e49cae1f4bc66953 (patch) | |
tree | 371dfef129c53d6fc63d01a7c6d58469a2bfbe09 /uitest/integration-testscripts/Liferay-6 | |
parent | e4c9eda51082a443822b66864df2fe14be7dc6d7 (diff) | |
download | vaadin-framework-5d8b1862b63d32070b4084d7e49cae1f4bc66953.tar.gz vaadin-framework-5d8b1862b63d32070b4084d7e49cae1f4bc66953.zip |
Unified all portal integration tests to be based on JSR286Portlet (#8013, #9566, #11314)
All portal tests are now based on the same test script. Portal tests avoid Vaadin locators to avoid random problems with the portlet id changing between test runs.
* eXo 3 test must be run on Firefox, does not work in Chrome
* Liferay theme test is now a separate test which does not depend on the Liferay integration test
* Changing to maximized state using an action URL does not work with GateIn or eXo
* The edit mode link does not work in WebLogic Portal as WebLogic feels it is not an allowed mode for the portlet
Change-Id: I7a683688d8ffc611e211f8a60889a34b233b81c9
Diffstat (limited to 'uitest/integration-testscripts/Liferay-6')
3 files changed, 269 insertions, 28 deletions
diff --git a/uitest/integration-testscripts/Liferay-6/Liferay6-and-6EE-theme-deploy.html b/uitest/integration-testscripts/Liferay-6/Liferay6-and-6EE-theme-deploy.html new file mode 100644 index 0000000000..50f71d992c --- /dev/null +++ b/uitest/integration-testscripts/Liferay-6/Liferay6-and-6EE-theme-deploy.html @@ -0,0 +1,146 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head profile="http://selenium-ide.openqa.org/profiles/test-case"> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<link rel="selenium.base" href="" /> +<title>integration-test-liferay-6.0.5</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">integration-test-liferay-6.0.5</td></tr> +</thead><tbody> +<tr> + <td>open</td> + <td>/web/guest/</td> + <td></td> +</tr> +<tr> + <td>mouseClickAndWait</td> + <td>sign-in</td> + <td>49,17</td> +</tr> +<tr> + <td>enterCharacter</td> + <td>_58_login</td> + <td>test@liferay.com</td> +</tr> +<tr> + <td>enterCharacter</td> + <td>_58_password</td> + <td>test</td> +</tr> +<tr> + <td>mouseClickAndWait</td> + <td>//input[@value='Sign In']</td> + <td>43,18</td> +</tr> +<tr> + <td>mouseClickAndWait</td> + <td>//input[@type='submit']</td> + <td>16,-1321</td> +</tr> +<tr> + <td>type</td> + <td>reminderQueryAnswer</td> + <td>-</td> +</tr> +<tr> + <td>mouseClickAndWait</td> + <td>//input[@value='Save']</td> + <td>86,13</td> +</tr> +<tr> + <td>drag</td> + <td>link=Add</td> + <td></td> +</tr> +<tr> + <td>mouseOver</td> + <td>link=Add</td> + <td>60,15</td> +</tr> +<tr> + <td>mouseClick</td> + <td>addPage</td> + <td>45,11</td> +</tr> +<tr> + <td>enterCharacter</td> + <td>//div/span[1]/span/input</td> + <td>Vaadin Liferay Theme</td> +</tr> +<tr> + <td>mouseClick</td> + <td>save</td> + <td>10,12</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//nav/ul/li[2]/a/span</td> + <td></td> +</tr> +<tr> + <td>mouseClickAndWait</td> + <td>//nav/ul/li[2]/a/span</td> + <td>26,7</td> +</tr> +<tr> + <td>drag</td> + <td>link=Add</td> + <td></td> +</tr> +<tr> + <td>mouseOver</td> + <td>link=Manage</td> + <td>32,4</td> +</tr> +<tr> + <td>mouseClick</td> + <td>link=Page Layout</td> + <td>78,17</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//form/div/div</td> + <td></td> +</tr> +<tr> + <td>mouseClick</td> + <td>//div[2]/img</td> + <td>47,73</td> +</tr> +<tr> + <td>mouseClickAndWait</td> + <td>//div[5]/span/span/input</td> + <td>32,14</td> +</tr> +<tr> + <td>drag</td> + <td>link=Add</td> + <td></td> +</tr> +<tr> + <td>mouseOver</td> + <td>link=Add</td> + <td>56,23</td> +</tr> +<tr> + <td>mouseClick</td> + <td>link=Moreā¦</td> + <td>50,13</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[@title='Vaadin Liferay Theme']/p/a</td> + <td></td> +</tr> +<tr> + <td>mouseClick</td> + <td>//div[@title='Vaadin Liferay Theme']/p/a</td> + <td>10,10</td> +</tr> +</tbody></table> +</body> +</html>
\ No newline at end of file diff --git a/uitest/integration-testscripts/Liferay-6/Liferay6-theme.html b/uitest/integration-testscripts/Liferay-6/Liferay6-theme.html index c61adb0dd7..03f2d25120 100644 --- a/uitest/integration-testscripts/Liferay-6/Liferay6-theme.html +++ b/uitest/integration-testscripts/Liferay-6/Liferay6-theme.html @@ -4,21 +4,19 @@ <head profile="http://selenium-ide.openqa.org/profiles/test-case"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="selenium.base" href="" /> -<title>test-liferay6-theme</title> +<title>integration-test-liferay-6.0.5</title> </head> <body> -<!-- - If you update this test, remember make the same changes to Liferay6EE-theme too! ---> <table cellpadding="1" cellspacing="1" border="1"> <thead> -<tr><td rowspan="1" colspan="3">LiferayTheme</td></tr> +<tr><td rowspan="1" colspan="3">integration-test-liferay-6.0.5</td></tr> </thead><tbody> <tr> <td>open</td> - <td>/web/guest/vaadin-liferay-theme/</td> + <td>/web/guest/vaadin-liferay-theme</td> <td></td> </tr> +<!--Start actual test--> <tr> <td>screenCapture</td> <td></td> @@ -356,13 +354,6 @@ <td>vaadin=v-VaadinLiferayThemePortlet_WAR_demo_LAYOUT_11352::Root/VNotification[0]</td> <td>0,0</td> </tr> -<!-- -<tr> - <td>pause</td> - <td>500</td> - <td></td> -</tr> ---> <tr> <td>click</td> <td>vaadin=v-VaadinLiferayThemePortlet_WAR_demo_LAYOUT_11352::/VVerticalLayout[0]/VCssLayout[0]/VCssLayout$FlowPane[0]/VTabsheet[0]/VTabsheetPanel[0]/VGridLayout[0]/VButton[3]/domChild[0]/domChild[0]</td> @@ -388,7 +379,6 @@ <td></td> <td>openedmenu</td> </tr> - </tbody></table> </body> </html>
\ No newline at end of file diff --git a/uitest/integration-testscripts/Liferay-6/integration-test-liferay-6.0.5.html b/uitest/integration-testscripts/Liferay-6/integration-test-liferay-6.0.5.html index 037ce23865..656f2352e5 100644 --- a/uitest/integration-testscripts/Liferay-6/integration-test-liferay-6.0.5.html +++ b/uitest/integration-testscripts/Liferay-6/integration-test-liferay-6.0.5.html @@ -69,7 +69,7 @@ <tr> <td>enterCharacter</td> <td>//div/span[1]/span/input</td> - <td>Vaadin Liferay Theme</td> + <td>portlet2</td> </tr> <tr> <td>mouseClick</td> @@ -133,43 +133,148 @@ </tr> <tr> <td>waitForElementPresent</td> - <td>//div[@title='Vaadin Liferay Theme']/p/a</td> + <td>//div[@title='Vaadin Portlet 2.0 Test']/p/a</td> <td></td> </tr> <tr> <td>mouseClick</td> - <td>//div[@title='Vaadin Liferay Theme']/p/a</td> + <td>//div[@title='Vaadin Portlet 2.0 Test']/p/a</td> <td>10,10</td> </tr> +<!--Start actual test--> <tr> - <td>waitForTextPresent</td> - <td>Normal Label</td> + <td>waitForElementPresent</td> + <td>//div[2]/div/div/div/span</td> <td></td> </tr> <tr> + <td>assertText</td> + <td>//div[2]/div/div/div/span</td> + <td>Test of ApplicationResources with full path</td> +</tr> +<tr> + <td>assertText</td> + <td>//body/div[3]/div//p</td> + <td>exact:Mode: view State: normal</td> +</tr> +<tr> <td>screenCapture</td> <td></td> - <td>theme</td> + <td>initial</td> </tr> <tr> - <td>mouseClick</td> - <td>//td[3]/div/div/div</td> - <td>22,7</td> + <td>closeNotification</td> + <td>//body/div[3]/div</td> + <td>0,0</td> </tr> <tr> - <td>assertTextPresent</td> - <td>Normal TextField</td> + <td>assertTextNotPresent</td> + <td>Action * received</td> <td></td> </tr> <tr> + <td>assertText</td> + <td>//div[@class="v-link v-widget"]/a/span</td> + <td>Edit</td> +</tr> +<!--Send an action--> +<tr> + <td>mouseClickAndWait</td> + <td>//div[8]/div/a/span</td> + <td>32,9</td> +</tr> +<tr> <td>assertTextPresent</td> - <td>Normal TextArea</td> + <td>Action 'someAction' received</td> <td></td> </tr> <tr> - <td>assertTextNotPresent</td> - <td>Normal Label</td> + <td>assertText</td> + <td>//body/div[3]/div//p</td> + <td>exact:Mode: view State: normal</td> +</tr> +<tr> + <td>assertText</td> + <td>//div[@class="v-link v-widget"]/a/span</td> + <td>Edit</td> +</tr> +<tr> + <td>closeNotification</td> + <td>//body/div[3]/div</td> + <td>0,0</td> +</tr> +<!--Switch to edit mode--> +<tr> + <td>mouseClickAndWait</td> + <td>//div[5]/div/a/span</td> + <td>12,3</td> +</tr> +<tr> + <td>assertText</td> + <td>//body/div[3]/div//p</td> + <td>exact:Mode: edit State: normal</td> +</tr> +<tr> + <td>closeNotification</td> + <td>//body/div[3]/div</td> + <td>0,0</td> +</tr> +<tr> + <td>assertText</td> + <td>//div[@class="v-link v-widget"]/a/span</td> + <td>Done</td> +</tr> +<!--Maximize--> +<tr> + <td>mouseClickAndWait</td> + <td>//div[6]/div/a/span</td> + <td>16,7</td> +</tr> +<tr> + <td>assertText</td> + <td>//body/div[3]/div//p</td> + <td>exact:Mode: edit State: maximized</td> +</tr> +<tr> + <td>closeNotification</td> + <td>//body/div[3]/div</td> + <td>0,0</td> +</tr> +<tr> + <td>assertText</td> + <td>//div[6]/div/a/span</td> + <td>Back to normal</td> +</tr> +<!--Restore back to normal--> +<tr> + <td>mouseClickAndWait</td> + <td>//div[6]/div/a/span</td> + <td>71,8</td> +</tr> +<tr> + <td>assertText</td> + <td>//body/div[3]/div//p</td> + <td>exact:Mode: edit State: normal</td> +</tr> +<tr> + <td>closeNotification</td> + <td>//body/div[3]/div</td> + <td>0,0</td> +</tr> +<tr> + <td>assertText</td> + <td>//div[@class="v-link v-widget"]/a/span</td> + <td>Done</td> +</tr> +<tr> + <td>assertText</td> + <td>//div[6]/div/a/span</td> + <td>Maximize</td> +</tr> +<tr> + <td>screenCapture</td> <td></td> + <td>final</td> </tr> </tbody></table> </body> |