Forum Discussion

kkrush's avatar
kkrush
Occasional Contributor
4 years ago
Solved

Testcomplete - after logs are generated, how can i run another script ?

Hello, 

 

I am trying to find out how to run a test item (Summary Test Case) once all the other tests are executed and the logs for them are shown in the project panel.

for example :

Test case- 1

--- test item 1

---test item 2

--- logout & close (end script)

 

  • Your script need TC objects or it can be run alone ?

    If it run alone or can be adapted to, you have just to put in your cmd/bat calling TestExecute to exec TestCase1 and TestCase2 and then next command will be call of your summary script.

    Advantage: not linked to a ProjectSuite/TestCase and can be deactivated easily the day the summary report will be exported by TC ...

5 Replies

  • BenoitB's avatar
    BenoitB
    Community Hero

    Why do you need to do test case 3 (summary) after log is generated ?

     

    You can export log of test case individually if you want with Log.SaveResultsAs(l) so you can do:

    Project suite

      Test case 1

          Log export

      Test case 2

        Log export

      Test case 3 (summary)

        Log ended and displayed

     

    But no way of doing something AFTER having the log displayed on TC.

     

     

    • kkrush's avatar
      kkrush
      Occasional Contributor

      We have a script that counts the pass & fail test cases in the project log and sends it to api channel

      • BenoitB's avatar
        BenoitB
        Community Hero

        Your script need TC objects or it can be run alone ?

        If it run alone or can be adapted to, you have just to put in your cmd/bat calling TestExecute to exec TestCase1 and TestCase2 and then next command will be call of your summary script.

        Advantage: not linked to a ProjectSuite/TestCase and can be deactivated easily the day the summary report will be exported by TC ...