sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #42522
Re: [Question #632251]: How to create new Keywords on Roboframework integrated with Sikuli
Question #632251 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/632251
Status: Answered => Open
Test App is still having a problem:
Hi RaiMan,
Thank you for the reply .My script works much better now with less
errors . But my major issue is the html report says " Test case contains
no keywords. " and the following errors below
"ERROR
Error in file 'C:\Users\E4D User\Documents\LoginLibrary.sikuli.robot\LoginLibrary.robot': Non-existing setting 'Library C:/Users/E4D User/Documents/LoginLibrary.sikuli.robot/LoginLibrary.py'.
20170518 11:40:30.674
WARN
Multiple test cases with name 'start App' executed in test suite 'LoginLibrary'.
20170518 11:40:30.674
WARN
Multiple test cases with name 'verify App' executed in test suite 'LoginLibrary'.
So this is my setup :
----JRE 8
---- Installed SikuliX 1.1.1
----Jython 2.7.0
---Python 2.7.13
Since you said robot is bundled with sikuli i did not download and install robo jar.I have executed the below script .
But my robo report always fails .Please let me know hot to execute this script with a sucessfull report
runScript("""
robot
***Settings***
Library ./inline/LoginLibrary
***Test Cases***
Verify that 2 + 2 = 4
start App
verify App
Verify that 2 + 2 = 5
start App
verify App
""")
class LoginLibrary(object):
def __init__(self):
self.appCoordinates = (0, 0, 1024, 768)
def start_App(self):
calcApp = App("Calculator")
if not calcApp.window():
App.open("calc.exe");
wait(2)
calcApp.focus();
wait(1)
def verify_App(self):
if exists ("CalcApp.png"):
print("Calc window appeared")
else:
print("No Calc window")
Please help Raiman
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.