Hooks

at_exit

At exit hook. Used when you want to run a code at the end of all your test runs:

at_exit do
    run_clean_down_code()
end
before

Used to run codes before each scenario

before do
    run_code_before_scenario()
end
after

Used to run codes after each scenario

after do
    run_code_before_scenario()
end


[catlist name="cucumber"]