[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 | |
---|
| 24 | @Parameters({ "titulo" }) |
---|
| 25 | @Test |
---|
| 26 | public void removerCompromissoComRepeticao(String titulo) { |
---|
| 27 | CalendarTodayViewPage ctvp = super.openTodayView(); |
---|
| 28 | String id = ctvp.getAppointmentId(titulo); |
---|
| 29 | |
---|
| 30 | System.out.println(id); |
---|
| 31 | |
---|
| 32 | String[] ids = id.split("rc"); |
---|
| 33 | System.out.println("-->" + ids[0].substring(1) + " " |
---|
| 34 | + ids[1].substring(0, ids[1].length() - 1)); |
---|
| 35 | |
---|
| 36 | AppointmentViewPage avp = cp.openAppointmentViewPage( |
---|
| 37 | ids[0].substring(1), ids[1].substring(0, ids[1].length() - 1)); |
---|
| 38 | Assert.assertEquals(avp.getTitle(), titulo); |
---|
| 39 | |
---|
| 40 | avp.removeSeriesAppointment(); |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | } |
---|