Revision 3523,
1014 bytes
checked in by luiz-fernando, 13 years ago
(diff) |
Ticket #1402 - Automacao dos casos de teste do Expresso documentados no Testlink
|
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 4:32:01 PM |
---|
| 11 | * |
---|
| 12 | */ |
---|
| 13 | public class EnviarEmailImportanteTestCase extends ExpressoMailTestCase { |
---|
[3523] | 14 | private boolean apagarEmail; |
---|
[3521] | 15 | |
---|
[3523] | 16 | /** |
---|
| 17 | * |
---|
| 18 | */ |
---|
| 19 | public EnviarEmailImportanteTestCase() { |
---|
| 20 | this.apagarEmail = true; |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | /** |
---|
| 24 | * @param apagarEmail |
---|
| 25 | */ |
---|
| 26 | public EnviarEmailImportanteTestCase(boolean apagarEmail) { |
---|
| 27 | this.apagarEmail = apagarEmail; |
---|
| 28 | } |
---|
| 29 | |
---|
[3521] | 30 | @Test |
---|
[3523] | 31 | public void testa() throws Exception { |
---|
[3521] | 32 | super.composeEmail(Valor.EMAIL_TESTE_1.getValue(), |
---|
| 33 | Valor.ASSUNTO_IMPORTANTE.getValue()); |
---|
| 34 | selenium.click(Campo.IMPORTANTE_CHECKBOX.getValue()); |
---|
| 35 | super.sendEmail(); |
---|
[3523] | 36 | super.assertMessage(Campo.MENSAGEM.getValue(), |
---|
| 37 | Mensagem.EMAIL_ENVIADO.getValue()); |
---|
| 38 | |
---|
| 39 | if (this.apagarEmail) { |
---|
| 40 | // Remove email da Caixa de Entrada, itens enviados e lixeira. |
---|
| 41 | super.removeEmail(Valor.ASSUNTO_IMPORTANTE.getValue()); |
---|
| 42 | } |
---|
| 43 | |
---|
[3521] | 44 | } |
---|
| 45 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.