Revision 4962,
1.1 KB
checked in by luiz-fernando, 13 years ago
(diff) |
Ticket #1771 - Adicionado testes automatizados para modulo da agenda
|
Rev | Line | |
---|
[4962] | 1 | package org.expressolivre.cte.calendar.filtrar; |
---|
| 2 | |
---|
| 3 | import org.expressolivre.cte.common.BaseCalendarTestCase; |
---|
| 4 | import org.expressolivre.cte.pages.calendar.CalendarMonthlyViewPage; |
---|
| 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-928:Filtrar compromissos do mes corrente |
---|
| 13 | * |
---|
| 14 | * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item= |
---|
| 15 | * testcase&id=EL-928 |
---|
| 16 | * |
---|
| 17 | * @author L.F.Estivalet (Serpro) |
---|
| 18 | * |
---|
| 19 | * Created on Aug 15, 2011 at 2:13:17 PM |
---|
| 20 | * |
---|
| 21 | */ |
---|
| 22 | public class FiltrarCompromissosMesCorrenteTestCase extends |
---|
| 23 | BaseCalendarTestCase { |
---|
| 24 | |
---|
| 25 | /** |
---|
| 26 | * Procura pelos titulos do compromisso. |
---|
| 27 | * |
---|
| 28 | * @param titulos |
---|
| 29 | * Titulos a serem procurados no mes corrente. |
---|
| 30 | */ |
---|
| 31 | @Parameters({ "titulos" }) |
---|
| 32 | @Test |
---|
| 33 | public void filtrarCompromissoDoMesCorrente(String titulos) { |
---|
| 34 | CalendarMonthlyViewPage cmvp = cp.openMonthlyView(); |
---|
| 35 | |
---|
| 36 | String[] titles = titulos.split(","); |
---|
| 37 | |
---|
| 38 | for (String titulo : titles) { |
---|
| 39 | Assert.assertTrue(cmvp.isTextPresent(titulo)); |
---|
| 40 | } |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.