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