Revision 4895,
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.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 | String[] ids = id.split("rc"); |
---|
31 | |
---|
32 | AppointmentViewPage avp = cp.openAppointmentViewPage( |
---|
33 | ids[0].substring(1), ids[1].substring(0, ids[1].length() - 1)); |
---|
34 | Assert.assertEquals(avp.getTitle(), titulo); |
---|
35 | |
---|
36 | avp.removeSeriesAppointment(); |
---|
37 | } |
---|
38 | |
---|
39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.