Results Generation - TestLink/Jenkins Compatible Formats (XML?)
Hello all,
I'd like to generate a simple test results file that can be parsed and processed into TestLink (via Jenkins).
Currently, we have a convoluted process that sits amongst some legacy code, whereby results are stored on-the-fly in some array and finally written to file (in an arbitrary format) where they are fed to a proprietary application that has some connection to TestLink (via the TestLink API).
I understand very little of what this legacy code is doing and due to major performance and stability issues with this setup, I need to rewrite the logging module that we use to do this in a cleaner way.
My aim is to write some very simple output (XML?) to a file, that Jenkins can automagically pick-up and process via the Jenkins/TestLink plugin. As far as I can discern, the output file needs to be in either: TestNG, JUnit or TAP format.
I know almost nothing about any of these things. Can anyone else provide me with further (or any) useful guidence with this?
Specifically, I'm having trouble understanding exactly where I can grab the test unit results from (post execution, or at the end of execution) and then write these in the appropriate format, according to the above.
Our test units are all scripted (in JScript) and conveniently start with a call to "PreTestCase()" and finish with a call to "PostTestCase()". I'm hoping to strip out any results handling code in these functions and replace with my new solution. Incidentally, before each run, we call "PreTestSuite()" and finish with "PostTestSuite()" if that helps too.
The only other alternative is to parse and convert the native TestComplete log, but this looks to be an even larger task.
Best regards,
Karl.