On Thu, Jun 8, 2017 at 11:15 AM, 80Vikram <
vikra...@gmail.com> wrote:
> Hi Paolo, MO Korstanje,
>
> Please find below update of the final implementation
>
> 1. JUnit methods ( called by @ClassRule, @Rule ) are pushed into independent
> methods
>
> 2. These are still called by JUnit
>
> 3. In case of Cucumber I wrote below 3 methods
>
> @Before
> public void setUpBeforeScenarioAndBeforeFeature(){
> //used static variable to call method related to before class execution
> //before each scenario method gets called here
>
> }
>
> @After
> public void tearDownAfterSceanrio(){
> //after reach scenario method gets called here
> }
>
> @After("@last") //had added this tag to last scenario in each of the feature
> file
> public void tearDownAfterFeature(){
> //after class method will be called from here
> }
Tagging the last scenario in each feature file is dangerous. There are