Separate log files for every automated test run (e.g. by using placeholders)
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Labels:
-
Command Line
-
Test Results
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
/Alex [Community Champion]
____
[Community Champions] 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 Champions]
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 Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, Community!
Hi @mth ! Does the advice help? Please mark the best one as a solution.
Sonya Mihaljova
Community and Education Specialist
