Revision 4917,
1000 bytes
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.AddAppointmentCategoryPage; |
---|
5 | import org.expressolivre.cte.pages.calendar.AppointmentCategoryPage; |
---|
6 | import org.testng.Assert; |
---|
7 | import org.testng.annotations.Test; |
---|
8 | |
---|
9 | /** |
---|
10 | * Suite:[FUN03.8] Alterar preferencias da agenda |
---|
11 | * |
---|
12 | * Caso de Teste: EL-1061:Criar categoria sem informar campo nome |
---|
13 | * |
---|
14 | * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item= |
---|
15 | * testcase&id=EL-1061 |
---|
16 | * |
---|
17 | * @author L.F.Estivalet (Serpro) |
---|
18 | * |
---|
19 | * Created on Aug 11, 2011 at 2:23:04 PM |
---|
20 | * |
---|
21 | */ |
---|
22 | public class CriarCategoriaSemNomeTestCase extends BaseCalendarTestCase { |
---|
23 | |
---|
24 | @Test |
---|
25 | public void criarCategoriaSemNome() { |
---|
26 | AppointmentCategoryPage acp = super.openAppointmentCategoryPage(); |
---|
27 | AddAppointmentCategoryPage aacp = acp.addCategory(); |
---|
28 | aacp.saveCategory(); |
---|
29 | |
---|
30 | Assert.assertEquals(aacp.getErrorMessage(), |
---|
31 | "Por favor digite um nome !"); |
---|
32 | } |
---|
33 | |
---|
34 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.