Revision 3543,
1.0 KB
checked in by luiz-fernando, 13 years ago
(diff) |
Ticket #1402 - Campos, mensagens e valores estao em properties
|
Rev | Line | |
---|
[3521] | 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 16, 2010 at 3:28:37 PM |
---|
| 11 | * |
---|
| 12 | */ |
---|
| 13 | public class EnviarEmailAnexoTestCase extends ExpressoMailTestCase { |
---|
[3523] | 14 | private boolean apagarEmail; |
---|
[3521] | 15 | |
---|
[3523] | 16 | /** |
---|
| 17 | * |
---|
| 18 | */ |
---|
| 19 | public EnviarEmailAnexoTestCase() { |
---|
| 20 | this.apagarEmail = true; |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | /** |
---|
| 24 | * @param apagarEmail |
---|
| 25 | */ |
---|
| 26 | public EnviarEmailAnexoTestCase(boolean apagarEmail) { |
---|
| 27 | this.apagarEmail = apagarEmail; |
---|
| 28 | } |
---|
| 29 | |
---|
[3521] | 30 | @Test |
---|
[3523] | 31 | public void testa() throws Exception { |
---|
[3543] | 32 | super.composeEmail(getValor("email.teste.1"), |
---|
| 33 | getValor("assunto.anexo"), getValor("texto.email.anexo")); |
---|
| 34 | selenium.click(getCampo("email.adicionar.anexo")); |
---|
| 35 | selenium.type(getCampo("email.anexo.1"), getValor("anexo.1")); |
---|
[3521] | 36 | super.sendEmail(); |
---|
[3543] | 37 | super.assertMessage(getCampo("email.mensagem"), |
---|
| 38 | getMensagem("email.enviado")); |
---|
[3521] | 39 | |
---|
[3523] | 40 | if (this.apagarEmail) { |
---|
| 41 | // Remove email da Caixa de Entrada, itens enviados e lixeira. |
---|
[3543] | 42 | super.removeEmail(getValor("assunto.anexo")); |
---|
[3523] | 43 | } |
---|
[3521] | 44 | } |
---|
| 45 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.