Changeset 3432


Ignore:
Timestamp:
10/28/10 16:45:02 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #1394 - Caso de Teste EL-938 - Adicionar compromisso

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  
    55import org.junit.Test; 
    66 
    7 import com.thoughtworks.selenium.DefaultSelenium; 
     7import br.gov.serpro.cte.connection.LoginExpresso; 
     8import br.gov.serpro.cte.connection.DAOSelenium; 
     9 
    810import com.thoughtworks.selenium.SeleneseTestCase; 
    911 
     
    1315        public void setUp() throws Exception 
    1416        { 
    15                 String url       = "https://cte.serpro.gov.br"; 
    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(); 
    1820        } 
    1921         
     
    2224        { 
    2325                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() ); 
    2629                selenium.click("submitit"); 
    27                 selenium.waitForPageToLoad("10000"); 
    2830                selenium.open("/calendar/index.php"); 
     31                selenium.waitForPageToLoad("30000"); 
    2932                selenium.click("//div[@id='toolbar']/table/tbody/tr/td[2]"); 
    3033                javax.swing.JOptionPane.showMessageDialog(null, "Fim Execução !"); 
Note: See TracChangeset for help on using the changeset viewer.