Ask a Question

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

SOLVED
kkrush
Occasional Contributor

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)

 

5 REPLIES 5
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.

 

 

Un sourire et ça repart

kkrush
Occasional Contributor

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

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 ...

Un sourire et ça repart

kkrush
Occasional Contributor

it can be run alone.

sonya_m
SmartBear Alumni (Retired)

@kkrush Thank you for clarifying!

Have you tried using the approach Benoit suggests for your use case? 


Sonya Mihaljova
Community and Education Specialist

cancel
Showing results for 
Search instead for 
Did you mean: