Revision 4917,
1.0 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.preferencias; |
---|
2 | |
---|
3 | import org.expressolivre.cte.common.BaseCalendarTestCase; |
---|
4 | import org.expressolivre.cte.pages.calendar.AppointmentCategoryPage; |
---|
5 | import org.expressolivre.cte.pages.calendar.RemoveAppointmentCategoryPage; |
---|
6 | import org.testng.Assert; |
---|
7 | import org.testng.annotations.Parameters; |
---|
8 | import org.testng.annotations.Test; |
---|
9 | |
---|
10 | /** |
---|
11 | * Suite:[FUN03.8] Alterar preferencias da agenda |
---|
12 | * |
---|
13 | * Caso de Teste: EL-990:Remover categoria |
---|
14 | * |
---|
15 | * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item= |
---|
16 | * testcase&id=EL-990 |
---|
17 | * |
---|
18 | * @author L.F.Estivalet (Serpro) |
---|
19 | * |
---|
20 | * Created on Aug 11, 2011 at 10:09:54 AM |
---|
21 | * |
---|
22 | */ |
---|
23 | public class RemoverCategoriaTestCase extends BaseCalendarTestCase { |
---|
24 | |
---|
25 | @Parameters({ "nome" }) |
---|
26 | @Test |
---|
27 | public void removerCategoria(String nome) { |
---|
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.removeCategory(); |
---|
35 | } |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.