diff options
author | Mikael Grankvist <mikael.grankvist@itmill.com> | 2009-11-24 09:13:34 +0000 |
---|---|---|
committer | Mikael Grankvist <mikael.grankvist@itmill.com> | 2009-11-24 09:13:34 +0000 |
commit | ef81d11d3ed443c0aa544556a16370156e8d473d (patch) | |
tree | bb219b22f5e877cddb88de2953ce16f8edae012f /tests/integration-testscripts | |
parent | 4f6f373c195093f003f5144ae610fa2097f77971 (diff) | |
download | vaadin-framework-ef81d11d3ed443c0aa544556a16370156e8d473d.tar.gz vaadin-framework-ef81d11d3ed443c0aa544556a16370156e8d473d.zip |
Added server integration tests. For #3386
svn changeset:9973/svn branch:6.2
Diffstat (limited to 'tests/integration-testscripts')
3 files changed, 247 insertions, 0 deletions
diff --git a/tests/integration-testscripts/Add_Sampler_to_Liferay.html b/tests/integration-testscripts/Add_Sampler_to_Liferay.html new file mode 100644 index 0000000000..41a6ea7d20 --- /dev/null +++ b/tests/integration-testscripts/Add_Sampler_to_Liferay.html @@ -0,0 +1,87 @@ +<?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="http://192.168.56.102:8080/" /> +<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>pause</td> + <td>200</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>pause</td> + <td>200</td> + <td></td> +</tr> +<tr> + <td>mouseClick</td> + <td>//img[@onclick="document.getElementById('layoutTemplateId1').checked = true;"]</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>pause</td> + <td>3000</td> + <td></td> +</tr> +<tr> + <td>mouseClickAndWait</td> + <td>//div[@id='Vaadin-Sampler']/p/a</td> + <td>9,8</td> +</tr> + +</tbody></table> +</body> +</html> diff --git a/tests/integration-testscripts/sampler_deployment.tpl b/tests/integration-testscripts/sampler_deployment.tpl new file mode 100644 index 0000000000..00823cc62d --- /dev/null +++ b/tests/integration-testscripts/sampler_deployment.tpl @@ -0,0 +1,83 @@ +<?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>demosampler-all-samples</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">sampler-all-samples</td></tr>
+</thead><tbody>
+<tr>
+ <td>openAndWait</td>
+ <td>/demo</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForVaadin</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
+ <td>mouseClickAndWait</td>
+ <td>//div[@id='sampler']/a/strong</td>
+ <td>96,14</td>
+</tr>
+<tr>
+ <td>pause</td>
+ <td>1000</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForVaadin</td>
+ <td></td>
+ <td></td>
+</tr>
+<!--Start scrolling through all samples in order-->
+<tr>
+ <td>mouseClick</td>
+ <td>vaadin=demosampler::/VVerticalLayout[0]/ChildComponentContainer[0]/VHorizontalLayout[0]/ChildComponentContainer[7]/VHorizontalLayout[0]/ChildComponentContainer[1]/VNativeButton[0]</td>
+ <td>11,13</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>@server@_1</td>
+</tr>
+<tr>
+ <td>mouseClick</td>
+ <td>vaadin=demosampler::/VVerticalLayout[0]/ChildComponentContainer[0]/VHorizontalLayout[0]/ChildComponentContainer[7]/VHorizontalLayout[0]/ChildComponentContainer[1]/VNativeButton[0]</td>
+ <td>11,13</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>@server@_2</td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
diff --git a/tests/integration-testscripts/sampler_deployment_liferay.html b/tests/integration-testscripts/sampler_deployment_liferay.html new file mode 100644 index 0000000000..da5c51af50 --- /dev/null +++ b/tests/integration-testscripts/sampler_deployment_liferay.html @@ -0,0 +1,77 @@ +<?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>Test_Sampler</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">Test_Sampler</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>pause</td> + <td>500</td> + <td></td> +</tr> +<tr> + <td>screenCapture</td> + <td></td> + <td></td> +</tr> +<tr> + <td>mouseClick</td> + <td>vaadin=demosampler::/VVerticalLayout[0]/ChildComponentContainer[0]/VHorizontalLayout[0]/ChildComponentContainer[7]/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></td> +</tr> +<tr> + <td>mouseClick</td> + <td>vaadin=demosampler::/VVerticalLayout[0]/ChildComponentContainer[0]/VHorizontalLayout[0]/ChildComponentContainer[7]/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></td> +</tr> + +</tbody></table> +</body> +</html> |