Revision 4780,
1.0 KB
checked in by luiz-fernando, 13 years ago
(diff) |
Ticket #1771 - Refactoring, criadas novas classes para Pasta, Filtro, Pesquisa
|
Line | |
---|
1 | package org.expressolivre.cte.email.compor; |
---|
2 | |
---|
3 | import org.expressolivre.cte.common.BaseEmailTestCase; |
---|
4 | import org.openqa.selenium.Alert; |
---|
5 | import org.testng.annotations.Test; |
---|
6 | |
---|
7 | /** |
---|
8 | * Suite:[FUN02.1] Compor Mensagem |
---|
9 | * |
---|
10 | * Caso de Teste: EL-1096:Utilizar pesquisa rápida â pesquisar â Sem resultados |
---|
11 | * |
---|
12 | * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item= |
---|
13 | * testcase&id=EL-1096 |
---|
14 | * |
---|
15 | * @author L.F.Estivalet (Serpro) |
---|
16 | * |
---|
17 | * Created on Jul 12, 2011 at 10:28:44 AM |
---|
18 | * |
---|
19 | */ |
---|
20 | public class PesquisaRapidaSemResultadoTestCase extends BaseEmailTestCase { |
---|
21 | |
---|
22 | @Test |
---|
23 | public void pesquisaRapidaSemResultado() { |
---|
24 | mp.composeEmail("contatoinexistente", "assunto"); |
---|
25 | mp.quickContactSearch(); |
---|
26 | |
---|
27 | // Espera ate a janela de alert aparecer. |
---|
28 | try { |
---|
29 | super.dummyWait(5); |
---|
30 | } catch (Exception e) { |
---|
31 | // TODO Auto-generated catch block |
---|
32 | e.printStackTrace(); |
---|
33 | } |
---|
34 | |
---|
35 | Alert alert = driver.switchTo().alert(); |
---|
36 | assert ("Nenhum resultado foi encontrado.".equals(alert.getText())); |
---|
37 | alert.accept(); |
---|
38 | mp.closeMail(true); |
---|
39 | } |
---|
40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.