Forum Discussion
hlalumiere
13 years agoRegular Contributor
You can do it through scripts. Add the Log.SaveResultAs call to the OnStopTest event handler, something like this:
This will export your logs automagically everytime a test ends. You will have to construct your own ResultsPath variable, of course. Personally I would suggest a folder structure something like this:
.\<PRODUCT>\<VERSION>\<DATE>\<TESTNAME + CONFIG + ITERATION>
Where CONFIG would be any specific variant for a particular test, and ITERATION would just be a counter, for situations where the same test runs multiple times.
In my case, my log paths look like this:
\\devsvr\TCLog\DYNACOM\11.6.16.792\VMTESTSRV01\Results 2013-06-17\INI-001 ERP SQL 1
Sub dynacom_OnStopTest(Sender)
Log.Message "Logging path : " & Project.Variables.ResultsPath
Log.SaveResultsAs Project.Variables.ResultsPath, 1
End Sub
This will export your logs automagically everytime a test ends. You will have to construct your own ResultsPath variable, of course. Personally I would suggest a folder structure something like this:
.\<PRODUCT>\<VERSION>\<DATE>\<TESTNAME + CONFIG + ITERATION>
Where CONFIG would be any specific variant for a particular test, and ITERATION would just be a counter, for situations where the same test runs multiple times.
In my case, my log paths look like this:
\\devsvr\TCLog\DYNACOM\11.6.16.792\VMTESTSRV01\Results 2013-06-17\INI-001 ERP SQL 1