← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #173899]: Robot Framework Problem

 

Question #173899 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/173899

Peter Kim gave more information on the question:
RaiMan,

The last time I wrote or debugged code was about 20 years ago but Sikuli makes me happy to write simple Jython scripts.
I did not know how to find out how to get sikuli-script.jar into the class path of RFW.

I installed Sikuli X-1.0rc2.

Using the original bat file from the Mike's cognition blog, 
my robottest.bat looked like the following:

@echo off

set sikuli_jar=D:\Program Files\Sikuli X\sikuli-script.jar

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

This time it almost worked; there was no error message.
However the test case 2 + 2 = 5 showed that it passed.

D:\Sikuli\RobotFramework>robottest.bat robot_suite\verify_operations.txt
[info] Sikuli vision engine loaded.
[info] Windows utilities loaded.
[info] VDictProxy loaded.
==============================================================================
Verify Operations
==============================================================================
Verify that 2 + 2 = 4                                                 | PASS |
------------------------------------------------------------------------------
Verify that 2 + 2 = 5                                                 | PASS |
------------------------------------------------------------------------------
Click on non-existent button "Exp"                                    | FAIL |
FindFailed: can not find btnExp.png
------------------------------------------------------------------------------
Verify Operations                                                     | FAIL |
3 critical tests, 2 passed, 1 failed
3 tests total, 2 passed, 1 failed
==============================================================================
Output:  d:\sikuli\robotframework\results\output.xml
Report:  d:\sikuli\robotframework\results\report.html
Log:     d:\sikuli\robotframework\results\log.html

I tried robotframework-2.5.7.jar and 2.6.3.jar but it still could not
show that the case 2 + 2 = 5 was FAIL.

So with Sikuli X-1.0rc2, robotframework almost worked on a Windows XP
SP3 PC.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.