Revision 4895,
1.0 KB
checked in by luiz-fernando, 13 years ago
(diff) |
Ticket #1771 - Adicionado testes automatizados para modulo da agenda
|
Rev | Line | |
---|
[4895] | 1 | package org.expressolivre.cte.calendar.pesquisar; |
---|
| 2 | |
---|
| 3 | import org.expressolivre.cte.common.BaseCalendarTestCase; |
---|
| 4 | import org.expressolivre.cte.pages.calendar.AppointmentSearchResultPage; |
---|
| 5 | import org.testng.Assert; |
---|
| 6 | import org.testng.annotations.Parameters; |
---|
| 7 | import org.testng.annotations.Test; |
---|
| 8 | |
---|
| 9 | /** |
---|
| 10 | * Caso de Teste: EL-956:Pesquisar pelo local de um compromisso |
---|
| 11 | * |
---|
| 12 | * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item= |
---|
| 13 | * testcase&id=EL-956 |
---|
| 14 | * |
---|
| 15 | * @author L.F.Estivalet (Serpro) |
---|
| 16 | * |
---|
| 17 | * Created on Aug 2, 2011 at 4:42:36 PM |
---|
| 18 | * |
---|
| 19 | */ |
---|
| 20 | public class PesquisarCompromissoPeloLocalTestCase extends BaseCalendarTestCase { |
---|
| 21 | |
---|
| 22 | /** |
---|
| 23 | * Pesquisa um compromisso que exista na agenda. |
---|
| 24 | * |
---|
| 25 | * @param titulo |
---|
| 26 | * Local a ser pesquisado. |
---|
| 27 | */ |
---|
| 28 | @Parameters({ "local" }) |
---|
| 29 | @Test |
---|
| 30 | public void pesquisarCompromissoPeloLocal(String local) { |
---|
| 31 | cp.setSearchText(local); |
---|
| 32 | AppointmentSearchResultPage asrp = cp.searchAppointment(); |
---|
| 33 | Assert.assertEquals(asrp.getResultsNumber(), "1 ocorrência encontrada."); |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.