Forum Discussion

TestQA1's avatar
TestQA1
Frequent Contributor
3 years ago

Calling units from one project to another without Importing them

Hi,

There's an option to import units from one project to another in Test Complete.

I am looking for a way that allow me to create a common platform (either project that stores all units or a shared folder) to avoid duplicating units in all projects.

So , I would be able to call the necessary units in my Assertions/Test units in different projects.

I saw one answer in Community which suggest to create a shared folder outside Suite and somehow they managed to use the common units in their projects.

I am not a very advanced developer and if someone can guide me on this please?

I am trying to avoid duplication and looking for a clean framework.

 

Thanks

  • Yes you can, and the project structure will look something like this,

     

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Yes you can, and the project structure will look something like this,

     

    • TestQA1's avatar
      TestQA1
      Frequent Contributor

      Thanks very much rraghvani.

      Is this something recommended or would you suggest any other more efficient framework?

       

      Thank you

      • TestQA1's avatar
        TestQA1
        Frequent Contributor

        Hi rraghvani. I tried to run this, but got error that Common unit is not in the project. Do we need to add Commonunit in every project besides the 'Commonunit' project? Then how it is reducing duplication. thank you