Forum Discussion

ThWatcher's avatar
ThWatcher
Occasional Contributor
13 years ago

Can a script in a TestComplete Project run a different TestComplete project?

Hello, and thanks to any who can help me.



Is it possible to run a TestComplete Project from a script in another TestComplete project?





Or, possibly in an alternate scenario;



I have a series of projects that export their logs to an archive directory, but;

And:

If I have a set of routines in the 'Test Items' of a project, when the project is run, I get a nicely formatted/nested log with the summary and charts on the first page.

But if I run the same routines from a script that calls them each in order, I don't get the same nesting nor do I get the summary and charts on a 'first page'.



How can I get or produce that summary and charts to place on my own page, possibly with my own variation of formatting?



Again, thanks for any help.
  • Hi,



    There's no way to call projects from each other. If you need to get a single log for all your projects, set up test items in them and run the entire project suite where they're located.



     If this is not an option, you can create a summary yourself with a custom script. To do this, you need to export logs to XML and parse them to get information on the test flow.
  • ThWatcher's avatar
    ThWatcher
    Occasional Contributor
    Thank you for the response and the information.



    I will go through the articles you indicated and see about making my projects work. 



    Rickie