You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2012/07/24 17:41:28 UTC

svn commit: r1365138 - in /myfaces/tobago/trunk/tobago-example/tobago-example-test/src: main/webapp/tc/tree/ test/java/org/apache/myfaces/tobago/example/test/tc/tree/

Author: lofwyr
Date: Tue Jul 24 15:41:27 2012
New Revision: 1365138

URL: http://svn.apache.org/viewvc?rev=1365138&view=rev
Log:
TOBAGO-1174: Easier handling of Selenium tests
- testing tree

Added:
    myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/tree/tree-expanded.selenium.html
    myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/tree/tree-marked-with-model.selenium.html
    myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/tree/tree-marked-without-model.selenium.html
Removed:
    myfaces/tobago/trunk/tobago-example/tobago-example-test/src/test/java/org/apache/myfaces/tobago/example/test/tc/tree/

Added: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/tree/tree-expanded.selenium.html
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/tree/tree-expanded.selenium.html?rev=1365138&view=auto
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/tree/tree-expanded.selenium.html (added)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/tree/tree-expanded.selenium.html Tue Jul 24 15:41:27 2012
@@ -0,0 +1,72 @@
+<?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">
+
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+
+<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://localhost:8080/faces/tc/button/link-attribute.xhtml" />
+<title>New Test</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">New Test</td></tr>
+</thead><tbody>
+<tr>
+	<td>open</td>
+	<td>/faces/tc/tree/tree-expanded.xhtml</td>
+	<td></td>
+</tr>
+<tr>
+	<td>clickAndWait</td>
+	<td>id=page:reset</td>
+	<td></td>
+</tr>
+<!--node expanded-->
+<tr>
+	<td>assertAttribute</td>
+	<td>//div[@id='page:tree:8:node']@class</td>
+	<td>tobago-treeNode tobago-treeNode-markup-expanded tobago-treeNode-markup-folder</td>
+</tr>
+<tr>
+	<td>click</td>
+	<td>//span[@id='page:tree:8:j_id3']/img[2]</td>
+	<td></td>
+</tr>
+<!--node expanded-->
+<tr>
+	<td>assertAttribute</td>
+	<td>//div[@id='page:tree:8:node']@class</td>
+	<td>tobago-treeNode tobago-treeNode-markup-folder</td>
+</tr>
+<tr>
+	<td>clickAndWait</td>
+	<td>id=page:tree:7:j_id4</td>
+	<td></td>
+</tr>
+<!--node collapsed-->
+<tr>
+	<td>assertAttribute</td>
+	<td>//div[@id='page:tree:8:node']@class</td>
+	<td>tobago-treeNode tobago-treeNode-markup-folder</td>
+</tr>
+</tbody></table>
+</body>
+</html>

