Changeset 3432 for devel/testlink
- Timestamp:
- 10/28/10 16:45:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/testlink/calendar/FUN03.2/src/test/java/br/gov/serpro/cte/agenda/casoteste/TestAdicionarCompromisso.java
r3426 r3432 5 5 import org.junit.Test; 6 6 7 import com.thoughtworks.selenium.DefaultSelenium; 7 import br.gov.serpro.cte.connection.LoginExpresso; 8 import br.gov.serpro.cte.connection.DAOSelenium; 9 8 10 import com.thoughtworks.selenium.SeleneseTestCase; 9 11 … … 13 15 public void setUp() throws Exception 14 16 { 15 String url 16 selenium = new DefaultSelenium("localhost", 4444, "*pifirefox", url);17 selenium .start();17 String url = "https://cte.serpro.gov.br"; 18 DAOSelenium conn = new DAOSelenium( "localhost", 4444, "*pifirefox", url); 19 selenium = conn.newConnection(); 18 20 } 19 21 … … 22 24 { 23 25 selenium.open("/"); 24 selenium.type("user", "alexandrecorreia"); 25 selenium.type("passwd", "senha1234"); 26 27 selenium.type( "user", LoginExpresso.USER_EXPRESSO.getValue() ); 28 selenium.type( "passwd", LoginExpresso.USER_EXPRESSO.getValue() ); 26 29 selenium.click("submitit"); 27 selenium.waitForPageToLoad("10000");28 30 selenium.open("/calendar/index.php"); 31 selenium.waitForPageToLoad("30000"); 29 32 selenium.click("//div[@id='toolbar']/table/tbody/tr/td[2]"); 30 33 javax.swing.JOptionPane.showMessageDialog(null, "Fim Execução !");
Note: See TracChangeset
for help on using the changeset viewer.