Forum Discussion

emile's avatar
emile
Occasional Contributor
9 years ago

DataSink outfile with date or number

Hi there,

i'd like to add the date or a number in my Out File xls file, is there a way like this "result/outfile[Date].xls" ...

Thx a lot,

Emile

  • Hi Emile,

     

    From my understanding the following will work:

    1. You need to create a custom property and assign a value to it. You can do this from script or in a different way.
    2. In the DataSink you can specify this property in the path to your file: 

    result/outfile${#<TestSuiteName>#<PropertyName>}.xlsx

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Emile,

     

    From my understanding the following will work:

    1. You need to create a custom property and assign a value to it. You can do this from script or in a different way.
    2. In the DataSink you can specify this property in the path to your file: 

    result/outfile${#<TestSuiteName>#<PropertyName>}.xlsx

    • emile's avatar
      emile
      Occasional Contributor

      Hello Tanya,

      thank you for yur help,

      it does the job :)

      Greetings