Inserting a new log entry after each test run

Hello,

I am trying to log the actual time between actions on the SUT and write it into a temporary csv file. So far so good.

put now into startTime
//do something
put now minus startTime into entry
//log something
put entry & return after file "/temp/somethingLogFile.csv"

What I would like to achieve is not to override the old value with each test run but to add the new log entry to the old file to compare them.

Any ideas?

Thanks in advance

The code you have should append the new value at the end of the file. I’ve tried it on Mac and Windows and it’s working as designed. Are you perhaps doing something elsewhere in the script that replaces the file?

That’s odd, last time I checked values were overriden and today it worked just fine!

Thanks!