Hi Simon,
The solution Konrad suggested is the most reliable approach to export the whole test execution log despite the playback errors.
Summing up the recommendations already given here, you can act in the following way:
First of all, organize your tests into
Test Items. Set the correct order of your projects and routines in the corresponding Test Items editors. For additional information, please see the
'Test Items Page (Project Suite Editor)' and
'Test Items Page (Project Editor)' articles.
If you don't want to stop the test execution on the first error, you can disable the 'Stop on error' project suite option and set the 'Stop on error' and 'Stop on exception' options for all test items to 'None'. In this case, the test execution will be continued despite errors. For more information, please see the
'Project Properties - Playback Options' and
'Stopping Tests on Errors and Exceptions' articles.
Then, to make TC export the whole project suite execution log, perform the actions below:
1. Add the
OnStopTest event handler to your project.
2. Declare a global variable that contains the name of the last test item in the sequence, and if this name is equal to the name of the current test item (Project.TestItems.Current.Name), save the log contents in the OnStopTest event handler.
After performing the scenario above, the log will contain results of the execution of all test items.
I hope this helps.
BTW, we've recently released a new product version. You can learn more about TestComplete 9
here.