Forum Discussion

ivan_sy's avatar
ivan_sy
Contributor
12 years ago

Exclude some test items from results

My project test items include a subset of initialization KeywordTests, which primarily will be the one responsible to pre-populate data for the software being tested before the "smoke build" and "smoke release" test sets run.



at the very end of the the project test item is a script that performs log.savereultsas and then send's email notification.



Question: how do I exclude the initialization KeywordTests from the results? I still want to view its logs, but I wish for a subset to be excluded from the summary (the count of tests and the graph).



Thanks

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Ivan,


     


    At the moment, TestComplete generates a single test log per execution. We have a corresponding suggestion to implement the feature you describe in our DB, and your request has increased its rating. Thanks!


     


    In the meantime, you can export separate test log to MHT files via TestCompelete's GUI.


    If you want to do this during the test execution, you will have to create a script which will parse the log exported at the end of the entire project suite execution. You can export the full log to XML and retrieve information related to individual tests from it. A script which will do this can be run from TC as the last test item at the end of your big test. Once you retrieve results of a test item's execution, you can save them in a custom format. See the "Exported Results Structure" article for information on the XML structure of exported logs, and the "Working With XML Files From Scripts" article for information on working with XML files.