Line | |
---|
1 | package br.gov.serpro.expresso.cte.email.compor; |
---|
2 | |
---|
3 | import org.openqa.selenium.Alert; |
---|
4 | import org.testng.annotations.Test; |
---|
5 | |
---|
6 | import br.gov.serpro.expresso.cte.common.BaseEmailTestCase; |
---|
7 | |
---|
8 | /** |
---|
9 | * Suite:[FUN02.1] Compor Mensagem |
---|
10 | * |
---|
11 | * Caso de Teste: EL-533:Enviar mensagem sem assunto |
---|
12 | * |
---|
13 | * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item= |
---|
14 | * testcase&id=EL-533 |
---|
15 | * |
---|
16 | * @author L.F.Estivalet (Serpro) |
---|
17 | * |
---|
18 | * Created on Jan 4, 2011 at 3:53:07 PM |
---|
19 | * |
---|
20 | */ |
---|
21 | public class EnviarEmailSemAssuntoTestCase extends BaseEmailTestCase { |
---|
22 | |
---|
23 | /** |
---|
24 | * Executa o teste. Envia um email sem assunto. |
---|
25 | */ |
---|
26 | @Test |
---|
27 | public void test() { |
---|
28 | mp.composeEmail(EMAIL_TESTE_1, "", EMAIL_TEXTO_SEM_ASSUNTO); |
---|
29 | mp.sendMail(); |
---|
30 | // Sistema exibe um alerta para confirmacao do envio do email sem |
---|
31 | // assunto. |
---|
32 | Alert noSubject = driver.switchTo().alert(); |
---|
33 | assert MSG_ENVIAR_SEM_ASSUNTO.equals(noSubject.getText()); |
---|
34 | noSubject.accept(); |
---|
35 | mp.assertMessage(MSG_EMAIL_ENVIADO); |
---|
36 | } |
---|
37 | |
---|
38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.