Added: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/tree/tree-marked-with-model.selenium.html
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/tree/tree-marked-with-model.selenium.html?rev=1365138&view=auto
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/tree/tree-marked-with-model.selenium.html (added)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/tree/tree-marked-with-model.selenium.html Tue Jul 24 15:41:27 2012
@@ -0,0 +1,98 @@
+<?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">
+
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+
+<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://localhost:8080/faces/tc/button/link-attribute.xhtml" />
+<title>New Test</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">New Test</td></tr>
+</thead><tbody>
+<tr>
+	<td>open</td>
+	<td>/faces/tc/tree/tree-marked-with-model.xhtml</td>
+	<td></td>
+</tr>
+<!--nothing marked-->
+<tr>
+	<td>assertAttribute</td>
+	<td>//div[@id='page:tree:1:node']@class</td>
+	<td>tobago-treeNode</td>
+</tr>
+<tr>
+	<td>assertAttribute</td>
+	<td>//div[@id='page:tree:2:node']@class</td>
+	<td>tobago-treeNode</td>
+</tr>
+<tr>
+	<td>clickAndWait</td>
+	<td>id=page:tree:1:command</td>
+	<td></td>
+</tr>
+<!--sports marked-->
+<tr>
+	<td>assertAttribute</td>
+	<td>//div[@id='page:tree:1:node']@class</td>
+	<td>tobago-treeNode tobago-treeNode-markup-marked</td>
+</tr>
+<tr>
+	<td>assertAttribute</td>
+	<td>//div[@id='page:tree:2:node']@class</td>
+	<td>tobago-treeNode</td>
+</tr>
+<tr>
+	<td>clickAndWait</td>
+	<td>id=page:reload</td>
+	<td></td>
+</tr>
+<!--nothing marked-->
+<tr>
+	<td>assertAttribute</td>
+	<td>//div[@id='page:tree:1:node']@class</td>
+    <td>tobago-treeNode tobago-treeNode-markup-marked</td>
+</tr>
+<tr>
+	<td>assertAttribute</td>
+	<td>//div[@id='page:tree:2:node']@class</td>
+	<td>tobago-treeNode</td>
+</tr>
+<tr>
+	<td>clickAndWait</td>
+	<td>id=page:tree:1:command</td>
+	<td></td>
+</tr>
+<!--sports marked-->
+<tr>
+	<td>assertAttribute</td>
+	<td>//div[@id='page:tree:1:node']@class</td>
+	<td>tobago-treeNode tobago-treeNode-markup-marked</td>
+</tr>
+<tr>
+	<td>assertAttribute</td>
+	<td>//div[@id='page:tree:2:node']@class</td>
+	<td>tobago-treeNode</td>
+</tr>
+</tbody></table>
+</body>
+</html>

Added: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/tree/tree-marked-without-model.selenium.html
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/tree/tree-marked-without-model.selenium.html?rev=1365138&view=auto
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/tree/tree-marked-without-model.selenium.html (added)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/tree/tree-marked-without-model.selenium.html Tue Jul 24 15:41:27 2012
@@ -0,0 +1,98 @@
+<?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">
+
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+
+<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://localhost:8080/faces/tc/button/link-attribute.xhtml" />
+<title>New Test</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">New Test</td></tr>
+</thead><tbody>
+<tr>
+	<td>open</td>
+	<td>/faces/tc/tree/tree-marked-without-model.xhtml</td>
+	<td></td>
+</tr>
+<!--nothing marked-->
+<tr>
+	<td>assertAttribute</td>
+	<td>//div[@id='page:tree:1:node']@class</td>
+	<td>tobago-treeNode</td>
+</tr>
+<tr>
+	<td>assertAttribute</td>
+	<td>//div[@id='page:tree:2:node']@class</td>
+	<td>tobago-treeNode</td>
+</tr>
+<tr>
+	<td>clickAndWait</td>
+	<td>id=page:tree:1:command</td>
+	<td></td>
+</tr>
+<!--sports marked-->
+<tr>
+	<td>assertAttribute</td>
+	<td>//div[@id='page:tree:1:node']@class</td>
+	<td>tobago-treeNode tobago-treeNode-markup-marked</td>
+</tr>
+<tr>
+	<td>assertAttribute</td>
+	<td>//div[@id='page:tree:2:node']@class</td>
+	<td>tobago-treeNode</td>
+</tr>
+<tr>
+	<td>clickAndWait</td>
+	<td>id=page:reload</td>
+	<td></td>
+</tr>
+<!--nothing marked-->
+<tr>
+	<td>assertAttribute</td>
+	<td>//div[@id='page:tree:1:node']@class</td>
+	<td>tobago-treeNode</td>
+</tr>
+<tr>
+	<td>assertAttribute</td>
+	<td>//div[@id='page:tree:2:node']@class</td>
+	<td>tobago-treeNode</td>
+</tr>
+<tr>
+	<td>clickAndWait</td>
+	<td>id=page:tree:1:command</td>
+	<td></td>
+</tr>
+<!--sports marked-->
+<tr>
+	<td>assertAttribute</td>
+	<td>//div[@id='page:tree:1:node']@class</td>
+	<td>tobago-treeNode tobago-treeNode-markup-marked</td>
+</tr>
+<tr>
+	<td>assertAttribute</td>
+	<td>//div[@id='page:tree:2:node']@class</td>
+	<td>tobago-treeNode</td>
+</tr>
+</tbody></table>
+</body>
+</html>