1 | package org.expressolivre.cte.calendar.compartilhar; |
---|
2 | |
---|
3 | import org.expressolivre.cte.common.BaseCalendarTestCase; |
---|
4 | import org.expressolivre.cte.common.Config; |
---|
5 | import org.expressolivre.cte.pages.calendar.AppointmentViewPage; |
---|
6 | import org.expressolivre.cte.pages.calendar.CalendarTodayViewPage; |
---|
7 | import org.testng.Assert; |
---|
8 | import org.testng.annotations.Parameters; |
---|
9 | import org.testng.annotations.Test; |
---|
10 | |
---|
11 | /** |
---|
12 | * Suite:[FUN03.7] Compartilhar agenda |
---|
13 | * |
---|
14 | * Caso de Teste: EL-982:Editar agenda compartilhada com acesso somente leitura |
---|
15 | * |
---|
16 | * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item= |
---|
17 | * testcase&id=EL-982 |
---|
18 | * |
---|
19 | * @author L.F.Estivalet (Serpro) |
---|
20 | * |
---|
21 | * Created on Aug 22, 2011 at 4:31:19 PM |
---|
22 | * |
---|
23 | */ |
---|
24 | public class EditarAgendaCompartilhadaSomenteLeituraTestCase extends |
---|
25 | BaseCalendarTestCase { |
---|
26 | |
---|
27 | @Parameters({ "owner", "titulo" }) |
---|
28 | @Test |
---|
29 | public void editarAgendaCompartilhadaSomenteLeitura(String owner, |
---|
30 | String titulo) { |
---|
31 | CalendarTodayViewPage ctvp = super.openTodayView(); |
---|
32 | |
---|
33 | // Busca o nome do usuario do arquivo de confirguracao. |
---|
34 | String userName = Config.getInstance().getConfig(owner + ".name"); |
---|
35 | ctvp.setOwner(userName); |
---|
36 | |
---|
37 | String id = ctvp.getAppointmentId(titulo); |
---|
38 | AppointmentViewPage avp = cp.openAppointmentViewPage(id); |
---|
39 | Assert.assertEquals(avp.getTitle(), titulo); |
---|
40 | |
---|
41 | } |
---|
42 | } |
---|