How to make sure that if the File name is having a timestamp included in its name , then , this plugin will always take the latest one from the folder

Referring to :
http://toolsqa.com/selenium-webdriver/send-reports-automatically-to-email-using-maven-from-eclipse/

 

How to make sure that if the File name that gets generated is having a timestamp included in its name , then , this plugin will always take the latest one from the folder specified.

<fileSets>
<fileSet>
<!– Report directory Path –>
<directory>C://Users//Sumeet
Kumar//git//xxx//SumeetHybrid//test-output-extent//ExtentReports</directory>
<includes>
<!– Report file name –>
<include>TestReport_<Date>_<Time>.html</include>
</includes>
<!– Use Regular Expressions like **/*.html if you want all the
html files to send –>
</fileSet>
</fileSets>

 

Example of file Name :- TestReport_28_04_2018_12_03_11.html

 

Default Asked on April 28, 2018 in Selenium WebDriver.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.