Forum Discussion

suvidhshetty's avatar
suvidhshetty
Contributor
10 years ago

Need a way to filter the TC Log results using TC script.

Can we select a particular testcase to be saved in TC Result Logs programatically ?

For Example: We run through 100 Test Cases and we need the result Log for any specific test case to be saved in different file. so if an TClog MHT file is open for particular test case, then it should show only the result of requested test case.

3 Replies

  • djadhav's avatar
    djadhav
    Regular Contributor

    Do you need just one of your 100 test cases to be saved as a separate file or you need each test case to have a separate file?

    • suvidhshetty's avatar
      suvidhshetty
      Contributor

      Yes, I need each one of the test cases executed result saved saparately.

      • AlexKaras's avatar
        AlexKaras
        Icon for Champion Level 2 rankChampion Level 2

        Hi,

         

        TestComplete stores a unified log for all tests executed within one batch run and it is not possible to have one separate test log for every test that was executed within test run.

        As a possible workaround option, you can consider scripted parsing of the unified test log to get separate results for each test: https://support.smartbear.com/viewarticle/68245/