Forum Discussion

jsc's avatar
jsc
Regular Contributor
14 years ago

Log result after each project?

Hi all,



I was wondering, if it is possible to export testresults at the end of each project?



My testsuite currently contains 15 projects and takes around 150 - 180 minutes for the whole run.

Is there a way to export the result of each project after the project is finished? (via script or somehow else)



This would be great to get faster results.



Kind regards,



Joachim




3 Replies


  • Hello Joachim,

    Yes, the Log scripting object has the SaveResultsAs method, which you can call in the end of the project. Moreover, you can call this method within the OnStopTest event handler. See the examples in the Exporting Results From Tests section of the Exporting Test Results topic.

    Regards.
  • jsc's avatar
    jsc
    Regular Contributor
    Hi Artem,



    thanks for your answer!



    Unfortunately my question was not very precise. I want to export the log into a regular log file like these:

    RootLogData.dat

    Description.tcLog

    {FD3325C2-DDBE-4E8C-A058-AC7124E4009C}

    ...

    So that I could analyse the first results in TestComplete while the rest of the test still is executed.

    I searched the help at http://support.smartbear.com/viewarticle/31577/ but did not find anything similar.



    Best regards,

    Joachim
  • Hi.



    Did you consider using the Log Location property under the Project Property panel ?

    I am not sure it saves the execution log while the test is still running but you might be able to make a TestExecute run on some machine and publish logs on a other server. Then, open those tclogs using your TestComplete and it might work.



    Regards,



    Guillaume.