You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by cc...@apache.org on 2006/12/13 11:53:13 UTC
svn commit: r486591 [2/2] -
/geronimo/server/branches/2.0-M1/testsuite/console-testsuite/basic/src/test/java/org/apache/geronimo/testsuite/console/
Added: geronimo/server/branches/2.0-M1/testsuite/console-testsuite/basic/src/test/java/org/apache/geronimo/testsuite/console/WebAccessLogViewerPortletTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.0-M1/testsuite/console-testsuite/basic/src/test/java/org/apache/geronimo/testsuite/console/WebAccessLogViewerPortletTest.java?view=auto&rev=486591
==============================================================================
--- geronimo/server/branches/2.0-M1/testsuite/console-testsuite/basic/src/test/java/org/apache/geronimo/testsuite/console/WebAccessLogViewerPortletTest.java (added)
+++ geronimo/server/branches/2.0-M1/testsuite/console-testsuite/basic/src/test/java/org/apache/geronimo/testsuite/console/WebAccessLogViewerPortletTest.java Wed Dec 13 02:53:10 2006
@@ -0,0 +1,46 @@
+/**
+ * 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.
+ */
+
+package org.apache.geronimo.testsuite.console;
+
+import org.testng.annotations.Test;
+
+/**
+ * Web access log portlet tests
+ *
+ * @version $Rev: 479803 $ $Date: 2006-11-27 15:26:54 -0800 (Mon, 27 Nov 2006) $
+ */
+@Test
+public class WebAccessLogViewerPortletTest
+ extends ConsoleTestSupport
+{
+ @Test
+ public void testWebAccessLogViewerLink() throws Exception {
+ login();
+
+ selenium.click("link=Server Logs");
+ selenium.waitForPageToLoad("30000");
+ assertEquals("Geronimo Console", selenium.getTitle());
+ // TODO: Update xpath
+ // assertEquals("Web Access Log Viewer", selenium.getText(
+ // "xpath=/html/body/table[@id='rootfragment']/tbody/tr[2]/td/table/tbody/tr[2]/td[4]/table/tbody/tr[1]/td/table/tbody/tr[1]/td/div/table/tbody/tr/td[2]/table/tbody/tr/td[1]/strong"));
+
+ logout();
+ }
+}
Added: geronimo/server/branches/2.0-M1/testsuite/console-testsuite/basic/src/test/java/org/apache/geronimo/testsuite/console/WebManagerPortletTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.0-M1/testsuite/console-testsuite/basic/src/test/java/org/apache/geronimo/testsuite/console/WebManagerPortletTest.java?view=auto&rev=486591
==============================================================================
--- geronimo/server/branches/2.0-M1/testsuite/console-testsuite/basic/src/test/java/org/apache/geronimo/testsuite/console/WebManagerPortletTest.java (added)
+++ geronimo/server/branches/2.0-M1/testsuite/console-testsuite/basic/src/test/java/org/apache/geronimo/testsuite/console/WebManagerPortletTest.java Wed Dec 13 02:53:10 2006
@@ -0,0 +1,45 @@
+/**
+ * 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.
+ */
+
+package org.apache.geronimo.testsuite.console;
+
+import org.testng.annotations.Test;
+
+/**
+ * Web manager portlet tests
+ *
+ * @version $Rev: 479803 $ $Date: 2006-11-27 15:26:54 -0800 (Mon, 27 Nov 2006) $
+ */
+@Test
+public class WebManagerPortletTest
+ extends ConsoleTestSupport
+{
+ @Test
+ public void testWebManagerLink() throws Exception {
+ login();
+
+ selenium.click("link=Web Server");
+ selenium.waitForPageToLoad("30000");
+ assertEquals("Geronimo Console", selenium.getTitle());
+ assertEquals("Web Server Manager", selenium.getText(
+ "xpath=/html/body/table[@id='rootfragment']/tbody/tr[2]/td/table/tbody/tr[2]/td[4]/table/tbody/tr[1]/td/table/tbody/tr[1]/td/div/table/tbody/tr/td[2]/table/tbody/tr/td[1]/strong"));
+
+ logout();
+ }
+}
Added: geronimo/server/branches/2.0-M1/testsuite/console-testsuite/basic/src/test/java/org/apache/geronimo/testsuite/console/WelcomePortletTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.0-M1/testsuite/console-testsuite/basic/src/test/java/org/apache/geronimo/testsuite/console/WelcomePortletTest.java?view=auto&rev=486591
==============================================================================
--- geronimo/server/branches/2.0-M1/testsuite/console-testsuite/basic/src/test/java/org/apache/geronimo/testsuite/console/WelcomePortletTest.java (added)
+++ geronimo/server/branches/2.0-M1/testsuite/console-testsuite/basic/src/test/java/org/apache/geronimo/testsuite/console/WelcomePortletTest.java Wed Dec 13 02:53:10 2006
@@ -0,0 +1,47 @@
+/**
+ * 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.
+ */
+
+package org.apache.geronimo.testsuite.console;
+
+import org.testng.annotations.Test;
+
+/**
+ * Welcome portlet tests
+ *
+ * @version $Rev: 479803 $ $Date: 2006-11-27 15:26:54 -0800 (Mon, 27 Nov 2006) $
+ */
+@Test
+public class WelcomePortletTest
+ extends ConsoleTestSupport
+{
+ @Test
+ public void testWelcomeLink() throws Exception {
+ login();
+
+ selenium.click("link=JVM");
+ selenium.waitForPageToLoad("30000");
+ selenium.click("link=Welcome");
+ selenium.waitForPageToLoad("30000");
+ assertEquals("Geronimo Console", selenium.getTitle());
+ assertEquals("Welcome", selenium.getText(
+ "xpath=/html/body/table[@id='rootfragment']/tbody/tr[2]/td/table/tbody/tr[2]/td[4]/table/tbody/tr[1]/td/table/tbody/tr[1]/td/div/table/tbody/tr/td[2]/table/tbody/tr/td[1]/strong"));
+
+ logout();
+ }
+}