Revision 3532,
986 bytes
checked in by luiz-fernando, 13 years ago
(diff) |
Ticket #1402 - Adicionado suporte para entrar com o conteudo do email
|
Rev | Line | |
---|
[3523] | 1 | package br.gov.serpro.cte.email.compor; |
---|
| 2 | |
---|
| 3 | import org.junit.Test; |
---|
| 4 | |
---|
| 5 | import br.gov.serpro.cte.common.ExpressoMailTestCase; |
---|
| 6 | |
---|
| 7 | /** |
---|
| 8 | * @author L.F.Estivalet (Serpro) |
---|
| 9 | * |
---|
| 10 | * Created on Nov 18, 2010 at 4:20:59 PM |
---|
| 11 | * |
---|
| 12 | */ |
---|
| 13 | public class EnviarEmailMultiplosAnexosTestCase extends ExpressoMailTestCase { |
---|
| 14 | |
---|
| 15 | @Test |
---|
| 16 | public void testa() throws Exception { |
---|
| 17 | super.composeEmail(Valor.EMAIL_TESTE_1.getValue(), |
---|
[3532] | 18 | Valor.ASSUNTO_MULTIPLOS_ANEXOS.getValue(), |
---|
| 19 | Valor.TEXTO_EMAIL_MULTIPLOS_ANEXOS.getValue()); |
---|
[3523] | 20 | selenium.click(Campo.ADICIONAR_ANEXO.getValue()); |
---|
| 21 | selenium.type(Campo.ANEXO_1.getValue(), Valor.ANEXO_1.getValue()); |
---|
| 22 | selenium.click(Campo.ADICIONAR_ANEXO.getValue()); |
---|
| 23 | selenium.type(Campo.ANEXO_2.getValue(), Valor.ANEXO_2.getValue()); |
---|
| 24 | super.sendEmail(); |
---|
| 25 | super.assertMessage(Campo.MENSAGEM.getValue(), |
---|
| 26 | Mensagem.EMAIL_ENVIADO.getValue()); |
---|
| 27 | |
---|
| 28 | // Remove email da Caixa de Entrada, itens enviados e lixeira. |
---|
| 29 | super.removeEmail(Valor.ASSUNTO_MULTIPLOS_ANEXOS.getValue()); |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.