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

Revision 3505, 1.0 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:28:37 PM
11 *
12 */
13public class EnviarEmailAnexoTestCase extends ExpressoMailTestCase {
14
15        @Test
16        public void testaEnviarEmailAnexo() throws Exception {
17                super.composeEmail(Valor.EMAIL_TESTE_1.getValue(),
18                                Valor.ASSUNTO_ANEXO.getValue());
19                selenium.click(Campo.ADICIONAR_ANEXO.getValue());
20                selenium.type(Campo.ANEXO_1.getValue(), Valor.ANEXO_1.getValue());
21                super.sendEmail();
22        }
23
24        @Test
25        public void testaEnviarEmailMultiplosAnexos() throws Exception {
26                super.composeEmail(Valor.EMAIL_TESTE_1.getValue(),
27                                Valor.ASSUNTO_MULTIPLOS_ANEXOS.getValue());
28                selenium.click(Campo.ADICIONAR_ANEXO.getValue());
29                selenium.type(Campo.ANEXO_1.getValue(), Valor.ANEXO_1.getValue());
30                selenium.click(Campo.ADICIONAR_ANEXO.getValue());
31                selenium.type(Campo.ANEXO_2.getValue(), Valor.ANEXO_2.getValue());
32                super.sendEmail();
33        }
34
35}
Note: See TracBrowser for help on using the repository browser.