navigation
 Friday, March 07, 2008

A question that comes up fequently about TestComplete is; "How do I call a script routine in another project from the project I am currently working in?"

This is not possible to do directly like Project1.Common.Login but it possible to share units between Projects.  To share a unit you need to do the following:

  • Right-Click the "Script" project item in the project you wish to add the unit.

  • Browse to the script directory containing the script unit you wish to add.

 

 

  • Add a USEUNIT to any unit that you want to call this unit from.

 

Note: This is not a copy of the file, but a shared file.  Changes made in one project will be reflect in all the other linked projects.

Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, i, strike, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview