package br.gov.serpro.cte.email.compor; import org.junit.Test; import br.gov.serpro.cte.common.ExpressoMailTestCase; /** * @author L.F.Estivalet (Serpro) * * Created on Nov 16, 2010 at 3:28:37 PM * */ public class EnviarEmailAnexoTestCase extends ExpressoMailTestCase { @Test public void testaEnviarEmailAnexo() throws Exception { super.composeEmail(Valor.EMAIL_TESTE_1.getValue(), Valor.ASSUNTO_ANEXO.getValue()); selenium.click(Campo.ADICIONAR_ANEXO.getValue()); selenium.type(Campo.ANEXO_1.getValue(), Valor.ANEXO_1.getValue()); super.sendEmail(); } @Test public void testaEnviarEmailMultiplosAnexos() throws Exception { super.composeEmail(Valor.EMAIL_TESTE_1.getValue(), Valor.ASSUNTO_MULTIPLOS_ANEXOS.getValue()); selenium.click(Campo.ADICIONAR_ANEXO.getValue()); selenium.type(Campo.ANEXO_1.getValue(), Valor.ANEXO_1.getValue()); selenium.click(Campo.ADICIONAR_ANEXO.getValue()); selenium.type(Campo.ANEXO_2.getValue(), Valor.ANEXO_2.getValue()); super.sendEmail(); } }