Revision 3432,
1.0 KB
checked in by alexandrecorreia, 14 years ago
(diff) |
Ticket #1394 - Caso de Teste EL-938 - Adicionar compromisso
|
Line | |
---|
1 | package br.gov.serpro.cte.agenda.casoteste; |
---|
2 | |
---|
3 | import org.junit.After; |
---|
4 | import org.junit.Before; |
---|
5 | import org.junit.Test; |
---|
6 | |
---|
7 | import br.gov.serpro.cte.connection.LoginExpresso; |
---|
8 | import br.gov.serpro.cte.connection.DAOSelenium; |
---|
9 | |
---|
10 | import com.thoughtworks.selenium.SeleneseTestCase; |
---|
11 | |
---|
12 | public class TestAdicionarCompromisso extends SeleneseTestCase |
---|
13 | { |
---|
14 | @Before |
---|
15 | public void setUp() throws Exception |
---|
16 | { |
---|
17 | String url = "https://cte.serpro.gov.br"; |
---|
18 | DAOSelenium conn = new DAOSelenium( "localhost", 4444, "*pifirefox", url); |
---|
19 | selenium = conn.newConnection(); |
---|
20 | } |
---|
21 | |
---|
22 | @Test |
---|
23 | public void testa() |
---|
24 | { |
---|
25 | selenium.open("/"); |
---|
26 | |
---|
27 | selenium.type( "user", LoginExpresso.USER_EXPRESSO.getValue() ); |
---|
28 | selenium.type( "passwd", LoginExpresso.USER_EXPRESSO.getValue() ); |
---|
29 | selenium.click("submitit"); |
---|
30 | selenium.open("/calendar/index.php"); |
---|
31 | selenium.waitForPageToLoad("30000"); |
---|
32 | selenium.click("//div[@id='toolbar']/table/tbody/tr/td[2]"); |
---|
33 | javax.swing.JOptionPane.showMessageDialog(null, "Fim Execução !"); |
---|
34 | } |
---|
35 | |
---|
36 | @After |
---|
37 | public void tearDown() throws Exception |
---|
38 | { |
---|
39 | selenium.close(); |
---|
40 | } |
---|
41 | |
---|
42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.