Forum Discussion

vikram_u_k's avatar
8 years ago

Lettuce BDD

Hi Support,


I am following this article for TestComplete BDD: Python BDD

  Is any Specific Sequence needed to add the testComplete Module 


 File "C:/Users/X/Desktop/Let/Lettuce-Sample-Project/", line 3, in <module>
from win32com.client import Dispatch
ImportError: No module named win32com.client


C:\Python27\Scripts>lettuce.exe C:\Users\X\Desktop\Let\Lettuce-Sample-Project\typingText.feature


File "C:\Users\X\Desktop\Let\Lettuce-Sample-Project\step_definitions\", line 2, in <module>
from testcomplete import tc_step, RunRoutine
ImportError: No module named testcomplete




8 Replies

  • AlexanderLinkov's avatar
    SmartBear Alumni (Retired)


    Make sure you configure the environment as it is described at the beginning of the article.

    The library requires Python 2.7 and the corresponding version of Python for Windows Extension.

    There are several versions of the extension. Most likely, you need (if you have 64-bit Python) or pywin32-219.win32-py2.7.exe (if you have 32-bit Python).

    • vikram_u_k's avatar

      Hi Support,

         Still working on the Issue.. 

      Currently using the Cucumber/Java Implementation rather than Lettuce/Python.

      • mgroen2's avatar
        Super Contributor

        vikram_u_k there is a feature request to work around integration issues in BDD combined with TestComplete.

        You can find it here. And vote for it if you like the idea please.



    • shub's avatar


            i tried installing the 64 bit from the url. Also downgraded python to 32 bit installation and installed a 32 bit windows extension. Still having the same issue "ImportError: No module named testcomplete" for both the combinations.

      • AlexanderLinkov's avatar
        SmartBear Alumni (Retired)

        Hello shub,

        Make sure that you placed the files of the libraries to the "testcomplete" directory. So, you should have the "<Python directory>/Lib/site-packages/testcomplete/" directory. And, in the "testcomplete" folder, you should have the, __init__.pyc, and tc.pyc files.