Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/connection/LoginExpresso.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/connection/LoginExpresso.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/connection/LoginExpresso.java	(revision 3521)
@@ -0,0 +1,43 @@
+/**
+ * Author		: Alexandre Correia
+ * ClasseName	: LoginExpresso 
+ * Date			: 28/10/2010
+ * 
+ * Retorna o nome do usuario e senha
+ * 
+ */
+
+package br.gov.serpro.cte.connection;
+
+
+public enum LoginExpresso
+{
+	/**
+	 *	Usuario
+	 */
+	USER_EXPRESSO(""),
+	
+	/**
+	 *	Senha 
+	 */
+	PASSWORD_EXPRESSO(""),
+	
+	
+	/**
+	 * Button click 
+	 */
+	BUTTON_CLICK("submitit");
+	
+	
+	private String value;
+ 
+    private LoginExpresso(String value)
+    {
+    	this.value = value;
+    }
+
+    public String getValue()
+    {
+    	return value;
+    }
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/connection/DAOSelenium.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/connection/DAOSelenium.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/connection/DAOSelenium.java	(revision 3521)
@@ -0,0 +1,31 @@
+package br.gov.serpro.cte.connection;
+
+import com.thoughtworks.selenium.DefaultSelenium;
+import com.thoughtworks.selenium.SeleneseTestCase;
+import com.thoughtworks.selenium.Selenium;
+
+public class DAOSelenium extends SeleneseTestCase
+{
+	private String	seleniumServer;
+	private Integer	seleniumPort;
+	private String	seleniumBrowser;
+	private String	Url;
+	
+	public DAOSelenium( String seleniumServer, Integer seleniumPort , String seleniumBrowser, String Url )
+	{
+		this.seleniumServer		= seleniumServer;
+		this.seleniumPort		= seleniumPort;
+		this.seleniumBrowser	= seleniumBrowser;
+		this.Url	= Url;
+	}
+	
+	public Selenium newConnection()
+	{
+		selenium = new DefaultSelenium( this.seleniumServer, this.seleniumPort, this.seleniumBrowser, this.Url );
+		selenium.start();
+		
+		return selenium;
+	}
+	
+	
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/EnviarEmailConfirmacaoLeituraTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/EnviarEmailConfirmacaoLeituraTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/EnviarEmailConfirmacaoLeituraTestCase.java	(revision 3521)
@@ -0,0 +1,22 @@
+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:36:32 PM
+ * 
+ */
+public class EnviarEmailConfirmacaoLeituraTestCase extends ExpressoMailTestCase {
+
+	@Test
+	public void testaEnviarEmailConfirmacaoLeitura() throws Exception {
+		super.composeEmail(Valor.EMAIL_TESTE_1.getValue(),
+				Valor.ASSUNTO_CONFIRMACAO_LEITURA.getValue());
+		selenium.click(Campo.CONFIRMACAO_LEITURA.getValue());
+		super.sendEmail();
+	}
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/EnviarEmailAnexoTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/EnviarEmailAnexoTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/EnviarEmailAnexoTestCase.java	(revision 3521)
@@ -0,0 +1,35 @@
+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();
+	}
+
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/EnviarEmailCopiaTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/EnviarEmailCopiaTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/EnviarEmailCopiaTestCase.java	(revision 3521)
@@ -0,0 +1,57 @@
+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:40:11 PM
+ * 
+ */
+public class EnviarEmailCopiaTestCase extends ExpressoMailTestCase {
+
+	@Test
+	public void testaEnviarEmailCopia() throws Exception {
+		super.composeEmail(Valor.EMAIL_TESTE_1.getValue(),
+				Valor.ASSUNTO_COPIA.getValue());
+		selenium.click(Campo.COPIA_1.getValue());
+		selenium.type(Campo.COPIA_CAMPO_1.getValue(),
+				Valor.EMAIL_TESTE_2.getValue());
+		super.sendEmail();
+	}
+
+	@Test
+	public void testaEnviarEmailCopiaOculta() throws Exception {
+		super.composeEmail(Valor.EMAIL_TESTE_1.getValue(),
+				Valor.ASSUNTO_COPIA_OCULTA.getValue());
+		selenium.click(Campo.COPIA_OCULTA_1.getValue());
+		selenium.type(Campo.COPIA_OCULTA_CAMPO_1.getValue(),
+				Valor.EMAIL_TESTE_3.getValue());
+		super.sendEmail();
+	}
+
+	@Test
+	public void testaEnviarEmailSomenteCopiaOculta() throws Exception {
+		super.composeEmail();
+		selenium.click(Campo.COPIA_OCULTA_1.getValue());
+		selenium.type(Campo.COPIA_OCULTA_CAMPO_1.getValue(),
+				Valor.EMAIL_TESTE_1.getValue());
+		selenium.type(Campo.ASSUNTO_1.getValue(),
+				Valor.ASSUNTO_SOMENTE_COPIA_OCULTA.getValue());
+		super.sendEmail();
+	}
+
+	@Test
+	public void testaEnviarEmailSomenteCopia() throws Exception {
+		super.composeEmail();
+		selenium.click(Campo.COPIA_1.getValue());
+		selenium.type(Campo.COPIA_CAMPO_1.getValue(),
+				Valor.EMAIL_TESTE_1.getValue());
+		selenium.type(Campo.ASSUNTO_1.getValue(),
+				Valor.ASSUNTO_SOMENTE_COPIA.getValue());
+		super.sendEmail();
+	}
+
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/EnviarEmailTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/EnviarEmailTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/EnviarEmailTestCase.java	(revision 3521)
@@ -0,0 +1,55 @@
+package br.gov.serpro.cte.email.compor;
+
+import org.junit.Test;
+
+import br.gov.serpro.cte.common.ExpressoMailTestCase;
+
+/**
+ * TODO Ainda nao consegui pegar o campo do RichTextEditor para colocar conteudo
+ * ao corpo do email.
+ * 
+ * @author L.F.Estivalet (Serpro)
+ * 
+ *         Created on Nov 16, 2010 at 4:00:58 PM
+ * 
+ */
+public class EnviarEmailTestCase extends ExpressoMailTestCase {
+
+	@Test
+	public void testaEnviarEmail() throws Exception {
+		super.composeEmail(Valor.EMAIL_TESTE_1.getValue(),
+				Valor.ASSUNTO.getValue());
+		super.sendEmail();
+	}
+
+	@Test
+	public void testaEnviarEmailSemDestinatario() throws Exception {
+		super.composeEmail("", Valor.ASSUNTO_SEM_DESTINATARIO.getValue());
+		super.sendEmail();
+		super.assertMessage(Mensagem.SEM_DESTINATARIO.getValue());
+	}
+
+	@Test
+	public void testaEnviarEmailDestinatarioInvalido() throws Exception {
+		super.composeEmail(Valor.EMAIL_INVALIDO.getValue(),
+				Valor.ASSUNTO_EMAIL_INVALIDO.getValue());
+		super.sendEmail();
+		super.assertMessage(Mensagem.DESTINATARIO_INVALIDO.getValue());
+	}
+
+	@Test
+	public void testaEnviarEmailSemAssunto() throws Exception {
+		super.composeEmail(Valor.EMAIL_TESTE_1.getValue(), "");
+		super.sendEmail();
+		assertTrue(selenium.getConfirmation().matches(
+				Mensagem.SEM_ASSUNTO.getValue()));
+	}
+
+	@Test
+	public void testaEnviarEmailMultiplosDestinatarios() throws Exception {
+		super.composeEmail(Valor.EMAIL_TESTE_MULTIPLOS.getValue(),
+				Valor.ASSUNTO_MULTIPLOS_DESTINATARIOS.getValue());
+		super.sendEmail();
+	}
+
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/EnviarEmailImportanteTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/EnviarEmailImportanteTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/EnviarEmailImportanteTestCase.java	(revision 3521)
@@ -0,0 +1,22 @@
+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 4:32:01 PM
+ * 
+ */
+public class EnviarEmailImportanteTestCase extends ExpressoMailTestCase {
+
+	@Test
+	public void testaEnviarEmailImportante() throws Exception {
+		super.composeEmail(Valor.EMAIL_TESTE_1.getValue(),
+				Valor.ASSUNTO_IMPORTANTE.getValue());
+		selenium.click(Campo.IMPORTANTE_CHECKBOX.getValue());
+		super.sendEmail();
+	}
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/EnviarEmailRascunhoTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/EnviarEmailRascunhoTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/EnviarEmailRascunhoTestCase.java	(revision 3521)
@@ -0,0 +1,44 @@
+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 4:37:47 PM
+ * 
+ */
+public class EnviarEmailRascunhoTestCase extends ExpressoMailTestCase {
+
+	@Test
+	public void testaEnviarEmailRascunho() throws Exception {
+		super.enterExpressoMail();
+
+		// Espera a pasta carregar.
+		super.waitForElement("divScrollMain_0");
+
+		// Vai para pasta de Rascunhos
+		selenium.click("lINBOX/Draftstree_folders");
+
+		// Espera a pasta carregar.
+		super.waitForElement("//tbody[@id='tbody_box']/tr[1]/td[8]/span");
+
+		// Descobre id da mensagem baseado no assunto
+
+		selenium.click(super
+				.findEmailIdBySuject("[SELENIUM] Teste salvar mensagem"));
+
+		// Espera a mensagem carregar.
+		super.waitForElement(
+				"//div[@id='exmail_main_body']/div[2]/table/tbody/tr[1]/td/table/tbody/tr/td[2]/span[2]/span[1]",
+				true);
+
+		// Espera aba de edicao da mensagem abrir.
+		super.waitForElement(
+				"//div[@id='exmail_main_body']/div[3]/table/tbody/tr/td/input[1]",
+				true);
+
+	}
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/SalvarEmailTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/SalvarEmailTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/compor/SalvarEmailTestCase.java	(revision 3521)
@@ -0,0 +1,25 @@
+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 4:33:18 PM
+ * 
+ */
+public class SalvarEmailTestCase extends ExpressoMailTestCase {
+
+	@Test
+	public void testaSalvarEmail() throws Exception {
+		super.composeEmail(Valor.EMAIL_TESTE_1.getValue(),
+				Valor.ASSUNTO_SALVAR.getValue());
+		selenium.click(Campo.SALVAR.getValue());
+		super.waitForElement(Campo.MENSAGEM.getValue());
+		assertEquals(Mensagem.SALVA_RASCUNHO.getValue(),
+				selenium.getText(Campo.MENSAGEM.getValue()));
+
+	}
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/responder/EncaminharEmailAnexoTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/responder/EncaminharEmailAnexoTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/responder/EncaminharEmailAnexoTestCase.java	(revision 3521)
@@ -0,0 +1,22 @@
+package br.gov.serpro.cte.email.responder;
+
+import org.junit.Test;
+
+import br.gov.serpro.cte.common.ExpressoMailTestCase;
+
+/**
+ * @author L.F.Estivalet (Serpro)
+ * 
+ *         Created on Nov 17, 2010 at 9:50:00 AM
+ * 
+ */
+public class EncaminharEmailAnexoTestCase extends ExpressoMailTestCase {
+
+	@Test
+	public void testaEncaminharEmailAnexo() throws Exception {
+		String id = super.readEmail(Valor.ASSUNTO_ANEXO.getValue());
+		id = id.substring(id.lastIndexOf("_"));
+		super.forwardEmail(id, Valor.EMAIL_TESTE_1.getValue());
+	}
+
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/responder/ResponderEmailTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/responder/ResponderEmailTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/responder/ResponderEmailTestCase.java	(revision 3521)
@@ -0,0 +1,41 @@
+package br.gov.serpro.cte.email.responder;
+
+import org.junit.Test;
+
+import br.gov.serpro.cte.common.ExpressoMailTestCase;
+
+/**
+ * @author L.F.Estivalet (Serpro)
+ * 
+ *         Created on Nov 17, 2010 at 9:56:17 AM
+ * 
+ */
+public class ResponderEmailTestCase extends ExpressoMailTestCase {
+
+	@Test
+	public void testaResponserEmail() throws Exception {
+		String id = super.readEmail(Valor.ASSUNTO.getValue());
+		super.replyEmail(id);
+	}
+
+	@Test
+	public void testaResponserEmailSemHistorico() throws Exception {
+		String id = super.readEmail(Valor.ASSUNTO.getValue());
+		super.replyEmailWithoutHistory(id);
+	}
+
+	@Test
+	public void testaResponserEmailTodos() throws Exception {
+		String id = super
+				.readEmail("[SELENIUM] Teste envio mensagem para mÃºltiplos des...");
+		super.replyAllEmail(id);
+	}
+
+	@Test
+	public void testaResponserEmailTodosSemHistorico() throws Exception {
+		String id = super
+				.readEmail("[SELENIUM] Teste envio mensagem para mÃºltiplos des...");
+		super.replyEmailWithoutHistory(id);
+	}
+
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/responder/EncaminharEmailTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/responder/EncaminharEmailTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/responder/EncaminharEmailTestCase.java	(revision 3521)
@@ -0,0 +1,21 @@
+package br.gov.serpro.cte.email.responder;
+
+import org.junit.Test;
+
+import br.gov.serpro.cte.common.ExpressoMailTestCase;
+
+/**
+ * @author L.F.Estivalet (Serpro)
+ * 
+ *         Created on Nov 17, 2010 at 9:45:39 AM
+ * 
+ */
+public class EncaminharEmailTestCase extends ExpressoMailTestCase {
+
+	@Test
+	public void testaEncaminharEmail() throws Exception {
+		String id = super.readEmail(Valor.ASSUNTO.getValue());
+		id = id.substring(id.lastIndexOf("_"));
+		super.forwardEmail(id, Valor.EMAIL_TESTE_1.getValue());
+	}
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/ler/LerEmailTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/ler/LerEmailTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/ler/LerEmailTestCase.java	(revision 3521)
@@ -0,0 +1,19 @@
+package br.gov.serpro.cte.email.ler;
+
+import org.junit.Test;
+
+import br.gov.serpro.cte.common.ExpressoMailTestCase;
+
+/**
+ * @author L.F.Estivalet (Serpro)
+ * 
+ *         Created on Nov 16, 2010 at 4:40:58 PM
+ * 
+ */
+public class LerEmailTestCase extends ExpressoMailTestCase {
+
+	@Test
+	public void testaLerEmail() throws Exception {
+		super.readEmail(Valor.ASSUNTO.getValue());
+	}
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/ler/MarcarEmailTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/ler/MarcarEmailTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/ler/MarcarEmailTestCase.java	(revision 3521)
@@ -0,0 +1,32 @@
+package br.gov.serpro.cte.email.ler;
+
+import org.junit.Test;
+
+import br.gov.serpro.cte.common.ExpressoMailTestCase;
+
+/**
+ * @author L.F.Estivalet (Serpro)
+ * 
+ *         Created on Nov 16, 2010 at 4:47:05 PM
+ * 
+ */
+public class MarcarEmailTestCase extends ExpressoMailTestCase {
+
+	@Test
+	public void testaMarcarEmailImportante() throws Exception {
+		super.readEmail(Valor.ASSUNTO.getValue());
+		selenium.click(Campo.IMPORTANTE.getValue());
+	}
+
+	@Test
+	public void testaMarcarEmailNormal() throws Exception {
+		super.readEmail(Valor.ASSUNTO.getValue());
+		selenium.click(Campo.NORMAL.getValue());
+	}
+
+	@Test
+	public void testaMarcarEmailNaoLido() throws Exception {
+		super.readEmail(Valor.ASSUNTO.getValue());
+		selenium.click(Campo.NAO_LIDO.getValue());
+	}
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/ler/ApagarEmailAbertoTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/ler/ApagarEmailAbertoTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/ler/ApagarEmailAbertoTestCase.java	(revision 3521)
@@ -0,0 +1,21 @@
+package br.gov.serpro.cte.email.ler;
+
+import org.junit.Test;
+
+import br.gov.serpro.cte.common.ExpressoMailTestCase;
+
+/**
+ * @author L.F.Estivalet (Serpro)
+ * 
+ *         Created on Nov 16, 2010 at 4:41:59 PM
+ * 
+ */
+public class ApagarEmailAbertoTestCase extends ExpressoMailTestCase {
+
+	@Test
+	public void testaApagarEmailAberto() throws Exception {
+		super.readEmail(Valor.ASSUNTO.getValue());
+		super.deleteEmail();
+		super.assertMessage(Mensagem.APAGAR_MENSAGEM.getValue());
+	}
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/pastas/ApagarPastaTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/pastas/ApagarPastaTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/pastas/ApagarPastaTestCase.java	(revision 3521)
@@ -0,0 +1,25 @@
+package br.gov.serpro.cte.email.pastas;
+
+import org.junit.Test;
+
+import br.gov.serpro.cte.common.ExpressoMailTestCase;
+
+/**
+ * @author L.F.Estivalet (Serpro)
+ * 
+ *         Created on Nov 17, 2010 at 9:40:23 AM
+ * 
+ */
+public class ApagarPastaTestCase extends ExpressoMailTestCase {
+
+	@Test
+	public void testaCriarPasta() throws Exception {
+		super.enterExpressoMail();
+		selenium.click("//div[@id='menu_tools']/table/tbody/tr[4]/td");
+		selenium.click("lINBOX/Seleniumfolders_tree");
+		selenium.click("//input[@value='Excluir pasta']");
+		assertTrue(selenium.getConfirmation().matches(
+				"^VocÃª gostaria de excluir a pasta: Selenium[\\s\\S]$"));
+	}
+
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/pastas/CriarPastaTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/pastas/CriarPastaTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/pastas/CriarPastaTestCase.java	(revision 3521)
@@ -0,0 +1,26 @@
+package br.gov.serpro.cte.email.pastas;
+
+import org.junit.Test;
+
+import br.gov.serpro.cte.common.ExpressoMailTestCase;
+
+/**
+ * @author L.F.Estivalet (Serpro)
+ * 
+ *         Created on Nov 17, 2010 at 9:41:51 AM
+ * 
+ */
+public class CriarPastaTestCase extends ExpressoMailTestCase {
+
+	@Test
+	public void testaCriarPasta() throws Exception {
+		super.enterExpressoMail();
+		selenium.click("//td[@id='link_tools']/div/span");
+		selenium.click("//div[@id='menu_tools']/table/tbody/tr[4]/td");
+		selenium.answerOnNextPrompt("Selenium");
+		selenium.click("//input[@value='Nova Pasta']");
+		assertEquals("Insira o nome da nova pasta: ", selenium.getPrompt());
+		selenium.click("//input[@value='Fechar' and @type='button' and @onclick='ttree.close_win()']");
+	}
+
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/listar/MoverEmailSelecionadoTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/listar/MoverEmailSelecionadoTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/listar/MoverEmailSelecionadoTestCase.java	(revision 3521)
@@ -0,0 +1,24 @@
+package br.gov.serpro.cte.email.listar;
+
+import org.junit.Test;
+
+import br.gov.serpro.cte.common.ExpressoMailTestCase;
+
+/**
+ * @author L.F.Estivalet (Serpro)
+ * 
+ *         Created on Nov 17, 2010 at 9:37:24 AM
+ * 
+ */
+public class MoverEmailSelecionadoTestCase extends ExpressoMailTestCase {
+
+	@Test
+	public void testaMoverEmailSelecionado() throws Exception {
+		super.enterExpressoMail();
+		super.findEmailIdBySuject(Valor.ASSUNTO.getValue(), true);
+		selenium.click(Campo.MOVER_EMAIL.getValue());
+		selenium.click("lINBOX/Seleniumwfolders_tree");
+		selenium.click("dJSWin_wfolders_bok");
+	}
+
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/listar/ApagarEmailSelecionadoTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/listar/ApagarEmailSelecionadoTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/listar/ApagarEmailSelecionadoTestCase.java	(revision 3521)
@@ -0,0 +1,22 @@
+package br.gov.serpro.cte.email.listar;
+
+import org.junit.Test;
+
+import br.gov.serpro.cte.common.ExpressoMailTestCase;
+
+/**
+ * @author L.F.Estivalet (Serpro)
+ * 
+ *         Created on Nov 17, 2010 at 9:18:10 AM
+ * 
+ */
+public class ApagarEmailSelecionadoTestCase extends ExpressoMailTestCase {
+
+	@Test
+	public void testaApagarEmailSelecionado() throws Exception {
+		super.enterExpressoMail();
+		super.findEmailIdBySuject(Valor.ASSUNTO.getValue(), true);
+		super.deleteEmail();
+		super.assertMessage(Mensagem.APAGAR_UMA_MENSAGEM.getValue());
+	}
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/listar/ApagarTodosEmailsTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/listar/ApagarTodosEmailsTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/listar/ApagarTodosEmailsTestCase.java	(revision 3521)
@@ -0,0 +1,25 @@
+package br.gov.serpro.cte.email.listar;
+
+import org.junit.Test;
+
+import br.gov.serpro.cte.common.ExpressoMailTestCase;
+
+/**
+ * @author L.F.Estivalet (Serpro)
+ * 
+ *         Created on Nov 17, 2010 at 9:27:58 AM
+ * 
+ */
+public class ApagarTodosEmailsTestCase extends ExpressoMailTestCase {
+
+	@Test
+	public void testaApagarTodosEmails() throws Exception {
+		super.enterExpressoMail();
+		selenium.click(Campo.SELECIONAR_TODOS_EMAILS.getValue());
+		super.deleteEmail();
+		assertTrue(Mensagem.PASTA_VAZIA.getValue().equals(
+				selenium.getText(Campo.MSG_INFO.getValue())));
+
+	}
+
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/listar/ListarEmailsImportantesTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/listar/ListarEmailsImportantesTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/listar/ListarEmailsImportantesTestCase.java	(revision 3521)
@@ -0,0 +1,58 @@
+package br.gov.serpro.cte.email.listar;
+
+import org.junit.Test;
+
+import br.gov.serpro.cte.common.ExpressoMailTestCase;
+
+/**
+ * @author L.F.Estivalet (Serpro)
+ * 
+ *         Created on Nov 16, 2010 at 2:57:35 PM
+ * 
+ */
+public class ListarEmailsImportantesTestCase extends ExpressoMailTestCase {
+
+	/**
+	 * Teste quando nao tem nenhum mensagem importante na pasta.
+	 * 
+	 * @throws Exception
+	 */
+	@Test
+	public void testaLerEmailsImportantesSemEmail() throws Exception {
+		super.enterExpressoMail();
+		// Abre uma pasta onde nao existam emails marcados como importante.
+		super.openFolder("lINBOX/Seleniumtree_folders");
+		selenium.click("span_flag_FLAGGED");
+		super.waitForElement("msg_info");
+		assertTrue(Mensagem.PASTA_VAZIA.getValue().equals(
+				selenium.getText("msg_info")));
+
+	}
+
+	@Test
+	public void testaLerEmailsImportantes() throws Exception {
+		super.enterExpressoMail();
+		selenium.click("span_flag_FLAGGED");
+		super.waitForElement("//div[@id='divScrollMain_0']/table[@id='table_box']/tbody[@id='tbody_box']/tr[1]/td[1]/input[1]");
+
+		// TODO Deve ter um jeito melhor de fazer isso, mas nao consegui pegar o
+		// numero total de mensagens apos filtrar pelas mensagens importantes.
+		// Se nao colocar o comando abaixo, ele continua pegando o numero de
+		// mensagens totais e nao apenas as importantes.
+		super.dummyWait();
+
+		// Busca todos os IDs dos emails apos aplicar o filtro "Importante".
+		String[] t = super.getEmailIds();
+
+		boolean ok = true;
+		// Verifica se todas as mensagens estao marcadas como "Importante".
+		for (int i = 0; i < t.length; i++) {
+			if (!super.isImportant(t[i])) {
+				ok = false;
+				break;
+			}
+
+		}
+		assertTrue(ok);
+	}
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/listar/LimparLixeiraTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/listar/LimparLixeiraTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/listar/LimparLixeiraTestCase.java	(revision 3521)
@@ -0,0 +1,28 @@
+package br.gov.serpro.cte.email.listar;
+
+import org.junit.Test;
+
+import br.gov.serpro.cte.common.ExpressoMailTestCase;
+
+/**
+ * @author L.F.Estivalet (Serpro)
+ * 
+ *         Created on Nov 17, 2010 at 9:07:11 AM
+ * 
+ */
+public class LimparLixeiraTestCase extends ExpressoMailTestCase {
+	@Test
+	public void testaLimparLixeira() throws Exception {
+		super.enterExpressoMail();
+		super.openFolder(Campo.PASTA_LIXEIRA.getValue());
+		selenium.click(Campo.LIMPAR_LIXEIRA.getValue());
+		assertTrue(selenium.getConfirmation().matches(
+				Mensagem.LIMPAR_LIXEIRA.getValue()));
+		super.waitForElement(Campo.MENSAGEM.getValue());
+		assertEquals(Mensagem.LIXEIRA_LIMPA.getValue(),
+				selenium.getText(Campo.MENSAGEM.getValue()));
+		// Garantir que nao tem nenhum email na lixeira.
+		assertEquals("0", super.getTotalEmails());
+	}
+
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/common/BaseTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/common/BaseTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/common/BaseTestCase.java	(revision 3521)
@@ -0,0 +1,100 @@
+package br.gov.serpro.cte.common;
+
+import org.junit.After;
+import org.junit.Before;
+
+import br.gov.serpro.cte.connection.DAOSelenium;
+
+import com.thoughtworks.selenium.SeleneseTestCase;
+
+/**
+ * Contem metodos comuns a todos os casos de teste do Expresso.
+ * 
+ * @author L.F.Estivalet (Serpro)
+ * 
+ *         Created on Nov 12, 2010 at 11:50:55 AM
+ * 
+ */
+public class BaseTestCase extends SeleneseTestCase {
+	@Before
+	public void setUp() throws Exception {
+		String url = "https://cte.serpro.gov.br";
+		DAOSelenium conn = new DAOSelenium("localhost", 4444, "*firefox", url);
+		selenium = conn.newConnection();
+	}
+
+	/**
+	 * Executa o login no Expresso.
+	 */
+	public void login() {
+		selenium.open("/login.php");
+		selenium.type("user", "luiz-fernando.estivalet");
+		selenium.type("passwd", "senha");
+		selenium.click("submitit");
+		selenium.waitForPageToLoad("30000");
+	}
+
+	/**
+	 * Aguarda por um elemento aparecer na pagina.
+	 * 
+	 * @param element
+	 *            Elemento a aguardar.
+	 * @throws Exception
+	 *             Elemento nao encontrado
+	 */
+	public void waitForElement(String element) throws Exception {
+		waitForElement(element, false);
+	}
+
+	/**
+	 * Aguarda por um elemento aparecer na pagina.
+	 * 
+	 * @param element
+	 *            Elemento a aguardar.
+	 * @param click
+	 *            Se elemento encontrado, deseja clicar sobre o mesmo?
+	 * @throws Exception
+	 *             Elemento nao encontrado
+	 */
+	public void waitForElement(String element, boolean click) throws Exception {
+		for (int second = 0;; second++) {
+			if (second >= 60)
+				fail("timeout");
+			try {
+				if (selenium.isElementPresent(element))
+					break;
+			} catch (Exception e) {
+			}
+			Thread.sleep(1000);
+		}
+		if (click) {
+			selenium.click(element);
+		}
+	}
+
+	/**
+	 * TODO Rever esse metodo. Foi o unico jeito que consegui fazer pegar o
+	 * numero total de mensagens importantes. O metodo apenas aguarda 5 segundos
+	 * antes de continuar a execucao.
+	 * 
+	 * @throws Exception
+	 * 
+	 * @see br.gov.serpro.cte.email.listar.ListarEmailsImportantesTestCase
+	 */
+	public void dummyWait() throws Exception {
+		for (int second = 0;; second++) {
+			if (second >= 5) {
+				System.out.println("timeout");
+				return;
+			}
+			Thread.sleep(1000);
+		}
+
+	}
+
+	@After
+	public void tearDown() throws Exception {
+		selenium.stop();
+	}
+
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/common/ExpressoMailTestCase.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/common/ExpressoMailTestCase.java	(revision 3521)
+++ devel/testlink/automation/src/test/java/br/gov/serpro/cte/common/ExpressoMailTestCase.java	(revision 3521)
@@ -0,0 +1,400 @@
+package br.gov.serpro.cte.common;
+
+import org.apache.commons.lang.StringUtils;
+
+/**
+ * Contem metodos comuns a todos os casos de teste do ExpressoMail.
+ * 
+ * @author L.F.Estivalet (Serpro)
+ * 
+ *         Created on Nov 12, 2010 at 11:52:43 AM
+ * 
+ */
+public class ExpressoMailTestCase extends BaseTestCase {
+
+	/**
+	 * Entra no modulo ExpressoMail.
+	 * 
+	 * @throws Exception
+	 */
+	public void enterExpressoMail() throws Exception {
+		super.login();
+		selenium.open("/expressoMail1_2/index.php");
+		selenium.waitForPageToLoad("30000");
+		// Espera a caixa de entrada carregar.
+		this.waitForElement("divScrollMain_0");
+	}
+
+	/**
+	 * Procura um email pelo seu assunto.
+	 * 
+	 * @param subject
+	 *            Assunto a ser procurado.
+	 * @return "id" do email.
+	 */
+	public String findEmailIdBySuject(String subject) {
+		return findEmailIdBySuject(subject, false);
+	}
+
+	/**
+	 * Procura um email pelo seu assunto.
+	 * 
+	 * @param subject
+	 *            Assunto a ser procurado.
+	 * @param select
+	 *            Se email encontrado, deseja seleciona-lo?
+	 * @return "id" do email.
+	 */
+	public String findEmailIdBySuject(String subject, boolean select) {
+		String html = selenium.getHtmlSource();
+		String part1 = StringUtils.substringBefore(html, subject);
+		int start = StringUtils.lastIndexOf(part1, "id=\"") + 4;
+		int last = StringUtils.indexOf(part1, "\">", start);
+		String id = StringUtils.substring(part1, start, last);
+
+		if (select) {
+			// Marca checkbox correspondente ao id da mensagem.
+			selenium.click("check_box" + id.substring(1));
+		}
+
+		return id;
+	}
+
+	/**
+	 * Cria um novo email informando destinatario e assunto.
+	 * 
+	 * @param to
+	 *            DestinatÃ¡rio (campo Para:).
+	 * @param subject
+	 *            Assunto do email.
+	 * @throws Exception
+	 */
+	public void composeEmail(String to, String subject) throws Exception {
+		this.composeEmail();
+		selenium.type(Campo.PARA_1.getValue(), to);
+		selenium.type(Campo.ASSUNTO_1.getValue(), subject);
+
+	}
+
+	/**
+	 * Cria um novo email.
+	 * 
+	 * @throws Exception
+	 */
+	public void composeEmail() throws Exception {
+		this.enterExpressoMail();
+		selenium.click(Campo.NOVA_MENSAGEM.getValue());
+		super.waitForElement(Campo.PARA_1.getValue());
+	}
+
+	/**
+	 * Simula o envio de email ao pressionar o botao Enviar.
+	 */
+	public void sendEmail() {
+		selenium.click(Campo.ENVIAR_EMAIL_1.getValue());
+	}
+
+	/**
+	 * Verifica se a mensagem ao usuario foi informada pelo Expresso.
+	 * 
+	 * @param message
+	 *            Mensagem a verificar.
+	 * @throws Exception
+	 */
+	public void assertMessage(String message) throws Exception {
+		// Espera pela mensagem de erro.
+		super.waitForElement("em_div_write_msg");
+		assertEquals(message, selenium.getText("em_div_write_msg"));
+	}
+
+	/**
+	 * Procura o email pelo assunto e abre para leitura.
+	 * 
+	 * @param subject
+	 *            Assunto do email.
+	 * @return "id" do email.
+	 * @throws Exception
+	 */
+	public String readEmail(String subject) throws Exception {
+		this.enterExpressoMail();
+		String id = this.findEmailIdBySuject(subject);
+		selenium.click(id);
+		// Espera ate aba da mensagem abrir.
+		super.waitForElement("//div[@id='exmail_main_body']/table[1]/tbody[@id='border_tbody']/tr[1]/td[2]/table/tbody/tr/td[1]");
+
+		// Retorna somente o "id" do email.
+		id = id.substring(id.lastIndexOf("_"));
+
+		return id;
+	}
+
+	/**
+	 * Apaga o email previamente selecionado.
+	 */
+	public void deleteEmail() {
+		selenium.click("//div[@id='footer_menu']/table[@id='footer_box']/tbody/tr[@id='table_message']/td[@id='span_options']/span[1]/span");
+	}
+
+	/**
+	 * @return Numero de emails na pasta selecionada.
+	 */
+	public int getTotalEmails() {
+		return Integer
+				.valueOf(selenium
+						.getText("//div[@id='exmail_main_body']/table[@id='border_table']/tbody[@id='border_tbody']/tr[@id='border_tr']/td[@id='border_id_0']/font/span[@id='tot_m']"));
+	}
+
+	/**
+	 * @return Ids de todos os emails da pasta selecionada.
+	 */
+	public String[] getEmailIds() {
+		String[] ids = new String[this.getTotalEmails()];
+		for (int i = 1; i <= this.getTotalEmails(); i++) {
+			String id = selenium
+					.getAttribute("//div[@id='divScrollMain_0']/table[@id='table_box']/tbody[@id='tbody_box']/tr["
+							+ i + "]/td[1]/input[1]@id");
+			ids[i - 1] = id.substring(id.lastIndexOf("_") + 1);
+		}
+		return ids;
+	}
+
+	/**
+	 * @param emailId
+	 *            Id do email.
+	 * @return <code>true</code> se email importante, <code>false</code> caso
+	 *         contrario.
+	 */
+	public boolean isImportant(String emailId) {
+		return selenium
+				.isElementPresent("//div[@id='exmail_main_body']/div[@id='content_id_0']/div[@id='divScrollMain_0']/table[@id='table_box']/tbody[@id='tbody_box']/tr[@id='"
+						+ emailId + "']/td[5]/img");
+	}
+
+	/**
+	 * @param emailId
+	 *            Id do email.
+	 * @return <code>true</code> se email lido, <code>false</code> caso
+	 *         contrario.
+	 */
+	public boolean isRead(String emailId) {
+		return "Lida"
+				.equals(selenium
+						.getAttribute("//div[@id='exmail_main_body']/div[@id='content_id_0']/div[@id='divScrollMain_0']/table[@id='table_box']/tbody[@id='tbody_box']/tr[@id='"
+								+ emailId + "']/td[7]/img@title"));
+	}
+
+	/**
+	 * Abre uma pasta de email especifica.
+	 * 
+	 * @param folder
+	 *            Pasta de email a ser aberta.
+	 * @throws Exception
+	 */
+	public void openFolder(String folder) throws Exception {
+		selenium.click(folder);
+		this.waitForElement("divScrollMain_0");
+	}
+
+	/**
+	 * Responder email.
+	 * 
+	 * @param id
+	 *            Id do email a ser respondido.
+	 * @throws Exception
+	 */
+	public void replyEmail(String id) throws Exception {
+		// Clicar na opcao para responder.
+		selenium.click(Campo.RESPONDER_EMAIL.getValue());
+		this.reply(id);
+	}
+
+	/**
+	 * Responder email a todos destinatarios.
+	 * 
+	 * @param id
+	 *            Id do email a ser respondido.
+	 * @throws Exception
+	 */
+	public void replyAllEmail(String id) throws Exception {
+		// Clicar na opcao para responder.
+		selenium.click("msg_opt_reply_options" + id + "_r");
+		selenium.click("//span[@onclick='new_message(\"reply_to_all_with_history\",\""
+				+ id.substring(1) + "_r\");']");
+
+		this.reply(id);
+	}
+
+	/**
+	 * Responder email a todos destinatarios sem historico.
+	 * 
+	 * @param id
+	 *            Id do email a ser respondido.
+	 * @throws Exception
+	 */
+	public void replyAllEmailWithoutHistory(String id) throws Exception {
+		// Clicar na opcao para responder.
+		selenium.click("msg_opt_reply_options" + id + "_r");
+		selenium.click("//span[@onclick='new_message(\"reply_without_history\",\""
+				+ id.substring(1) + "_r\");']");
+
+		this.reply(id);
+	}
+
+	/**
+	 * Responder email sem historico.
+	 * 
+	 * @param id
+	 *            Id do email a ser respondido.
+	 * @throws Exception
+	 */
+	public void replyEmailWithoutHistory(String id) throws Exception {
+		// Clicar na opcao para responder.
+		selenium.click("//span[@onclick='new_message(\"reply_without_history\",\""
+				+ id.substring(1) + "_r\");']");
+		this.reply(id);
+	}
+
+	/**
+	 * Responder email, serve apenas para clicar na opcao "Enviar".
+	 * 
+	 * @param id
+	 *            Id do email a ser respondido.
+	 * @throws Exception
+	 */
+	private void reply(String id) throws Exception {
+		// Espera carregar aba para responder email.
+		super.waitForElement("to" + id);
+		selenium.click("send_button" + id);
+	}
+
+	/**
+	 * Encaminha uma mensagem.
+	 * 
+	 * @param id
+	 *            Id da mensagem a ser encaminhada
+	 * @param to
+	 *            Destinatario
+	 * @throws Exception
+	 */
+	public void forwardEmail(String id, String to) throws Exception {
+		// Clicar na opcao para encaminhar.
+		selenium.click(Campo.ENCAMINHAR_EMAIL.getValue());
+
+		// Espera carregar aba para encaminhar email.
+		super.waitForElement("to" + id);
+		selenium.type("to" + id, to);
+
+		selenium.click("send_button" + id);
+	}
+
+	public enum Mensagem {
+		PASTA_VAZIA("Esta pasta estÃ¡ vazia"), //
+		SEM_DESTINATARIO(
+				"VocÃª deve fornecer pelo menos um endereÃ§o de destinatÃ¡rio de email."), //
+		SEM_ASSUNTO("^Enviar esta mensagem sem assunto[\\s\\S]$"), //
+		DESTINATARIO_INVALIDO(
+				"Erro de SMTP: Os endereÃ§os de destinatÃ¡rio a seguir falharam: bla@"), //
+		SALVA_RASCUNHO(
+				"Sua mensagem foi salva como rascunho na pasta Rascunhos."), //
+		LIMPAR_LIXEIRA(
+				"^VocÃª tem certeza que deseja limpar sua lixeira[\\s\\S]$"), //
+		LIXEIRA_LIMPA("Sua pasta Lixeira foi limpa."), //
+		APAGAR_UMA_MENSAGEM("Mensagem movida para a pasta Lixeira"), //
+		APAGAR_MENSAGEM("Mensagens movidas para pasta Lixeira");
+		private String value;
+
+		private Mensagem(String value) {
+			this.value = value;
+		}
+
+		public String getValue() {
+			return value;
+		}
+
+	};
+
+	public enum Campo {
+		ADICIONAR_ANEXO("link=exact:Anexos: adicionar+"), //
+		ANEXO_1("inputFile_1_1"), //
+		ANEXO_2("inputFile_1_2"), //
+		NOVA_MENSAGEM(
+				"//table[@id='folders_tbl']/tbody/tr[1]/td/table/tbody/tr[2]/td/div/span"), //
+		PARA_1("to_1"), //
+		ASSUNTO_1("subject_1"), //
+		ENVIAR_EMAIL_1("send_button_1"), //
+		CONFIRMACAO_LEITURA("return_receipt_1"), //
+		IMPORTANTE(
+				"//div[@id='exmail_main_body']/div[2]/table/tbody/tr[1]/td/table/tbody/tr[1]/td[2]/span[3]"), //
+		NORMAL(
+				"//div[@id='exmail_main_body']/div[2]/table/tbody/tr[1]/td/table/tbody/tr[1]/td[2]/span[3]"), //
+		NAO_LIDO(
+				"//div[@id='exmail_main_body']/div[2]/table/tbody/tr[1]/td/table/tbody/tr[1]/td[2]/span[2]"), //
+		IMPORTANTE_CHECKBOX("important_message_1"), //
+		COPIA_1("a_cc_link_1"), //
+		SALVAR("save_message_options_1"), //
+		COPIA_CAMPO_1("cc_1"), //
+		COPIA_OCULTA_1("a_cco_link_1"), //
+		COPIA_OCULTA_CAMPO_1("cco_1"), //
+		PASTA_LIXEIRA("lINBOX/Trashtree_folders"), //
+		LIMPAR_LIXEIRA("empty_trash"), //
+		SELECIONAR_TODOS_EMAILS("chk_box_select_all_messages"), //
+		ENCAMINHAR_EMAIL(
+				"//div[@id='exmail_main_body']/div[2]/table/tbody/tr[1]/td/table/tbody/tr[1]/td[3]/span[3]"), //
+		RESPONDER_EMAIL(
+				"//div[@id='exmail_main_body']/div[2]/table/tbody/tr[1]/td/table/tbody/tr[1]/td[3]/span[5]"), //
+		MOVER_EMAIL("//span[@onclick='wfolders.makeWindow(\"\",\"move_to\")']"), //
+		MSG_INFO("msg_info"), //
+		MENSAGEM("em_div_write_msg");
+		private String value;
+
+		private Campo(String value) {
+			this.value = value;
+		}
+
+		public String getValue() {
+			return value;
+		}
+
+	};
+
+	public enum Valor {
+		EMAIL_TESTE_1("luiz-fernando.estivalet@cte.serpro.gov.br"), //
+		EMAIL_TESTE_2("luiz.f.estivalet@gmail.com"), //
+		EMAIL_TESTE_3("luizfernando_estivalet@yahoo.com"), //
+		EMAIL_INVALIDO("bla"), //
+		EMAIL_TESTE_MULTIPLOS(
+				"luiz-fernando.estivalet@cte.serpro.gov.br, luizfernando_estivalet@yahoo.com"), //
+		ANEXO_1("/home/luiz/Desktop/arquivo.txt"), //
+		ANEXO_2("/home/luiz/Desktop/arquivo2.txt"), //
+		ASSUNTO("[SELENIUM] Teste envio mensagem"), //
+		ASSUNTO_SALVAR("[SELENIUM] Teste salvar mensagem"), //
+		ASSUNTO_EMAIL_INVALIDO(
+				"[SELENIUM] Teste envio mensagem com destinatÃ¡rio invÃ¡lido"), //
+		ASSUNTO_SEM_DESTINATARIO(
+				"[SELENIUM] Teste envio mensagem sem destinatÃ¡rio"), //
+		ASSUNTO_MULTIPLOS_DESTINATARIOS(
+				"[SELENIUM] Teste envio mensagem para mÃºltiplos destinatÃ¡rios"), //
+		ASSUNTO_ANEXO("[SELENIUM] Teste envio mensagem com anexo"), //
+		ASSUNTO_IMPORTANTE("[SELENIUM] Teste envio mensagem importante"), //
+		ASSUNTO_MULTIPLOS_ANEXOS(
+				"[SELENIUM] Teste envio mensagem com mÃºltiplos anexos"), //
+		ASSUNTO_CONFIRMACAO_LEITURA(
+				"[SELENIUM] Teste envio mensagem com confirmaÃ§Ã£o de leitura"), //
+		ASSUNTO_COPIA("[SELENIUM] Teste envio mensagem com cÃ³pia"), //
+		ASSUNTO_COPIA_OCULTA("[SELENIUM] Teste envio mensagem com cÃ³pia oculta"), ASSUNTO_SOMENTE_COPIA(
+				"[SELENIUM] Teste envio mensagem somente cÃ³pia"), //
+		ASSUNTO_SOMENTE_COPIA_OCULTA(
+				"[SELENIUM] Teste envio mensagem somente cÃ³pia oculta");
+		private String value;
+
+		private Valor(String value) {
+			this.value = value;
+		}
+
+		public String getValue() {
+			return value;
+		}
+
+	};
+
+}
Index: devel/testlink/automation/src/test/java/br/gov/serpro/cte/AppTest.java
===================================================================
--- devel/testlink/automation/src/test/java/br/gov/serpro/cte/AppTest.java	(revision 3518)
+++ 	(revision )
@@ -1,38 +1,0 @@
-package br.gov.serpro.cte;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-/**
- * Unit test for simple App.
- */
-public class AppTest 
-    extends TestCase
-{
-    /**
-     * Create the test case
-     *
-     * @param testName name of the test case
-     */
-    public AppTest( String testName )
-    {
-        super( testName );
-    }
-
-    /**
-     * @return the suite of tests being tested
-     */
-    public static Test suite()
-    {
-        return new TestSuite( AppTest.class );
-    }
-
-    /**
-     * Rigourous Test :-)
-     */
-    public void testApp()
-    {
-        assertTrue( true );
-    }
-}
Index: devel/testlink/automation/pom.xml
===================================================================
--- devel/testlink/automation/pom.xml	(revision 3518)
+++ devel/testlink/automation/pom.xml	(revision 3521)
@@ -6,5 +6,18 @@
   <artifactId>ExpressoAutomation</artifactId>
   <version>1.0-SNAPSHOT</version>
-  <packaging>jar</packaging>
+  	<build>
+		<plugins>
+			
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<version>2.3.2</version>
+				<configuration>
+					<compilerVersion>1.5</compilerVersion>
+				</configuration>
+			</plugin>
+
+		</plugins>
+	</build>
 
   <name>ExpressoAutomation</name>
@@ -15,11 +28,41 @@
   </properties>
 
-  <dependencies>
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>3.8.1</version>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
+	<repositories>
+		<repository>
+			<id>openqa</id>
+			<name>OpenQA Repository</name>
+			<url>http://nexus.openqa.org/content/repositories/releases</url>
+			<snapshots>
+				<enabled>true</enabled>
+			</snapshots>
+			<releases>
+				<enabled>true</enabled>
+			</releases>
+		</repository>
+
+	</repositories>
+	<dependencies>
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<version>4.1</version>
+		</dependency>
+		<dependency>
+			<groupId>commons-lang</groupId>
+			<artifactId>commons-lang</artifactId>
+			<version>2.5</version>
+		</dependency>
+		<dependency>
+			<groupId>org.openqa.selenium.client-drivers</groupId>
+			<artifactId>selenium-java-client-driver</artifactId>
+			<version>1.0-beta-1</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.jbehave</groupId>
+			<artifactId>jbehave-maven-plugin</artifactId>
+			<version>2.3</version>
+		</dependency>
+
+	</dependencies>
 </project>
Index: devel/testlink/automation/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- devel/testlink/automation/.settings/org.eclipse.jdt.core.prefs	(revision 3518)
+++ devel/testlink/automation/.settings/org.eclipse.jdt.core.prefs	(revision 3521)
@@ -1,6 +1,13 @@
-#Wed Nov 17 16:55:55 BRST 2010
+#Thu Nov 18 09:28:44 BRST 2010
 eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4
-org.eclipse.jdt.core.compiler.compliance=1.4
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
 org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
-org.eclipse.jdt.core.compiler.source=1.4
+org.eclipse.jdt.core.compiler.source=1.5
