Skip to content

Instantly share code, notes, and snippets.

@imikemo
imikemo / jybottest.bat
Created February 3, 2011 12:37
Batch file for running Sikuli test cases using jybot
@echo off
set sikuli_jar=C:\Program Files\Sikuli X\sikuli-script.jar
set CLASSPATH=%sikuli_jar%
set JYTHONPATH=%sikuli_jar%/Lib
jybot --pythonpath=calc.sikuli ^
--outputdir=results ^
--loglevel=TRACE ^
@imikemo
imikemo / robottest.bat
Created February 3, 2011 10:36
Batch file for running Sikuli test cases from Robot Framework
@echo off
set sikuli_jar=C:\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 ^
@imikemo
imikemo / verify_operations.txt
Created February 2, 2011 22:45
Test Case for Robot Framework
***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
@imikemo
imikemo / runtest.bat
Created February 2, 2011 19:41
Batch file for running a Sikuli script
@echo off
java -Dpython.path=Lib -jar sikuli-script.jar calc.sikuli
@imikemo
imikemo / calc.py
Created February 1, 2011 20:01
Sample Sikuli script
from __future__ import with_statement
from sikuli.Sikuli import *
class Calculator(object):
def __init__(self):
self.appCoordinates = (0, 0, 1024, 768)
def startApp(self):
calcApp = App("Calculator")