Forum Discussion

GlorianChris's avatar
GlorianChris
Occasional Contributor
9 years ago

How do I change the log file names loadtestrunner creates for the testcase please?

I have a Load Test called 'getAccountDetailsRequest LoadTest' and everytime I run this via LoadTestRunner, it overwrites the previous files:

getAccountDetailsRequest_LoadTest-log.txt

getAccountDetailsRequest_LoadTest-statistics.txt

 

I was wondering (hoping!) if there was a way to introduce a timestamp into the log file name at all?

 

I don't really want to create a new folder for every execution.

 

Thanks,

Chris

  • nmrao's avatar
    nmrao
    Champion Level 3
    Have you tried looking at log4j cofiguration file ?
    • GlorianChris's avatar
      GlorianChris
      Occasional Contributor

      There's only bin/soapui-log4j.xml which has nothing in it about creating new files for test outputs....

      • nmrao's avatar
        nmrao
        Champion Level 3
        I was referring to this file only. Can you please tell where this file getting saved?
        You can have a goovy script to find the existing log file and rename with timestamp as you wanted before your next test starts.