cancel
Showing results for 
Search instead for 
Did you mean: 

how to import Python modules inside testComplete

SOLVED
Highlighted
Contributor

how to import Python modules inside testComplete

hi,

 

I'm trying to import some external python modules like pyodbc inside test complete. But i'm having a hard time trying to get it done. Tried the below code based on this post - 

https://community.smartbear.com/t5/TestComplete-Mobile-Application/How-do-i-add-Python-Libraries-and...

 

When i try to do "sys." i do not see anything listed as path just seeing parent for "p". Is this code still applicable for version -  12.60.55

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Valued Contributor

Re: how to import Python modules inside testComplete

May be bit late to reply ...but anybody else came across this it would be usefull...

 

Sys is a test complete keyword so do not mix it up with sys "with lower case"

 

testcomplete IDE is not sofisticate as Eclips or visualStudio. 

So typing "." dot will not always autocomplete (intellesence), specially imported packages of python

View solution in original post

1 REPLY 1
Highlighted
Valued Contributor

Re: how to import Python modules inside testComplete

May be bit late to reply ...but anybody else came across this it would be usefull...

 

Sys is a test complete keyword so do not mix it up with sys "with lower case"

 

testcomplete IDE is not sofisticate as Eclips or visualStudio. 

So typing "." dot will not always autocomplete (intellesence), specially imported packages of python

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Changing options from outside of TestComplete

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!
Top Kudoed Authors