03-30-2006 01:42 AM
04-05-2006 08:25 AM
Simthon,
You have to get a report reference from the current execution and call save on it.
Report.Save ( pathString, appendIfAlreadyExists, linefeedConversion)
Saves the report to the file you specify.
Calling this method updates the Location property.
pathString As String
[In] Specifies the file in which to save the report.
appendIfAlreadyExists As Boolean
[In] Indicates whether to append or overwrite the file if it already exists. Pass True to append to the file. Pass False to overwrite it.
linefeedConversion As ReportConversion
[In] Specifies a linefeed conversion for the report text.
Hope it helps.
Best Regards.
Antonio Lie.
04-05-2006 08:52 AM
Hello Antonio,
i know that i can change the report file name like this. But how can i create a new directory out of TestStand ?
For each test run i want to have a directory named with the actual date/time stamp and put all the reports i generate in there (i also have some other logs besides the TestStand standard report). Therfore i have to create a directory on runtime and i have found no function for this til now. I want to avoid to work with external batch files or so.
SimThom
04-05-2006 09:35 AM - edited 04-05-2006 09:35 AM
SimThom,
You can use Engine.CreateTempFile to create a directory.
This method will create a temporary file that will be deleted when TestStand Shuts Down (only the file will be deleted).
If the directory does not exist it will create it for you.
If you do not like this solution you will have to use an external utility to create the directory.
Hope it helps.
Best Regards.
Antonio Lie.
Message Edited by Antonio Lie (NI) on 04-05-2006 09:35 AM