Revision 3426,
941 bytes
checked in by alexandrecorreia, 14 years ago
(diff) |
Ticket #1394 - Caso de Teste EL-938 - Adicionar compromisso
|
Rev | Line | |
---|
[3426] | 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 com.thoughtworks.selenium.DefaultSelenium; |
---|
| 8 | import com.thoughtworks.selenium.SeleneseTestCase; |
---|
| 9 | |
---|
| 10 | public class TestAdicionarCompromisso extends SeleneseTestCase |
---|
| 11 | { |
---|
| 12 | @Before |
---|
| 13 | public void setUp() throws Exception |
---|
| 14 | { |
---|
| 15 | String url = "https://cte.serpro.gov.br"; |
---|
| 16 | selenium = new DefaultSelenium("localhost", 4444, "*pifirefox", url); |
---|
| 17 | selenium.start(); |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | @Test |
---|
| 21 | public void testa() |
---|
| 22 | { |
---|
| 23 | selenium.open("/"); |
---|
| 24 | selenium.type("user", "alexandrecorreia"); |
---|
| 25 | selenium.type("passwd", "senha1234"); |
---|
| 26 | selenium.click("submitit"); |
---|
| 27 | selenium.waitForPageToLoad("10000"); |
---|
| 28 | selenium.open("/calendar/index.php"); |
---|
| 29 | selenium.click("//div[@id='toolbar']/table/tbody/tr/td[2]"); |
---|
| 30 | javax.swing.JOptionPane.showMessageDialog(null, "Fim Execução !"); |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | @After |
---|
| 34 | public void tearDown() throws Exception |
---|
| 35 | { |
---|
| 36 | selenium.close(); |
---|
| 37 | } |
---|
| 38 | |
---|
| 39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.