Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

Hooks Example code

Category: BDD Cucumber
package utilities;
import cucumber.api.java.After;
import cucumber.api.java.Before;

public class Hooks {
	
	@Before
    public void beforeScenario(){
        System.out.println(""This will run before the Scenario"");
    }	
	
	@After
    public void afterScenario(){
        System.out.println(""This will run after the Scenario"");
    }
}

Leave a Reply

Your email address will not be published. Required fields are marked *