Ignore:
Timestamp:
07/18/11 10:56:36 (13 years ago)
Author:
luiz-fernando
Message:

Ticket #1771 - Refactoring, criadas novas classes para Pasta, Filtro, Pesquisa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/testlink/automation2.0/src/test/java/org/expressolivre/cte/common/BaseTestCase.java

    r4627 r4780  
    11package org.expressolivre.cte.common; 
     2 
     3import java.io.IOException; 
    24 
    35import org.expressolivre.cte.pages.common.LoginPage; 
     
    911import org.openqa.selenium.firefox.FirefoxDriver; 
    1012import org.openqa.selenium.support.PageFactory; 
     13import org.testng.SkipException; 
    1114import org.testng.annotations.AfterClass; 
    1215import org.testng.annotations.AfterSuite; 
     
    114117 
    115118        /** 
     119         * Verifica a presenca de uma preferencia. 
     120         *  
     121         * @param preference 
     122         *            Preferencia a verificar 
     123         * @throws IOException 
     124         *             Problema ao ler arquivo temporario das preferencias 
     125         * @throws SkipException 
     126         *             Se a preferencia procurada nao existir, o caso de teste nao 
     127         *             deve ser executado pois a funcionalidade referente nao esta 
     128         *             disponivel na configuracao. 
     129         */ 
     130        public void checkPreference(String preference) throws IOException, 
     131                        SkipException { 
     132                String contents = IOUtil.readFully("temppref.txt"); 
     133                if (!contents.contains(preference)) { 
     134                        throw new SkipException("TESTE NÃO EXECUTADO. Preferência " 
     135                                        + preference + " não está disponível"); 
     136                } 
     137        } 
     138 
     139        /** 
    116140         * TODO Rever esse metodo. Foi o unico jeito que consegui fazer pegar o 
    117141         * numero total de mensagens importantes. O metodo apenas aguarda 5 segundos 
Note: See TracChangeset for help on using the changeset viewer.