1 | package org.expressolivre.cte.email.pesquisar; |
---|
2 | |
---|
3 | import java.text.SimpleDateFormat; |
---|
4 | import java.util.Calendar; |
---|
5 | |
---|
6 | import org.expressolivre.cte.common.BaseEmailTestCase; |
---|
7 | import org.expressolivre.cte.common.Config; |
---|
8 | import org.expressolivre.cte.pages.email.MailSearchPage; |
---|
9 | import org.testng.annotations.Test; |
---|
10 | |
---|
11 | /** |
---|
12 | * Suite:[FUN02.8] Pesquisar Mensagens |
---|
13 | * |
---|
14 | * Caso de Teste: EL-618:Pesquisa avancada de mensagens |
---|
15 | * |
---|
16 | * Caso de Teste: EL-1201:Pesquisar mensagens sem retornar resultado |
---|
17 | * |
---|
18 | * Caso de Teste: EL-625:Pesquisar por data especifica |
---|
19 | * |
---|
20 | * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item= |
---|
21 | * testcase&id=EL-618 |
---|
22 | * |
---|
23 | * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item= |
---|
24 | * testcase&id=EL-1201 |
---|
25 | * |
---|
26 | * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item= |
---|
27 | * testcase&id=EL-625 |
---|
28 | * |
---|
29 | * @author L.F.Estivalet (Serpro) |
---|
30 | * |
---|
31 | * Created on May 25, 2011 at 9:34:09 AM |
---|
32 | * |
---|
33 | */ |
---|
34 | public class PesquisarEmailPorDataComResultadoTestCase extends |
---|
35 | BaseEmailTestCase { |
---|
36 | |
---|
37 | @Test |
---|
38 | public void pesquisaEmailPorDataComResultado() { |
---|
39 | Calendar cal = Calendar.getInstance(); |
---|
40 | SimpleDateFormat sdf = new SimpleDateFormat("ddMMyyyy"); |
---|
41 | String today = sdf.format(cal.getTime()); |
---|
42 | |
---|
43 | MailSearchPage msp = mp.openSearchMessageWindow(); |
---|
44 | msp.setSearchFolders("lINBOX_folders_tree_search"); |
---|
45 | msp.setSearchOnDate(today); |
---|
46 | msp.doSearch(); |
---|
47 | mp.assertMessage(Config.getInstance().getMensagem("resultado.pesquisa", |
---|
48 | "1")); |
---|
49 | } |
---|
50 | |
---|
51 | } |
---|