Problem Statement: How to induct code automatically just before start and end of test method in geb-spock specification file.
Geb-spock does not have something related to BeforeMethod or AfterMethod which gets executed just before start/end of test method. This feature is provided by testNG tool. As, Geb-spock uses junit internally and junit does not have this feature aswell, Geb-spock does not have this facility aswell.
But, I need to work out on solution using geb-spock where I need to induct a code just before start of test method and after completion of test method.
How can I solve my problem.
Thanks, Debasish
please follow the below code for understanding: