How to use BeforeAll and AfterAll cucumber anonotation?

Multi tool use


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();
}
}
}
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.
How is the question related to
Selenium
? Am I missing something?– DebanjanB
20 mins ago