source: devel/testlink/calendar/FUN03.2/src/test/java/br/gov/serpro/cte/email/compor/EnviarEmailCopiaTestCase.java @ 3505

Revision 3505, 1.6 KB checked in by luiz-fernando, 13 years ago (diff)

Ticket #1402 - Automacao dos casos de teste do modulo ExpressoMail? documentados no Testlink

Line 
1package br.gov.serpro.cte.email.compor;
2
3import org.junit.Test;
4
5import br.gov.serpro.cte.common.ExpressoMailTestCase;
6
7/**
8 * @author L.F.Estivalet (Serpro)
9 *
10 *         Created on Nov 16, 2010 at 3:40:11 PM
11 *
12 */
13public class EnviarEmailCopiaTestCase extends ExpressoMailTestCase {
14
15        @Test
16        public void testaEnviarEmailCopia() throws Exception {
17                super.composeEmail(Valor.EMAIL_TESTE_1.getValue(),
18                                Valor.ASSUNTO_COPIA.getValue());
19                selenium.click(Campo.COPIA_1.getValue());
20                selenium.type(Campo.COPIA_CAMPO_1.getValue(),
21                                Valor.EMAIL_TESTE_2.getValue());
22                super.sendEmail();
23        }
24
25        @Test
26        public void testaEnviarEmailCopiaOculta() throws Exception {
27                super.composeEmail(Valor.EMAIL_TESTE_1.getValue(),
28                                Valor.ASSUNTO_COPIA_OCULTA.getValue());
29                selenium.click(Campo.COPIA_OCULTA_1.getValue());
30                selenium.type(Campo.COPIA_OCULTA_CAMPO_1.getValue(),
31                                Valor.EMAIL_TESTE_3.getValue());
32                super.sendEmail();
33        }
34
35        @Test
36        public void testaEnviarEmailSomenteCopiaOculta() throws Exception {
37                super.composeEmail();
38                selenium.click(Campo.COPIA_OCULTA_1.getValue());
39                selenium.type(Campo.COPIA_OCULTA_CAMPO_1.getValue(),
40                                Valor.EMAIL_TESTE_1.getValue());
41                selenium.type(Campo.ASSUNTO_1.getValue(),
42                                Valor.ASSUNTO_SOMENTE_COPIA_OCULTA.getValue());
43                super.sendEmail();
44        }
45
46        @Test
47        public void testaEnviarEmailSomenteCopia() throws Exception {
48                super.composeEmail();
49                selenium.click(Campo.COPIA_1.getValue());
50                selenium.type(Campo.COPIA_CAMPO_1.getValue(),
51                                Valor.EMAIL_TESTE_1.getValue());
52                selenium.type(Campo.ASSUNTO_1.getValue(),
53                                Valor.ASSUNTO_SOMENTE_COPIA.getValue());
54                super.sendEmail();
55        }
56
57}
Note: See TracBrowser for help on using the repository browser.