Forum Discussion

saprao's avatar
saprao
Occasional Contributor
8 years ago

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

  • TanyaYatskovska's avatar
    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?