How to use BeforeAll and AfterAll cucumber anonotation?

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


How to use BeforeAll and AfterAll cucumber anonotation?



I want to execute the below some action before feature file.


public void beforeFeature() {
File path = new File("D:\AccelareWorkFitComplete\ExtentsReports\");

File filename =path.listFiles();

for(File fi:filename)
{
if (fi.toString().contains("Automation"))
{
fi.delete();
}
}
}





How is the question related to Selenium? Am I missing something?
– DebanjanB
20 mins ago


Selenium





i have implemented the selenium using cucumber framework BDD
– Yashodip Patil
14 mins ago





My question is how does your question in the current state relates to Selenium? Perhaps this a generic cucumber or bdd related question which you have already tagged.
– DebanjanB
7 mins ago


Selenium


cucumber


bdd









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

1IU pRn,HZItxd7o4G0HyOex0zO7B,iAczvP NLqGozQ5T,5AxdlJz8uWx,Pxl
JhkzqYXbg2i20J4t4cJC3IdzSFTgEVS7we,gpfNn8,0DDjgTmMe y D5scMfSegwbE5ydYleaGWi3VHSj53gZeNg,o

Popular posts from this blog

Makefile test if variable is not empty

Visual Studio Code: How to configure includePath for better IntelliSense results

Will Oldham