Steps to Import Python Library in TestComplete
Hi All, Youtube - Import Python Library in TestComplete I've prepared a step to import python library using Openpyxl library inside test complete. Ref Step 1: Install python 3.6 – TestComplete 14.4 Support 3.6 Ref:https://www.python.org/ftp/python/3.6.0/ Check for Python version in Cmd : python –version Step 2: Download the python library matching the Python version.Ref:https://www.lfd.uci.edu/~gohlke/pythonlibs/ Install Numpy/Openpyxl library in the system Install in cmd line as “pip install Openpyxl” In Command Prompt type “Import Openpyxl” If you don’t get any error then the python library is installed correctly. Step 3: Navigate to default python installed location Eg: C:\Users\UserName\AppData\Local\Programs\Python\Python36 2. Copy all the files to TestComplete path Eg: C:\Program Files (x86)\SmartBear\TestComplete 14\Bin\Extensions\Python\Python36 Step 4: Set your environment variable of python path to Testcomplete path Eg: C:\Program Files (x86)\SmartBear\TestComplete 14\Bin\Extensions\Python\ Step 5: from os import sys import sys sys.path.append(“C:\\Program Files (x86)\\SmartBear\\TestComplete 14\\Bin\Extensions\\Python\\”) openpyxl_location = “C:\\Program Files (x86)\\SmartBear\\TestComplete 14\\Bin\Extensions\\Python\\Python36\\Lib\\” sys.path.insert(0, openpyxl_location) import openpyxl from openpyxl import Workbook Ref:https://vallatestcomplete.wordpress.com/2020/06/01/testcomplete-python-library-import/ Regards Valla4.4KViews4likes2CommentsTestComplete does not support applications, which are built using GTK and GNOME (Python)
Our Company uses Python with Glade constructor to build the interfaces. The interface building is made normally, assigning names to the fields and windows add-ons, as defined by our modelling templates. The Glade constructor is made by (GTK and GNOME). Using the Object Spy, it can not obtain the detailed objects properties. The return is always made by the gdkWindowToplevel class, resulting in a common full name, with changes only in the caption and Childs numbering. Example: Sys.Process('main', 2).Window('gdkWindowToplevel', 'Empresas', 1).Window('gdkWindowChild', 'main.exe', 8) Sys.Process('main', 2).Window('gdkWindowToplevel', 'Empresas', 1).Window('gdkWindowChild', 'main.exe', 12)1.1KViews1like0CommentsProjectSuite.TestItems.Current Fails
Hi, When trying to use 'ProjectSuite.TestItems.Current' I get a runtime exceptionmessage "The parameter is incorrect". Anyone knows how to work around or why this is happening? current = ProjectSuite.TestItems.Current Log.Message('Current Item', ("Name: {}\n" + "Description: {}\n" + "Location: {}").format(current.ProjectName, current.Description, current.ProjectLocation)) - Johan1.2KViews1like4Comments