Revision 4962,
1.1 KB
checked in by luiz-fernando, 13 years ago
(diff) |
Ticket #1771 - Adicionado testes automatizados para modulo da agenda
|
Line | |
---|
1 | package org.expressolivre.cte.calendar.filtrar; |
---|
2 | |
---|
3 | import org.expressolivre.cte.common.BaseCalendarTestCase; |
---|
4 | import org.expressolivre.cte.pages.calendar.CalendarTodayViewPage; |
---|
5 | import org.testng.Assert; |
---|
6 | import org.testng.annotations.Parameters; |
---|
7 | import org.testng.annotations.Test; |
---|
8 | |
---|
9 | /** |
---|
10 | * Suite:[FUN03.1] Filtrar Compromisso |
---|
11 | * |
---|
12 | * Caso de Teste: EL-926:Filtrar compromissos do dia corrente |
---|
13 | * |
---|
14 | * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item= |
---|
15 | * testcase&id=EL-926 |
---|
16 | * |
---|
17 | * @author L.F.Estivalet (Serpro) |
---|
18 | * |
---|
19 | * Created on Aug 15, 2011 at 2:01:17 PM |
---|
20 | * |
---|
21 | */ |
---|
22 | public class FiltrarCompromissosDiaCorrenteTestCase extends |
---|
23 | BaseCalendarTestCase { |
---|
24 | |
---|
25 | /** |
---|
26 | * Procura pelos titulos do compromisso. |
---|
27 | * |
---|
28 | * @param titulos |
---|
29 | * Titulos a serem procurados no dia corrente. |
---|
30 | */ |
---|
31 | @Parameters({ "titulos" }) |
---|
32 | @Test |
---|
33 | public void filtrarCompromissoDoDiaCorrente(String titulos) { |
---|
34 | CalendarTodayViewPage ctvp = super.openTodayView(); |
---|
35 | |
---|
36 | String[] titles = titulos.split(","); |
---|
37 | |
---|
38 | for (String titulo : titles) { |
---|
39 | Assert.assertTrue(ctvp.isTextPresent(titulo)); |
---|
40 | } |
---|
41 | } |
---|
42 | |
---|
43 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.