I have a single ProjectSuite that contains a single Project.
I re-use the scripts 3 times, it's the same scripts but the TestedApp changes slightly.
For that I use 3 folders in Projects\TestItems.
At the end of each TestedApp I export the Logs with the following script :
Log.SaveResultsAs(Rapport, 2, true, 0);
My problem is that when I use Log.SaveResultsAs(Rapport, 2, true, 0); I have for the first folder the correct Log, but in the second one I have the first and the second, and for the third folder I have all the logs.
If it's a single test run, then what you described is correct behavior. Log.SaveResultsAs saves what is in the log at that time. So, it will save EVERYTHING up to that point.
Try setting that fourth parameters to 2, to export only the current test item since that's how you have things laid out.... since each TestedApp is configured within a different Test Item, you should get 3 different logs.
Robert Martin [Hall of Fame] Please consider giving a Kudo if I write good stuff ----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group. I love good food, good books, good friends, and good fun.