1 | package org.expressolivre.cte.calendar.preferencias; |
---|
2 | |
---|
3 | import org.expressolivre.cte.common.BaseCalendarTestCase; |
---|
4 | import org.expressolivre.cte.pages.calendar.AddAppointmentCategoryPage; |
---|
5 | import org.expressolivre.cte.pages.calendar.AppointmentCategoryPage; |
---|
6 | import org.testng.annotations.Parameters; |
---|
7 | import org.testng.annotations.Test; |
---|
8 | |
---|
9 | /** |
---|
10 | * Suite:[FUN03.8] Alterar preferencias da agenda |
---|
11 | * |
---|
12 | * Caso de Teste: EL-989:Criar Sub categoria |
---|
13 | * |
---|
14 | * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item= |
---|
15 | * testcase&id=EL-989 |
---|
16 | * |
---|
17 | * @author L.F.Estivalet (Serpro) |
---|
18 | * |
---|
19 | * Created on Aug 11, 2011 at 10:19:50 AM |
---|
20 | * |
---|
21 | */ |
---|
22 | public class CriarSubCategoriaTestCase extends BaseCalendarTestCase { |
---|
23 | |
---|
24 | /** |
---|
25 | * @param nomePai |
---|
26 | * @param nome |
---|
27 | * @param descricao |
---|
28 | * @param particular |
---|
29 | */ |
---|
30 | @Parameters({ "nomePai", "nome", "descricao", "particular" }) |
---|
31 | @Test |
---|
32 | public void criarSubCategoria(String nomePai, String nome, |
---|
33 | String descricao, Boolean particular) { |
---|
34 | AppointmentCategoryPage acp = super.openAppointmentCategoryPage(); |
---|
35 | AddAppointmentCategoryPage aacp = acp.addCategory(); |
---|
36 | aacp.setParentCategory(nomePai); |
---|
37 | aacp.setCategoryName(nome); |
---|
38 | aacp.setCategoryDescription(descricao); |
---|
39 | aacp.setPrivateAccess(particular); |
---|
40 | aacp.saveCategory(); |
---|
41 | } |
---|
42 | |
---|
43 | } |
---|