I'm going on vacation next week and my manager has asked me to run a daily Time & Motion scenario while Im away.
Via the task scheduler, I'm able to schedule runs at whatever time I need and create custom HTML reports with the results. The problem I face now is that the report created has a fixed name and, thus, will overwrite the previous report. That effectively means I will only get the very last report.
Motevich's blog mentions a framework that he created to automatically export the reports by email. But since the thread is older than a year, he has disabled the "comment" option on it.
So, basically, I either want to save my custom reports with different names OR send my reports by email in order to "archive" them until i return. Any of you guys can point me in the right direction?
Thank you for your time.
Re: Analysis reports
I've found a workaround for this. It's actually pretty simple but I felt like sharing it if anyone else faces the same situation.
First off, I created a batch file.
In that batch file, I created folder and file names with the environment variables date and time. ***Keep in mind every system can display date and time in different formats***
I then called a run on the controller application with a specific scenario. Since the scenario had to be run twice a day, I set the result path to ...\%monthVar%-%dayVar%\ and the the resulting file to %hour%h%minute%.
I then opened the scheduled task tool (provided with windows) and created a new task; That task points to the .bat I just created. I finally created two schedules for my test to run each weekday.
It's not much... but maybe somebody else will benefit from this.
<font class="small">Code:</font><hr /><pre>
ECHO Results will be saved under: ...\%Year%-%Month%-%DayNbr%\%Hour%h%Minute%
<font color="red">PATH_TO_LR</font>\wlrun.exe -Run -TestPath "<font color="red">PATH_TO_SCENARIO</font>\PROD_Time&Motion_RO.lrs"
-ResultName "<font color="red">PATH_TO_RESULT_STORAGE_FOLDER</font>\%Year%-%Month%-%DayNbr%\%Hour%h%Minute%"</pre><hr />