Rev | Line | |
---|
[3505] | 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 { |
---|
| 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.