Revision 4917,
1.2 KB
checked in by luiz-fernando, 13 years ago
(diff) |
Ticket #1771 - Adicionado testes automatizados para modulo da agenda
|
Rev | Line | |
---|
[4890] | 1 | package org.expressolivre.cte.calendar.visualizar; |
---|
[4864] | 2 | |
---|
| 3 | import org.expressolivre.cte.common.BaseCalendarTestCase; |
---|
| 4 | import org.expressolivre.cte.pages.calendar.AppointmentViewPage; |
---|
| 5 | import org.expressolivre.cte.pages.calendar.CalendarTodayViewPage; |
---|
| 6 | import org.testng.Assert; |
---|
| 7 | import org.testng.annotations.Parameters; |
---|
| 8 | import org.testng.annotations.Test; |
---|
| 9 | |
---|
| 10 | /** |
---|
| 11 | * Caso de Teste: EL-970:Remover compromisso |
---|
| 12 | * |
---|
| 13 | * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item= |
---|
| 14 | * testcase&id=EL-970 |
---|
| 15 | * |
---|
| 16 | * @author L.F.Estivalet (Serpro) |
---|
| 17 | * |
---|
| 18 | * Created on Jul 26, 2011 at 9:49:05 AM |
---|
| 19 | * |
---|
| 20 | */ |
---|
| 21 | public class RemoverCompromissoTestCase extends BaseCalendarTestCase { |
---|
| 22 | |
---|
[4917] | 23 | /** |
---|
| 24 | * Remove o compromisso da data corrente. |
---|
| 25 | * |
---|
| 26 | * @param titulo |
---|
| 27 | * Titulo do compromisso a ser removido. |
---|
| 28 | */ |
---|
[4864] | 29 | @Parameters({ "titulo" }) |
---|
| 30 | @Test |
---|
[4917] | 31 | public void removerCompromissoDataCorrente(String titulo) { |
---|
| 32 | // Abre a visao diaria e procura pelo compromisso. |
---|
[4864] | 33 | CalendarTodayViewPage ctvp = super.openTodayView(); |
---|
| 34 | String id = ctvp.getAppointmentId(titulo); |
---|
| 35 | |
---|
[4917] | 36 | // Abre a pagina do compromisso. |
---|
[4864] | 37 | AppointmentViewPage avp = cp.openAppointmentViewPage(id); |
---|
[4917] | 38 | // Verifica o titulo. |
---|
[4864] | 39 | Assert.assertEquals(avp.getTitle(), titulo); |
---|
| 40 | |
---|
[4917] | 41 | // Aciona o botao remover. |
---|
[4864] | 42 | avp.removeAppointment(); |
---|
| 43 | } |
---|
| 44 | |
---|
| 45 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.