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-965:Exibir compromisso com repeticao |
---|
12 | * |
---|
13 | * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item= |
---|
14 | * testcase&id=EL-965 |
---|
15 | * |
---|
16 | * @author L.F.Estivalet (Serpro) |
---|
17 | * |
---|
18 | * Created on Ago 11, 2011 at 3:00:43 PM |
---|
19 | * |
---|
20 | */ |
---|
21 | public class ExibirCompromissoComRepeticaoTestCase extends BaseCalendarTestCase { |
---|
22 | |
---|
23 | /** |
---|
24 | * Exibe um compromisso da data corrente. |
---|
25 | * |
---|
26 | * @param tipo |
---|
27 | * @param titulo |
---|
28 | * @param inicio |
---|
29 | * @param fim |
---|
30 | * @param prioridade |
---|
31 | */ |
---|
32 | @Parameters({ "tipo", "titulo", "inicio", "fim", "prioridade" }) |
---|
33 | @Test |
---|
34 | public void exibirCompromissoComRepeticao(String tipo, String titulo, |
---|
35 | String inicio, String fim, String prioridade) { |
---|
36 | CalendarTodayViewPage ctvp = super.openTodayView(); |
---|
37 | String id = ctvp.getAppointmentId(titulo); |
---|
38 | String[] ids = id.split("rc"); |
---|
39 | |
---|
40 | AppointmentViewPage avp = cp.openAppointmentViewPage( |
---|
41 | ids[0].substring(1), ids[1].substring(0, ids[1].length() - 1)); |
---|
42 | Assert.assertEquals(avp.getTitle(), titulo); |
---|
43 | } |
---|
44 | } |
---|