Forum Discussion

jhgreen's avatar
jhgreen
Contributor
12 years ago

Issue with Save Results As

I am using TestComplete 9.31. I have encountered an issue which I am unable to resolve.

I am using the command Log.SaveResultsAs(FileName, lsMHT, true, 2);



When I run my test group from the TestOrganizer it seems that every result file saved

shows the log file from the first test being executed.



Also, when I execute my tests from testorganizer it is calling a Network Suite Job if that matters.



Has this issue been reported?

2 Replies

  • Here is the response I got back from support.





    "

    The issue is that when you run the project on the master machine, the tasks execute a script routine, but not a test item, and, thus, the Project.TestItems.Current object doesn't get defined. This is the expected behavior. To work around it, you need to try modifying the tasks so that they run test items. Currently, it is not possible to specify a test item for a task. However, it is possible to specify test items for the slave project and make a task run the whole test project along with all the test items. To do this, you need to clear the Test field of the task. I hope this helps.

    "





    At this point, we would not be able to use that feature with the save as results. We would have to just save all the test results as opposed to only saving the current test results.