1 19 20 package org.apache.geronimo.testsuite.console; 21 22 import org.testng.annotations.Test; 23 24 29 @Test 30 public class SimpleLoginTest 31 extends ConsoleTestSupport 32 { 33 40 @Test 41 public void testLoginAndLogout() throws Exception { 42 login(); 43 logout(); 44 } 45 46 @Test 47 public void testClickSomeLinks() throws Exception { 48 login(); 49 50 selenium.click("link=Information"); 51 selenium.waitForPageToLoad("30000"); 52 assertEquals("Geronimo Console", selenium.getTitle()); 53 54 selenium.click("link=JVM"); 55 selenium.waitForPageToLoad("30000"); 56 assertEquals("Geronimo Console", selenium.getTitle()); 57 58 selenium.click("link=DB Info"); 59 selenium.waitForPageToLoad("30000"); 60 assertEquals("Geronimo Console", selenium.getTitle()); 61 62 logout(); 63 } 64 } 65 66 67 | Popular Tags |