Forum Discussion

vikram_u_k's avatar
vikram_u_k
Contributor
10 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/tc.py", 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\defs.py", line 2, in <module>
from testcomplete import tc_step, RunRoutine
ImportError: No module named testcomplete

 

 

 

8 Replies

    • vikram_u_k's avatar
      vikram_u_k
      Contributor

      Hi Support,

         Still working on the Issue.. 

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

      • mgroen2's avatar
        mgroen2
        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
      shub
      Member

      Hi,

            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.

      • 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__.py, __init__.pyc, tc.py and tc.pyc files.