Revision 4917,
1.2 KB
checked in by luiz-fernando, 13 years ago
(diff) |
Ticket #1771 - Adicionado testes automatizados para modulo da agenda
|
Rev | Line | |
---|
[4890] | 1 | package org.expressolivre.cte.calendar.visualizar; |
---|
| 2 | |
---|
| 3 | import org.expressolivre.cte.common.BaseCalendarTestCase; |
---|
| 4 | import org.expressolivre.cte.pages.calendar.AppointmentViewPage; |
---|
| 5 | import org.expressolivre.cte.pages.calendar.CalendarTodayViewPage; |
---|
| 6 | import org.testng.Assert; |
---|
| 7 | import org.testng.annotations.Parameters; |
---|
| 8 | import org.testng.annotations.Test; |
---|
| 9 | |
---|
| 10 | /** |
---|
| 11 | * Caso de Teste: EL-969:Remover compromisso com repeticao |
---|
| 12 | * |
---|
| 13 | * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item= |
---|
| 14 | * testcase&id=EL-969 |
---|
| 15 | * |
---|
| 16 | * @author L.F.Estivalet (Serpro) |
---|
| 17 | * |
---|
| 18 | * Created on Ago 2, 2011 at 9:39:05 AM |
---|
| 19 | * |
---|
| 20 | */ |
---|
| 21 | public class RemoverCompromissoComRepeticaoTestCase extends |
---|
| 22 | BaseCalendarTestCase { |
---|
| 23 | |
---|
[4917] | 24 | /** |
---|
| 25 | * @param titulo |
---|
| 26 | */ |
---|
[4890] | 27 | @Parameters({ "titulo" }) |
---|
| 28 | @Test |
---|
[4917] | 29 | public void removerCompromissoComRepeticaoDataCorrente(String titulo) { |
---|
[4890] | 30 | CalendarTodayViewPage ctvp = super.openTodayView(); |
---|
| 31 | String id = ctvp.getAppointmentId(titulo); |
---|
| 32 | |
---|
| 33 | String[] ids = id.split("rc"); |
---|
| 34 | |
---|
| 35 | AppointmentViewPage avp = cp.openAppointmentViewPage( |
---|
| 36 | ids[0].substring(1), ids[1].substring(0, ids[1].length() - 1)); |
---|
| 37 | Assert.assertEquals(avp.getTitle(), titulo); |
---|
| 38 | |
---|
| 39 | avp.removeSeriesAppointment(); |
---|
| 40 | } |
---|
| 41 | |
---|
| 42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.