Ask a Question

Separate log files for every automated test run (e.g. by using placeholders)

SOLVED
mth
New Contributor

Separate log files for every automated test run (e.g. by using placeholders)

Hi all,

 

in TestExecute's documentation about the command line it's stated:

 

file_name should specify a non-existent file. If you specify the name of an existing file, TestExecute will fail to run the test.

 

So, if I automate my test runs to run every day and if I don't want to overwrite my log files every day or I don't want to change my command line call every day by script to change the file names for the /ExportLog and /ExportSummary parameters, I thought if I could use some placeholders to have new logs for every new day.

 

Or can you recommend another option to store separate logs for every day's test execution?

 

Kind regards,
M-Th.

1 ACCEPTED SOLUTION

Accepted Solutions
AlexKaras
Community Hero

Re: Separate log files for every automated test run (e.g. by using placeholders)

Hi,

 

can you recommend another option to store separate logs for every day's test execution?

Something like this might help:

https://superuser.com/questions/512163/using-date-and-times-in-a-batch-file-to-create-a-file-name

https://stackoverflow.com/questions/1064557/creating-a-file-name-as-a-timestamp-in-a-batch-job

https://www.google.com/search?q=batch+file+add+datetime+stamp+to+filename

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

3 REPLIES 3
Marsha_R
Community Hero

Re: Separate log files for every automated test run (e.g. by using placeholders)

Try using the Store All Logs and Number of recent logs to keep settings mentioned here.  i think that may override what's in the command line.

https://support.smartbear.com/testexecute/docs/reference/options/engines/log.html

Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
AlexKaras
Community Hero

Re: Separate log files for every automated test run (e.g. by using placeholders)

Hi,

 

can you recommend another option to store separate logs for every day's test execution?

Something like this might help:

https://superuser.com/questions/512163/using-date-and-times-in-a-batch-file-to-create-a-file-name

https://stackoverflow.com/questions/1064557/creating-a-file-name-as-a-timestamp-in-a-batch-job

https://www.google.com/search?q=batch+file+add+datetime+stamp+to+filename

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

sonya_m
Community Manager

Re: Separate log files for every automated test run (e.g. by using placeholders)

Thanks, Community!

 

Hi @mth ! Does the advice help? Please mark the best one as a solution.


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: