We have a very long running tests and batches.Sometimes during Batch execution qtp hangs and then when we try to open result it is unable to open results.
I can see results.xml created but it seems that it was not closed properly so few tags are missing at end thus QTP is unable to open it. Can anyone tell me how can we recover results in such case?
Is there any technique to take backup of result.xml at regular interval or to export qtp results at regular interval rather than only at end of the test?
I am not sure, since the files are not completley created unless the run is stopped.
One way would be see if you can break your tests in multiple batches and create a custom batch to run one test after another, make sure one test run ends and then proceed with different result file paths.
Another option is to shift to a differnt reporting framework which is QTP independant, there by you can control the results