summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenri Sara <henri.sara@itmill.com>2011-08-03 10:45:37 +0000
committerHenri Sara <henri.sara@itmill.com>2011-08-03 10:45:37 +0000
commitf34695c63cb4a212671cd8c03721c0ed8cad3282 (patch)
treeffec7d17cc63ad19294ee56dfad5bac0603de18c
parent2d3763b817a0d3adea166eba7dd168530c9446a3 (diff)
downloadvaadin-framework-f34695c63cb4a212671cd8c03721c0ed8cad3282.tar.gz
vaadin-framework-f34695c63cb4a212671cd8c03721c0ed8cad3282.zip
#7266 removed dependencies from integration tests to Sampler: Liferay 5; fixed Liferay 5 portlet 2 integration test
svn changeset:20096/svn branch:6.7
-rw-r--r--tests/integration-testscripts/Liferay-5/Add_Sampler_to_Liferay.html97
-rw-r--r--tests/integration-testscripts/Liferay-5/integration-test-liferay-5.2.3-portlet2.html16
-rw-r--r--tests/integration-testscripts/Liferay-5/integration-test-liferay-5.2.3-sampler.html82
-rw-r--r--tests/integration_tests.xml49
4 files changed, 10 insertions, 234 deletions
diff --git a/tests/integration-testscripts/Liferay-5/Add_Sampler_to_Liferay.html b/tests/integration-testscripts/Liferay-5/Add_Sampler_to_Liferay.html
deleted file mode 100644
index 1148be05fe..0000000000
--- a/tests/integration-testscripts/Liferay-5/Add_Sampler_to_Liferay.html
+++ /dev/null
@@ -1,97 +0,0 @@
-<?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>Add_Sampler_to_Liferay</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">Add_Sampler_to_Liferay</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/web/guest</td>
- <td></td>
-</tr>
-<tr>
- <td>mouseClickAndWait</td>
- <td>link=Login as bruno</td>
- <td>48,8</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>//div[@id='add-page']/a/span</td>
- <td>44,113</td>
-</tr>
-<tr>
- <td>enterCharacter</td>
- <td>new_page</td>
- <td>sampler</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>link=Save</td>
- <td>26,13</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='navigation']/ul/li[2]/a/span</td>
- <td></td>
-</tr>
-<tr>
- <td>mouseClickAndWait</td>
- <td>link=sampler</td>
- <td>39,25</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>link=Layout Template</td>
- <td>122,21</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>layoutTemplateId1</td>
- <td></td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>layoutTemplateId1</td>
- <td>65,78</td>
-</tr>
-<tr>
- <td>mouseClickAndWait</td>
- <td>document.forms[1].elements[14]</td>
- <td>23,12</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>link=Add Application</td>
- <td>76,18</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='Vaadin-Sampler']/p/a</td>
- <td></td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>//div[@id='Vaadin-Sampler']/p/a</td>
- <td>9,8</td>
-</tr>
-<tr>
- <td>pause</td>
- <td>500</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForVaadin</td>
- <td></td>
- <td></td>
-</tr>
-
-</tbody></table>
-</body>
-</html>
diff --git a/tests/integration-testscripts/Liferay-5/integration-test-liferay-5.2.3-portlet2.html b/tests/integration-testscripts/Liferay-5/integration-test-liferay-5.2.3-portlet2.html
index 349c6fe806..4a1cb480b6 100644
--- a/tests/integration-testscripts/Liferay-5/integration-test-liferay-5.2.3-portlet2.html
+++ b/tests/integration-testscripts/Liferay-5/integration-test-liferay-5.2.3-portlet2.html
@@ -38,12 +38,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@id='navigation']/ul/li[3]/a/span</td>
+ <td>//div[@id='navigation']/ul/li[2]/a/span</td>
<td></td>
</tr>
<tr>
<td>mouseClickAndWait</td>
- <td>//div[@id='navigation']/ul/li[3]/a/span</td>
+ <td>//div[@id='navigation']/ul/li[2]/a/span</td>
<td>19,8</td>
</tr>
<tr>
@@ -93,32 +93,32 @@
</tr>
<tr>
<td>mouseClick</td>
- <td>vaadin=v-AddressBookPortlet_WAR_demo_LAYOUT_10714::/VVerticalLayout[0]/ChildComponentContainer[1]/VSplitPanelHorizontal[0]/VSplitPanelVertical[0]/VScrollTable[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[3]/domChild[0]/domChild[0]</td>
+ <td>vaadin=v-AddressBookPortlet_WAR_demo_LAYOUT_10706::/VVerticalLayout[0]/ChildComponentContainer[1]/VSplitPanelHorizontal[0]/VSplitPanelVertical[0]/VScrollTable[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[3]/domChild[0]/domChild[0]</td>
<td>24,10</td>
</tr>
<tr>
<td>click</td>
- <td>vaadin=v-AddressBookPortlet_WAR_demo_LAYOUT_10714::/VVerticalLayout[0]/ChildComponentContainer[1]/VSplitPanelHorizontal[0]/VSplitPanelVertical[0]/VForm[0]/VHorizontalLayout[0]/ChildComponentContainer[2]/VButton[0]/domChild[0]/domChild[0]</td>
+ <td>vaadin=v-AddressBookPortlet_WAR_demo_LAYOUT_10706::/VVerticalLayout[0]/ChildComponentContainer[1]/VSplitPanelHorizontal[0]/VSplitPanelVertical[0]/VForm[0]/VHorizontalLayout[0]/ChildComponentContainer[2]/VButton[0]/domChild[0]/domChild[0]</td>
<td></td>
</tr>
<tr>
<td>mouseClick</td>
- <td>vaadin=v-AddressBookPortlet_WAR_demo_LAYOUT_10714::/VVerticalLayout[0]/ChildComponentContainer[1]/VSplitPanelHorizontal[0]/VSplitPanelVertical[0]/VForm[0]/VFormLayout[0]/VFormLayout$VFormLayoutTable[0]/VFilterSelect[0]/domChild[1]</td>
+ <td>vaadin=v-AddressBookPortlet_WAR_demo_LAYOUT_10706::/VVerticalLayout[0]/ChildComponentContainer[1]/VSplitPanelHorizontal[0]/VSplitPanelVertical[0]/VForm[0]/VFormLayout[0]/VFormLayout$VFormLayoutTable[0]/VFilterSelect[0]/domChild[1]</td>
<td>9,11</td>
</tr>
<tr>
<td>mouseClick</td>
- <td>vaadin=v-AddressBookPortlet_WAR_demo_LAYOUT_10714::Root/VFilterSelect$SuggestionPopup[0]/VFilterSelect$SuggestionMenu[0]#item8</td>
+ <td>vaadin=v-AddressBookPortlet_WAR_demo_LAYOUT_10706::Root/VFilterSelect$SuggestionPopup[0]/VFilterSelect$SuggestionMenu[0]#item8</td>
<td>158,17</td>
</tr>
<tr>
<td>click</td>
- <td>vaadin=v-AddressBookPortlet_WAR_demo_LAYOUT_10714::/VVerticalLayout[0]/ChildComponentContainer[1]/VSplitPanelHorizontal[0]/VSplitPanelVertical[0]/VForm[0]/VHorizontalLayout[0]/ChildComponentContainer[0]/VButton[0]/domChild[0]/domChild[0]</td>
+ <td>vaadin=v-AddressBookPortlet_WAR_demo_LAYOUT_10706::/VVerticalLayout[0]/ChildComponentContainer[1]/VSplitPanelHorizontal[0]/VSplitPanelVertical[0]/VForm[0]/VHorizontalLayout[0]/ChildComponentContainer[0]/VButton[0]/domChild[0]/domChild[0]</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
- <td>vaadin=v-AddressBookPortlet_WAR_demo_LAYOUT_10714::/VVerticalLayout[0]/ChildComponentContainer[1]/VSplitPanelHorizontal[0]/VSplitPanelVertical[0]/VScrollTable[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[3]/domChild[6]/domChild[0]</td>
+ <td>vaadin=v-AddressBookPortlet_WAR_demo_LAYOUT_10706::/VVerticalLayout[0]/ChildComponentContainer[1]/VSplitPanelHorizontal[0]/VSplitPanelVertical[0]/VScrollTable[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[3]/domChild[6]/domChild[0]</td>
<td>New York</td>
</tr>
diff --git a/tests/integration-testscripts/Liferay-5/integration-test-liferay-5.2.3-sampler.html b/tests/integration-testscripts/Liferay-5/integration-test-liferay-5.2.3-sampler.html
deleted file mode 100644
index 889dac5030..0000000000
--- a/tests/integration-testscripts/Liferay-5/integration-test-liferay-5.2.3-sampler.html
+++ /dev/null
@@ -1,82 +0,0 @@
-<?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>sampler_deployment_liferay</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">sampler_deployment_liferay</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/web/guest/sampler</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForVaadin</td>
- <td></td>
- <td></td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=demosampler::/VVerticalLayout[0]/ChildComponentContainer[0]/VHorizontalLayout[0]/ChildComponentContainer[5]/VHorizontalLayout[0]/ChildComponentContainer[1]/VNativeButton[0]</td>
- <td>9,12</td>
-</tr>
-<tr>
- <td>waitForVaadin</td>
- <td></td>
- <td></td>
-</tr>
-<tr>
- <td>pause</td>
- <td>500</td>
- <td></td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=demosampler::/VVerticalLayout[0]/ChildComponentContainer[0]/VHorizontalLayout[0]/ChildComponentContainer[6]/VHorizontalLayout[0]/ChildComponentContainer[1]/VNativeButton[0]</td>
- <td>11,12</td>
-</tr>
-<tr>
- <td>waitForVaadin</td>
- <td></td>
- <td></td>
-</tr>
-<tr>
- <td>pause</td>
- <td>500</td>
- <td></td>
-</tr>
-<tr>
- <td>screenCapture</td>
- <td></td>
- <td>tooltips</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=demosampler::/VVerticalLayout[0]/ChildComponentContainer[0]/VHorizontalLayout[0]/ChildComponentContainer[6]/VHorizontalLayout[0]/ChildComponentContainer[1]/VNativeButton[0]</td>
- <td>11,12</td>
-</tr>
-<tr>
- <td>waitForVaadin</td>
- <td></td>
- <td></td>
-</tr>
-<tr>
- <td>pause</td>
- <td>500</td>
- <td></td>
-</tr>
-<tr>
- <td>screenCapture</td>
- <td></td>
- <td>icons</td>
-</tr>
-
-</tbody></table>
-</body>
-</html>
diff --git a/tests/integration_tests.xml b/tests/integration_tests.xml
index 71e8901137..1d6ba4fc9a 100644
--- a/tests/integration_tests.xml
+++ b/tests/integration_tests.xml
@@ -159,45 +159,9 @@
<sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-glassfish-3" />
</target>
- <!-- Test liferay sampler -->
- <target name="integration-test-test-liferay-5">
- <fileset dir="integration-testscripts" id="html-test-files" includes="Liferay-5/integration-test-liferay-5.2.3-sampler.html" />
- <pathconvert pathsep=" " property="test-liferay" refid="html-test-files" />
-
- <subant target="run-tests" failonerror="false" antfile="test.xml">
- <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
- <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
- <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
- <property name="server.start.succeeded" value="1" />
- <property name="browsers" value="${test_browsers}" />
- <property name="testfiles" value="${test-liferay}" />
- <property name="test-output-dir" value="../build/integration-test-output" />
-
- <fileset dir="." includes="test.xml" />
- </subant>
- </target>
-
- <!-- "deploy" sampler to liferay -->
- <target name="integration-test-init-liferay-5">
- <fileset dir="integration-testscripts" id="html-test-files" includes="Liferay-5/Add_Sampler_to_Liferay.html" />
- <pathconvert pathsep=" " property="init-liferay" refid="html-test-files" />
-
- <subant target="run-tests" failonerror="false" antfile="test.xml">
- <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
- <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
- <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
- <property name="server.start.succeeded" value="1" />
- <property name="browsers" value="${test_browsers}" />
- <property name="testfiles" value="${init-liferay}" />
- <property name="test-output-dir" value="../build/integration-test-output" />
-
- <fileset dir="." includes="test.xml" />
- </subant>
- </target>
-
<target name="integration-test-liferay-5-portlet2">
<fileset dir="integration-testscripts" id="html-test-files" includes="Liferay-5/integration-test-liferay-5.2.3-portlet2.html" />
- <pathconvert pathsep=" " property="init-liferay" refid="html-test-files" />
+ <pathconvert pathsep=" " property="liferay-portlet2" refid="html-test-files" />
<subant target="run-tests" failonerror="false" antfile="test.xml">
<property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
@@ -205,7 +169,7 @@
<property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
<property name="server.start.succeeded" value="1" />
<property name="browsers" value="${test_browsers}" />
- <property name="testfiles" value="${init-liferay}" />
+ <property name="testfiles" value="${liferay-portlet2}" />
<property name="test-output-dir" value="../build/integration-test-output" />
<fileset dir="." includes="test.xml" />
@@ -527,15 +491,6 @@
<target name="integration-test-liferay">
<antcall target="integration-test-start-liferay-5" />
- <trycatch property="tried">
- <try>
- <antcall target="integration-test-init-liferay-5" />
- <antcall target="integration-test-test-liferay-5" />
- </try>
- <catch>
- <echo message="Liferay sampler test failed. ${tried}" />
- </catch>
- </trycatch>
<antcall target="integration-test-liferay-5-portlet2" />
<antcall target="integration-test-stop-liferay-5" />
</target>