This might have been answered elsewhere but can't see it!

I have a script that gets me results for a given test in the test lab using the OTA API. When a test fails in that test set I want to be able to retrieve the test name and the details of the failure. I am using business components. Does anyone what api method can get me the info or where in DB the info is stored?

Much appreciated.