source: devel/testlink/automation2.0/src/test/java/org/expressolivre/cte/calendar/preferencias/RemoverCategoriaSemExcluirSubTestCase.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-992:Remover categoria sem excluir sub categoria
14 *
15 * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item=
16 * testcase&id=EL-992
17 *
18 * @author L.F.Estivalet (Serpro)
19 *
20 *         Created on Aug 11, 2011 at 10:27:54 AM
21 *
22 */
23public class RemoverCategoriaSemExcluirSubTestCase extends BaseCalendarTestCase {
24
25        @Parameters({ "nome", "nomeFilha" })
26        @Test
27        public void removerCategoriaSemExcluirSubCategoria(String nome,
28                        String nomeFilha) {
29                AppointmentCategoryPage acp = super.openAppointmentCategoryPage();
30                Integer catId = acp.findCategory(nome);
31
32                Assert.assertNotNull(catId);
33
34                RemoveAppointmentCategoryPage racp = acp.removeCategory(nome);
35                acp = racp.removeCategory();
36
37                // Verifica que a categoria filha permanece na lista.
38                catId = acp.findCategory(nomeFilha);
39
40                Assert.assertNotNull(catId);
41        }
42}
Note: See TracBrowser for help on using the repository browser.