← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #252490]: [1.0.1] Sikuli integration Robot framework --- use sikuli-java.jar

 

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

RaiMan proposed the following answer:
this test.txt works for me
*** Settings ***
Library           stuff/calc.sikuli/calc.py

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

you have to obey the rules for the tabular character of the stuff  in
txt format.


with this calc.py
import org.sikuli.basics.SikuliXforJython 
from sikuli import *

popup("calc.sikuli")

def startApp():
  popup("startApp") 

def verifyApp():
  popup("verifyApp") 

def performAction(*args):
  popup("performAction") 

def verifyResult(*args):
  popup("verifyResult") 

I have no time, to check, why the def's are not found, when wrapped in a
class.

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