source: devel/testlink/automation2.0/src/test/java/org/expressolivre/cte/calendar/filtrar/FiltrarCompromissosSemanaCorrenteTestCase.java @ 4962

Revision 4962, 1.1 KB checked in by luiz-fernando, 13 years ago (diff)

Ticket #1771 - Adicionado testes automatizados para modulo da agenda

Line 
1package org.expressolivre.cte.calendar.filtrar;
2
3import org.expressolivre.cte.common.BaseCalendarTestCase;
4import org.expressolivre.cte.pages.calendar.CalendarWeeklyViewPage;
5import org.testng.Assert;
6import org.testng.annotations.Parameters;
7import org.testng.annotations.Test;
8
9/**
10 * Suite:[FUN03.1] Filtrar Compromisso
11 *
12 * Caso de Teste: EL-927:Filtrar compromissos da semana corrente
13 *
14 * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item=
15 * testcase&id=EL-927
16 *
17 * @author L.F.Estivalet (Serpro)
18 *
19 *         Created on Aug 15, 2011 at 2:08:17 PM
20 *
21 */
22public class FiltrarCompromissosSemanaCorrenteTestCase extends
23                BaseCalendarTestCase {
24
25        /**
26         * Procura pelos titulos do compromisso.
27         *
28         * @param titulos
29         *            Titulos a serem procurados na semana corrente.
30         */
31        @Parameters({ "titulos" })
32        @Test
33        public void filtrarCompromissoDaSemanaCorrente(String titulos) {
34                CalendarWeeklyViewPage cwvp = cp.openWeeklyView();
35
36                String[] titles = titulos.split(",");
37
38                for (String titulo : titles) {
39                        Assert.assertTrue(cwvp.isTextPresent(titulo));
40                }
41        }
42
43}
Note: See TracBrowser for help on using the repository browser.