source: devel/testlink/automation2.0/src/test/java/org/expressolivre/cte/calendar/preferencias/RemoverCategoriaESubTestCase.java @ 4917

Revision 4917, 1.3 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.preferencias;
2
3import org.expressolivre.cte.common.BaseCalendarTestCase;
4import org.expressolivre.cte.pages.calendar.AppointmentCategoryPage;
5import org.expressolivre.cte.pages.calendar.RemoveAppointmentCategoryPage;
6import org.testng.Assert;
7import org.testng.annotations.Parameters;
8import org.testng.annotations.Test;
9
10/**
11 * Suite:[FUN03.8] Alterar preferencias da agenda
12 *
13 * Caso de Teste: EL-991:Remover categoria com sub categoria
14 *
15 * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item=
16 * testcase&id=EL-991
17 *
18 * @author L.F.Estivalet (Serpro)
19 *
20 *         Created on Aug 11, 2011 at 10:34:54 AM
21 *
22 */
23public class RemoverCategoriaESubTestCase extends BaseCalendarTestCase {
24
25        @Parameters({ "nome", "nomeFilha" })
26        @Test
27        public void removerCategoria(String nome, String nomeFilha) {
28                AppointmentCategoryPage acp = super.openAppointmentCategoryPage();
29                Integer catId = acp.findCategory(nome);
30
31                Assert.assertNotNull(catId);
32
33                RemoveAppointmentCategoryPage racp = acp.removeCategory(nome);
34                racp.setRemoveSubCategories();
35                acp = racp.removeCategory();
36
37                // Verifica se a categoria foi realmente removida
38                Assert.assertNull(acp.findCategory(nome));
39                Assert.assertNull(acp.findCategory(nomeFilha));
40        }
41}
Note: See TracBrowser for help on using the repository browser.