package pt.fccn.mobile.arquivo.tests;

import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

import java.io.IOException;

import org.junit.Test;

import pt.fccn.mobile.arquivo.pages.IndexPage;
import pt.fccn.saw.selenium.Retry;
import pt.fccn.saw.selenium.WebDriverTestBaseParalell;
import pt.fccn.sobre.arquivo.pages.IndexSobrePage;

public class FullTextSearchTest extends WebDriverTestBaseParalell {
		
	public FullTextSearchTest(String os, String version, String browser, String deviceName, String deviceOrientation) {
		super( os, version, browser, deviceName, deviceOrientation );
	}
	
	@Test
	//@Retry
	public void searchingTest( )  {
		System.out.print( "[Mobile] Running SearchTest Test. \n");
		IndexPage index = null;
		try{
			index = new IndexPage( driver );
			/**************************/
			/*** Portuguese version ***/ 
			/**************************/
	        assertTrue("Failed The Search Test in Portuguese", index.checkSearch( "PT" ) );
	        System.out.println( "Success The Search Test in Portuguese" );
	        
	        /***********************/
	        /*** English version ***/ 
	        /***********************/
	        //assertTrue("Failed The Search Test in English", search.checkSearch( "EN" ) );
	        //System.out.println( "Success The Search Test in English" );
		} catch( IOException e ) {
			fail( "IOException -> SearchingTest" );
		}
		
    }
	
}

@@ -754,15 +754,9 @@
 l;%0A%09
-%09try%7B%0A%09
+%0A
 %09%09in
@@ -788,17 +788,16 @@
 er );%0A%09%09
-%09
 /*******
@@ -817,17 +817,16 @@
 ******/%0A
-%09
 %09%09/*** P
@@ -849,17 +849,16 @@
 n ***/ %0A
-%09
 %09%09/*****
@@ -872,33 +872,32 @@
 **************/%0A
-%09
         assertTr
@@ -964,25 +964,24 @@
 ( %22PT%22 ) );%0A
-%09
         Syst
@@ -1035,25 +1035,24 @@
 tuguese%22 );%0A
-%09
         %0A%09  
@@ -1048,17 +1048,16 @@
        %0A
-%09
         
@@ -1074,33 +1074,32 @@
 **************/%0A
-%09
         /*** Eng
@@ -1117,17 +1117,16 @@
 n ***/ %0A
-%09
         
@@ -1151,17 +1151,16 @@
 ******/%0A
-%09
         
@@ -1239,17 +1239,16 @@
 N%22 ) );%0A
-%09
         
@@ -1313,83 +1313,8 @@
  );%0A
-%09%09%7D catch( IOException e ) %7B%0A%09%09%09fail( %22IOException -%3E SearchingTest%22 );%0A%09%09%7D
 %0A%09%09%0A

Remove try/catch FullTextSearch test