Robot FrameworkNo:具有名称的关键字'AutoItLibrary.运行'找到了

2024-05-14 14:38:08 发布

您现在位置:Python中文网/ 问答频道 /正文

我有测试脚本:

*** Settings ***
Library     AutoItLibrary
*** Variables ***
*** Test Cases ***
Launch HTOOL UI

    AutoItLibrary.Run  MyApp.exe  C:\\MyFolder\\AppFolder

Robot Framework返回错误No keyword with name 'AutoItLibrary.Run' found.

当我安装安装程序.pu对于AutoIt,我得到了这些日志:

C:\My Files\AutoItLibrary-1.1>python setup.py install Don't think we need to unregister the old one... %SYSTEMROOT%\system32\regsvr32.exe /S C:\Python35\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll python C:\Python35\Lib\site-packages\win32com\client\makepy.py

C:\Python35\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll Generating to C:\Python35\lib\site-packages\win32com\gen_py\F8937E53-D444-4E71-9275-35B64210CC3Bx0x1x0.py Building definitions from type library... Generating... Importing module running install running build running build_py running install_lib byte-compiling C:\Python35\Lib\site-packages\AutoItLibrary\Logger.py to Logger.c python-35.pyc File "C:\Python35\Lib\site-packages\AutoItLibrary\Logger.py", line 28 print '%s %s' % (level, message) ^ SyntaxError: invalid syntax

byte-compiling C:\Python35\Lib\site-packages\AutoItLibrary__init__.py to init.cpython-35.pyc File "C:\Python35\Lib\site-packages\AutoItLibrary__init__.py", line 269 raise Exception, "Failed to run %s" % cmd ^ SyntaxError: invalid syntax

running install_data running install_egg_info Removing C:\Python35\Lib\site-packages\AutoItLibrary-1.1-py3.5.egg-info Writing C:\Python35\Lib\site-packages\AutoItLibrary-1.1-py3.5.egg-info

我想征求你对我为什么会出错的意见。在


Tags: installtorunpyinfoinitegglib

热门问题