/**
 * 
 */
package steps;

import org.jbehave.core.annotations.AfterScenario;
import org.jbehave.core.annotations.BeforeScenario;
import org.jbehave.core.steps.Steps;

import br.com.sofist.selenium.report.SofistSeleniumReport;
import br.com.synchro.gerenciadorCaminhos.ProvedorCaminhosManual;
import br.com.synchro.provedorFuncionalidades.FuncionalidadeSynGui;

import com.unitedinternet.portal.selenium.utils.logging.SofistLoggingDefaultSelenium;

/**
 * @author $author
 * @version $revision
 * @create $date
 */
public class StepsFrameWorkAutomacao extends Steps {

    public static SofistLoggingDefaultSelenium selenium;
    public static SofistSeleniumReport sft;
    public FuncionalidadeSynGui func;
    public ProvedorCaminhosManual ref;

    @BeforeScenario
    public void setUp() throws Exception {

	String testName = ("Login"); // ***** I need get the test title here *****

	sft = new SofistSeleniumReport(this.getClass().getName(), testName, this.getClass().getClassLoader().getResource("\\automacao.properties").toURI().getPath());
	selenium = sft.configReportAndApp();
	ref = new ProvedorCaminhosManual();
	func = new FuncionalidadeSynGui(selenium);
    }

    @AfterScenario
    public void tearDown() throws Exception {
	func.getAcessar().logOut();
	selenium.stop();
	sft.closeReport();
    }
}
