Ask a Question

Need to generate new output xls file with time stamp for each run

saprao
Occasional Contributor

Need to generate new output xls file with time stamp for each run

Hi ,

 

Use case:  Output results should not override into output xls sheet for every run and should create new output xls sheet with time stamp for every run.

 

Can anyone have Groovy script for this use case. Please help it.

 

Thanks.

 

 

 

 

 

1 REPLY 1
TanyaYatskovska
SmartBear Alumni (Retired)

Hi Saprao,

 

 

It looks like you are talking about the Excel file you use in DataSink, right? In this case, you can create a project property and set some unique value to it after each test run, for example the date/time. Use this property to specify the path to your output file, like:

E:/file${#TestSuite#test}.xlsx

test is the name of my property. 

 

Is this what you are looking for?

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



cancel
Showing results for 
Search instead for 
Did you mean: