How to use BeforeAll and AfterAll cucumber anonotation?

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.

Popular posts from this blog

Arduino Mega cannot recieve any sketches, stk500_recv() programmer is not responding

Better method to check all objects' parameters with a single call

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