Contributions
Re: Reporting
I have a doubt about converting Summary to jUnit. When we have warning test - it is converted to passed test. Allure shows all test passed due to it. If Test Complete will convert warning to junit error - Allure will show test as broken (yellow). So, should be next: Log.Error -> junit fialures -> Allure error Log.Warning -> junit error - > Allure broken1.2KViews0likes0CommentsRe: Python: fail to import lib during the second attempt to run script
What i found about win32 api for Python. It turned out that win32com.client couldn't be imported more than once within the same process. Sorry, this is a limitation of the PyGILState API used by pywin32; pywin32 will never be able to play with the multiple interpreter API, nor work correctly with multiple interpreter initializations and cleanups. But such problem occurs with another libraries. For example, with lxml. Second import cause Test Complete crash :)2.9KViews0likes3CommentsRe: Python: fail to import lib during the second attempt to run script
x64 Win7 1)Install TC12.3 2) Install Python 3.6.x (x64) to folder where we have TC Python: C:\Program Files (x86)\SmartBear\TestComplete 12\Bin\Extensions\Python\Python36 to get it registered, to get pip and full Python I download and install Python (x64), but can see in cmd that i have x86 Python !? So, i can install only x86 libs. 3) donwload x86 lib and install via pip: pywin32-221-cp36-cp36m-win32.whl Aftre this i use: import sys sys.path.insert(0, r'C:\Program Files (x86)\SmartBear\TestComplete 12\Bin\Extensions\Python\Python36\Lib\site-packages') sys.path.insert(0, r'C:\Program Files (x86)\SmartBear\TestComplete 12\Bin\Extensions\Python\Python36\Lib\site-packages\win32') sys.path.insert(0, r'C:\Program Files (x86)\SmartBear\TestComplete 12\Bin\Extensions\Python\Python36\Lib\site-packages\win32\lib') import win32com.client3KViews0likes5CommentsRe: Python: fail to import lib during the second attempt to run script
x64 Win7 1)Install TC12.3 2) Install Python 3.6.x (x64) to folder where we have TC Python: C:\Program Files (x86)\SmartBear\TestComplete 12\Bin\Extensions\Python\Python36 to get it registered, to get pip and full Python I download and install Python (x64), but can see in cmd that i have x86 Python (!??!!?) So, i can install only x86 libs. 3) donwload x86 lib and install via pip:pywin32-221-cp36-cp36m-win32.whl Aftre this i use: import sys sys.path.insert(0, r'C:\Program Files (x86)\SmartBear\TestComplete 12\Bin\Extensions\Python\Python36\Lib\site-packages') sys.path.insert(0, r'C:\Program Files (x86)\SmartBear\TestComplete 12\Bin\Extensions\Python\Python36\Lib\site-packages\win32') sys.path.insert(0, r'C:\Program Files (x86)\SmartBear\TestComplete 12\Bin\Extensions\Python\Python36\Lib\site-packages\win32\lib') import win32com.client3KViews0likes6CommentsPython: fail to import lib during the second attempt to run script
Test Complete 12.3 Python 3.6 Trying to import win32com.client First run is ok. Second run: import failed with 'NoneType' object is not callable. After restart Test Complete the same result: first run is ok, second is failed. Such problem with most external libraries. How it can be fixed?3KViews0likes9Comments