使用Sikuli运行Robot Framework时出现以下错误

时间:2013-11-01 03:18:58

标签: robotframework sikuli

command: C:\Users\han\Desktop\Sikuli-and-Robot-Framework-Integration-master\calctest\robottest.bat robot_suite\verify_operations.txt --argumentfile c:\users\han\appdata\local\temp\RIDE7wtysi.d\argfile.txt --listener C:\Python27\lib\site-packages\robotide\contrib\testrunner\TestRunnerAgent.py:62977:False C:\Users\han\Desktop\Sikuli-and-Robot-Framework-Integration-master\calctest\robot_suite\verify_operations.txt
unexpected error: Exception in thread "main" Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\han\Desktop\Sikuli-and-Robot-Framework-Integration-master\calctest\robotframework-2.5.5.jar\Lib\robot\__init__$py.class", line 16, in <module>
File "C:\Users\han\Desktop\Sikuli-and-Robot-Framework-Integration-master\calctest\sikuli-script.jar\Lib\os.py", line 118, in <module>
ImportError: no os specific module found

Sikuli X - 1.0rc3(R905) 机器人框架2.7.7 Python 2.7.5 jython 2.7 b1 Windows 7

robotest.bat

@echo off

set sikuli_jar=C:\Users\han\Desktop\Sikuli-and-Robot-Framework-Integration-master\calctest\sikuli-script.jar

java -cp "robotframework-2.5.5.jar;%sikuli_jar%" ^
 -Dpython.path="%sikuli_jar%/Lib" ^
 org.robotframework.RobotFramework ^
 --pythonpath=CalcLib ^
 --outputdir=results ^
 --loglevel=TRACE ^
 %*

测试套件,verify_operations.txt

*** Settings ***
Library           calc.Calculator    WITH NAME    Calculator

*** Test Cases ***
Verify that 2 + 2 = 4
Start App
Verify App
Perform Action    2    +    2
Verify Result    4

Verify that 2 + 2 = 5
Start App
Verify App
Perform Action    2    +    2
Verify Result    5

Click on non-existent button "Exp"
Start App
Verify App
Perform Action    2    exp    2
Verify Result    2

我用Google搜索错误并在网上找到了一些答案。他们都没有能够解决我的问题。

先谢谢。

0 个答案:

没有答案