Forum Discussion

Salamat's avatar
Salamat
Occasional Contributor
8 days ago

How to create a folders inside projectSuite/project which folders will exist on the hard drive ?

Hi, everyone! I know that it is possible to create folders in project suite or in project, but those folders does not exists on the hard drive. Is it possible create folders which they are will exists on the hard drive ?
We are using TestComplete for writing tests for desktop app also we are using Pycharm for debugging because often it is difficult to navigate to methods or classes by clicking on the names. 
And when using Pycharm the script files are unorganized because created folders on project suite/project does not exists on the hard drive. 

3 Replies

  • scot1967's avatar
    scot1967
    Icon for Champion Level 2 rankChampion Level 2

    Hello Salamat,

    Yes, this can be done.  It's a bit awkward however. Just create the folders in TestComplete as you need and import your scripts to those folders (from whereever they exists on your drive or network).  They will become links (in the project xml).  TestComplete keeps the project structure in an XML file.

    https://support.smartbear.com/testcomplete/docs/testing-with/creating/importing.html

    ... If you find my posts helpful drop me a like! 👍 Be sure to mark or post the solution to help others out and/or to credit the one who helped you. 😎

  • Hassan_Ballan's avatar
    Hassan_Ballan
    Icon for Champion Level 3 rankChampion Level 3

    TestComplete itself doesn’t support automatic folder creation on the disk when organizing in the UI. You'll need to manage the physical structure outside of TestComplete, but once set up, it works well with external IDEs like PyCharm. To keep things organized long-term, use naming conventions and folder structures consistently in both TestComplete and your file system.

    Step-by-step workaround:

    1. Manually Create Folders on Disk
    2. Move Script Files into the Folders
    3. Organize in TestComplete virtual folders to reflect Disk structure
    4. Update the Project Script in TestComplete by "Add -> Existing Item...".

    💬 Found the answer helpful? Give it a Kudos by clicking Like!
    ✅ Got your issue resolved? Click Mark as Solution so others can find it quickly.

  • rraghvani's avatar
    rraghvani
    Icon for Champion Level 3 rankChampion Level 3

    Just use Windows Explorer to create your folders, and reference them accordingly using TestComplete. 

    As noted in Organizing Items Into Folders | TestComplete Documentation

    Creating a folder in the Project Explorer panel does not lead to creating a folder on a hard drive. The Project Explorer’s folders are used for logical organization of the projects’s contents, not for physical organization.