source: devel/testlink/automation2.0/src/test/java/org/expressolivre/cte/email/compor/EnviarEmailTestCase.java @ 4675

Revision 4675, 1012 bytes checked in by luiz-fernando, 13 years ago (diff)

Ticket #1771 - Refactoring, criadas novas classes para Pasta, Filtro, Pesquisa

RevLine 
[3782]1package org.expressolivre.cte.email.compor;
[3663]2
[3782]3import org.expressolivre.cte.common.BaseEmailTestCase;
[4344]4import org.expressolivre.cte.pages.email.MailPage;
5import org.testng.Assert;
[3663]6import org.testng.annotations.Test;
7
8/**
[3766]9 * Suite:[FUN02.1] Compor Mensagem
10 *
11 * Caso de Teste: EL-523:Enviar mensagem
12 *
13 * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item=
14 * testcase&id=EL-523
15 *
[3663]16 * @author L.F.Estivalet (Serpro)
17 *
18 *         Created on Jan 4, 2011 at 3:53:04 PM
19 *
20 */
21public class EnviarEmailTestCase extends BaseEmailTestCase {
22
[3766]23        /**
24         * Executa o teste. Envia mensagem para email, assunto e texto pre-definidos
[4344]25         * no arquivo de configuracao. Apos envio, verifica se o email foi movido
26         * para a pasta de emails enviados.
[3766]27         */
[3663]28        @Test
[4527]29        public void enviarEmail() {
[3663]30                mp.composeEmail(EMAIL_TESTE_1, EMAIL_ASSUNTO, EMAIL_TEXTO);
31                mp.sendMail();
[3708]32                mp.assertMessage(MSG_EMAIL_ENVIADO);
[4344]33                Assert.assertNotNull(mp.findEmailIdBySubject(MailPage.SENT_FOLDER,
34                                EMAIL_ASSUNTO));
[3663]35        }
[4527]36
[3663]37}
Note: See TracBrowser for help on using the repository browser.