source: devel/testlink/automation2.0/src/test/java/org/expressolivre/cte/calendar/compartilhar/PermitirAdicaoAgendaTestCase.java @ 5025

Revision 5025, 1.2 KB checked in by luiz-fernando, 13 years ago (diff)

Ticket #1771 - Adicionado testes automatizados para modulo da agenda

Line 
1package org.expressolivre.cte.calendar.compartilhar;
2
3import org.expressolivre.cte.common.BaseCalendarTestCase;
4import org.expressolivre.cte.pages.calendar.AgendaAddACLUserPage;
5import org.expressolivre.cte.pages.calendar.AgendaPermissionPage;
6import org.testng.annotations.Parameters;
7import org.testng.annotations.Test;
8
9/**
10 * Suite:[FUN03.7] Compartilhar agenda
11 *
12 * Caso de Teste: EL-980:Permitir acesso adicao de evento a agenda
13 *
14 * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item=
15 * testcase&id=EL-980
16 *
17 * @author L.F.Estivalet (Serpro)
18 *
19 *         Created on Aug 24, 2011 at 2:49:24 PM
20 *
21 */
22public class PermitirAdicaoAgendaTestCase extends BaseCalendarTestCase {
23
24        @Parameters({ "nomeUsuario", "organizacao", "setor" })
25        @Test
26        public void permitirAcessoAdicao(String nomeUsuario, String organizacao,
27                        String setor) {
28                AgendaPermissionPage app = super.openAgendaPermissionPage();
29
30                if (!app.isUserInList(nomeUsuario)) {
31                        AgendaAddACLUserPage aaaup = app.addUserACL();
32                        aaaup.setOrganization(organizacao);
33                        aaaup.setSector(setor);
34                        aaaup.selectUser(nomeUsuario);
35                        aaaup.addUser();
36                        aaaup.close();
37                }
38                app.clearPemissions();
39                app.setAddPermission(true);
40                app.apply();
41        }
42
43}
Note: See TracBrowser for help on using the repository browser.