tag:blogger.com,1999:blog-1061333158605082489.post4056847829327158134..comments2022-01-23T01:56:56.438+02:00Comments on Mike's cognition: How-To: Sikuli and Robot Framework IntegrationMykhailo Morozhttp://www.blogger.com/profile/08522479422763636309noreply@blogger.comBlogger186125tag:blogger.com,1999:blog-1061333158605082489.post-83020724139086125462017-03-01T09:34:04.356+02:002017-03-01T09:34:04.356+02:00One place to have a look (based on the great work ...One place to have a look (based on the great work of Mykhailo):<br />https://github.com/Tset-Noitamotua/Sikuli-and-Robot-Framework-Integration<br /><br />The current version of of SikuliX contains a convenience solution to start with RobotFramework integration:<br />http://sikulix-2014.readthedocs.io/en/latest/scenarios.html#using-robotframework<br /><br />I am the current developer of SikuliX (RaiMan) Anonymoushttps://www.blogger.com/profile/16374756455894783264noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-53658053855595402542017-03-01T02:28:46.602+02:002017-03-01T02:28:46.602+02:00Hello,
I am having issue following this guide, sin...Hello,<br />I am having issue following this guide, since sikuli-script.jar no longer available in sikulixsetup-1.1.0. See Tset Noitamotua reply on January 24, 2015 at 5:14 PM<br />This guide is incomplete: https://github.com/Tset-Noitamotua/Sikuli-and-Robot-Framework-Integration<br />Content is not ready for this link https://github.com/Tset-Noitamotua/Sikuli-and-Robot-Framework-Integration/wiki/Step-1:-Run-Sikulix-Scripts-From-Command-Line<br /><br />How to run sikuli script from command like and integrate with roobtframework using current sikulixsetup-1.1.0?<br />Please point me to a current working tutorial. Thanks! Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-44860393532090602612016-09-06T21:41:02.345+03:002016-09-06T21:41:02.345+03:00Hello, here is solution for you: http://lmgtfy.com...Hello, here is solution for you: http://lmgtfy.com/?q=VisionProxy.dll<br />Btw, the same solution will work for other issues you might have :) Mykhailo Morozhttps://www.blogger.com/profile/08522479422763636309noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-20044869399818797692016-09-06T08:32:57.353+03:002016-09-06T08:32:57.353+03:00Hello Mykhailo,
I am using windows 7. I have also...Hello Mykhailo, <br />I am using windows 7. I have also copied lib into following directory...<br />C:\Users\Local Settings\Temp\tempdir<br />But problem didn't solved.chenapothikhttps://www.blogger.com/profile/16923461815788804400noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-77556041157607090902016-09-02T15:21:49.642+03:002016-09-02T15:21:49.642+03:00Hello,
I am trying to run script from cmd. Follow...Hello, <br />I am trying to run script from cmd. Followed your all instructions of section Step 1: Run Sikuli Script from command line. But showing error: java.lang.UnsatisfiedLinkError: VisionProxy.dll: Can't load IA 32-bit .dll on a AMD 64-bit<br />chenapothikhttps://www.blogger.com/profile/16923461815788804400noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-25756493995552849392016-08-08T15:23:20.240+03:002016-08-08T15:23:20.240+03:00[sikuli] Stopped
[sikuli] An error occurs at line ...[sikuli] Stopped<br />[sikuli] An error occurs at line 70<br />[sikuli] Error message:<br />Traceback (most recent call last):<br /> File "C:\Users\ACER\AppData\Local\Temp\sikuli-tmp3070520366424854554.py", line 70, in <br /> calc.runTest()<br /> File "C:\Users\ACER\AppData\Local\Temp\sikuli-tmp3070520366424854554.py", line 61, in runTest<br /> self.startApp()<br /> File "C:\Users\ACER\AppData\Local\Temp\sikuli-tmp3070520366424854554.py", line 10, in startApp<br /> calcApp = App("Calculator")<br />NameError: global name 'App' is not defined<br />Anonymoushttps://www.blogger.com/profile/11027052907583089991noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-69748360174063122132016-08-07T14:06:46.676+03:002016-08-07T14:06:46.676+03:00This is RaiMan from SikuliX (http://sikulix.com):
...This is RaiMan from SikuliX (http://sikulix.com):<br />With the latest version 1.1.1, it is possible to write and run RobotFramework scripts from SikuliX IDE or have an easy setup with SikuliX/RobotFramework in other IDE's like Eclipse/PyDev or PyCharm.<br />see: http://sikulix-2014.readthedocs.io/en/latest/scenarios.html#using-robotframeworkAnonymoushttps://www.blogger.com/profile/16374756455894783264noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-63469025946495708512016-08-07T14:06:29.523+03:002016-08-07T14:06:29.523+03:00This is RaiMan from SikuliX (http://sikulix.com):
...This is RaiMan from SikuliX (http://sikulix.com):<br />With the latest version 1.1.1, it is possible to write and run RobotFramework scripts from SikuliX IDE or have an easy setup with SikuliX/RobotFramework in other IDE's like Eclipse/PyDev or PyCharm.<br />see: http://sikulix-2014.readthedocs.io/en/latest/scenarios.html#using-robotframeworkAnonymoushttps://www.blogger.com/profile/16374756455894783264noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-59097399530480708912016-08-07T13:43:14.844+03:002016-08-07T13:43:14.844+03:00Hi,
Thanks for your comment.
Check if path to the...Hi,<br />Thanks for your comment. <br />Check if path to the images is correct, for example log ${IMAGE_DIR} variable from both IDEs. Also check this page http://doc.sikuli.org/faq/040-other-ide.html for information of how to setup Eclipse for Sikuli.Mykhailo Morozhttps://www.blogger.com/profile/08522479422763636309noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-80068331098167849132016-08-07T12:12:09.016+03:002016-08-07T12:12:09.016+03:00Hi,
I'm trying to run Sikuli with robotframewo...Hi,<br />I'm trying to run Sikuli with robotframework from my eclipse on Mac machine...<br />I have jython & python interpreters configured on my eclipse and have the following run configuration that am truing to run:<br /><br />"--output NONE --log NONE --report NONE --nostatusrc --loglevel TRACE /Users/MyUser/Documents/workspace/RobotFramework/Keywords/Sikuli.txt"<br /><br />Inside Sikuli.txt I'm trying to use the capabilities of sikulilibrary, but its not working for me!<br />It's giving me all the time that it cant find the image!<br /><br />I configured the image path and used it as follow:<br /><br />***Settings***<br />Documentation Sikuli Library for Devices Testing<br />Test Setup Set Image Path<br />Test Teardown Stop Remote Server<br />Library SikuliLibrary<br /><br /><br />*** Variables ***<br />## Sikuli<br />${IMAGE_DIR} ${CURDIR}/img<br /><br />*** Keywords ***<br /><br />Set Image Path<br /> Add Image Path ${IMAGE_DIR}<br /><br />I had installed Sikuli IDE on my Mac as well, from IDE I manage to find images and run scripts... <br />How can I make it works from eclipse as well?<br /><br />Regards.Anonymoushttps://www.blogger.com/profile/10386768066846472367noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-39689676758588213282015-11-01T06:42:12.003+02:002015-11-01T06:42:12.003+02:00Hi mykhailo and raiman,
I've been tinkering w...Hi mykhailo and raiman,<br /><br />I've been tinkering with the example from this blog and the source code in github provided.<br />So far, I was able to integrate SikuliX 1.1.0 to RobotFramework and created custom keywords.<br />Still a bit rough, since I'm my knowledge in python is still limited. Anyway, I'm sharing this library to anyone interested. The installation instructions and how to run the demo test are in the following github link as well:<br /><br />https://github.com/jaredfin/SikuliXRobotLibraryAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-29976735478086677222015-10-10T07:34:51.808+03:002015-10-10T07:34:51.808+03:00Hi, How did you sorted out this issue? Please shar...Hi, How did you sorted out this issue? Please share the details.vallikkvhttps://www.blogger.com/profile/15952052005760296228noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-12805049699478910702015-10-07T12:57:04.506+03:002015-10-07T12:57:04.506+03:00RaiMan from http://sikulix.com
SikuliX does not wo...RaiMan from http://sikulix.com<br />SikuliX does not work on mobile devices and I doubt that RFW does (needs Python).<br />But you might run against the emulator on a desktop or use a VNC solution, to act on the device.Anonymoushttps://www.blogger.com/profile/16374756455894783264noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-21655695454614309212015-10-07T12:25:30.020+03:002015-10-07T12:25:30.020+03:00Hi, I'm making some research about what's ...Hi, I'm making some research about what's the options available to with robot framework integrations and libraries to preform acceptance tests in mobile applications. And I came across this project. <br />Is Sikuli integration in robot framework a valuable option for mobile testing? <br /><br />Ana Padinhahttps://pt.linkedin.com/pub/ana-padinha/22/3a6/165noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-26952610521472557692015-03-25T14:07:29.240+02:002015-03-25T14:07:29.240+02:00Nevermind. I updated to SikuliX 1.1.0 nightly and ...Nevermind. I updated to SikuliX 1.1.0 nightly and work with the sikulixapi.jar. That works :)<br /><br />Thanks for the great tutorial and on the offchance he reads this: Danke für das super tolle Projekt RaiMan :)Unknownhttps://www.blogger.com/profile/17474203215490801573noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-17226701415163370852015-03-25T12:44:29.734+02:002015-03-25T12:44:29.734+02:00Before anyone guesses: yes, the code was spaced co...Before anyone guesses: yes, the code was spaced correctly, the blogpost just smushed it all to the forefront ;)Unknownhttps://www.blogger.com/profile/17474203215490801573noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-2469763038445961682015-03-25T12:40:09.595+02:002015-03-25T12:40:09.595+02:00I'm trying a simple little deviation but I can...I'm trying a simple little deviation but I cant get robot framework to work with sikuli.<br /><br />I have a little example Library called ExampleLib.sikuli. Here are the contents of the ExampleLib.py:<br /><br />from __future__ import with_statement<br />#from sikuliwrapper import *<br />#from sikuli.Sikuli import *<br />#addImagePath("ExampleLib.sikuli")<br /><br />class ExampleLib:<br /><br /> def my_keyword(self):<br /> """does nothing"""<br /> print("Yes mykeyword works for some reason")<br /> pass<br /><br /> def your_keyword(self, arg):<br /> """Takes and Argument, does nothing"""<br /> print("yourkeyword too... weird")<br /> pass<br /><br /> def verifyApp(self):<br /> if exists("1427206879174.png"):<br /> print("yes!")<br /> else:<br /> print("no!")<br /> pass<br /><br /><br /><br />if __name__ == "__main__":<br /> testInstance = ExampleLib()<br /> testInstance.my_keyword()<br /> testInstance.verifyApp()<br /><br /><br />So I should be able to work with my_keyword, your_keyword and verifyApp<br />In the Sikuli IDE it works.<br /><br />I took your script, robottest.bat, and it goes like this:<br /><br />set sikuli_jar=C:\SikuliX\sikuli-script.jar<br /><br />java -cp "robotframework-2.8.7.jar;%sikuli_jar%" ^<br /> -Dpython.path="%sikuli_jar%\Lib" ^<br /> org.robotframework.RobotFramework ^<br /> --pythonpath=ExampleLib.sikuli ^<br /> --outputdir=results ^<br /> --loglevel=TRACE ^<br /> %*<br /><br />Now, you see at the top of my ExampleLib.py that I commented out the imports.<br />When I run my robottest.bat with those lines commented out it gives me the expected:<br />NameError: global name 'exists' is not defined<br /><br />When I uncomment any of the include lines the script runs.... and then just stops, gives no output and just punts me pack to the command line, without any error.<br /><br />I don't know how to fix this. any clue what I could do?<br />Unknownhttps://www.blogger.com/profile/17474203215490801573noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-35676816358887947712015-03-12T09:11:02.308+02:002015-03-12T09:11:02.308+02:00C:\Test>robottest.bat IE\tcase.txt
Exception in...C:\Test>robottest.bat IE\tcase.txt<br />Exception in thread "main" Traceback (most recent call last):<br /> File "", line 1, in <br /> File "C:\Test\Lib\robot\__init__.py", line 16, in <br /> File "C:\Test\sikuli-script.jar\Lib\os.py", line 118, in <br />ImportError: no os specific module found<br /><br /><br />I am getting this error when I am running the script via robotframework.jar <br /><br />with jybot its running fine Writtingdilsehttps://www.blogger.com/profile/16683541066261458243noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-63213858982597514732015-03-12T06:53:19.475+02:002015-03-12T06:53:19.475+02:00hi Good Morning........!
my current script runnin...hi Good Morning........!<br /><br />my current script running through Sikuli IDE or tool but while executing with sukuli ride command"robottest.bat robot_suite\verify_operations1.txt" unable to execute the script:<br /><br />here is my issue:-<br /><br />My application has a menu item which is a sub-menu with 2 items and I cannot get Sikuli to select the second sub-item. I am using the following steps:<br /><br />* click() on the main-menu<br />* click() on the sub-menu<br />* click() on the second item in the sub-menu<br /><br />I have noticed that when the mouse moves from the sub-menu to the sub-menu item, it takes the shortest path which is a straight diagonal line. This path brushes the menu item that is just below the sub-menu and thus the sub-menu disappears, which makes my test fail. Is there a way to let Sikuli move the mouse first horizontally into the sub-menu and then vertically down to the item?<br /><br />for that i have implemented below code to avoid disappear sub-menu:-<br /><br /> def clickOrtho(self, img): <br /> start=Env.getMouseLocation()<br /> end=find(img).getCenter()<br /> mouseMove(Location(end.x, start.y))<br /> mouseMove(Location(end.x, end.y))<br /> click(end)<br /> return end <br /> def hoverOrhto(self, img): <br /> start=Env.getMouseLocation()<br /> end=find(img).getCenter()<br /> mouseMove(Location(end.x, start.y))<br /> mouseMove(Location(end.x, end.y))<br /> hover(end)<br /> return end <br />then also its not working. here problem is while mouse moving into sub-menu, before that sub-menu disappearing due to mouse move or time gap(i am not sure why and what).<br /><br />so Could you please help me on this.kotipallyhttps://www.blogger.com/profile/06735483612617533432noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-76534400730104850402015-02-04T12:19:25.951+02:002015-02-04T12:19:25.951+02:00its working fine now.........!its working fine now.........!kotipallyhttps://www.blogger.com/profile/06735483612617533432noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-58863723858900790722015-02-03T08:49:08.748+02:002015-02-03T08:49:08.748+02:00HI Myko,
thanks for your suggestion and got solve...HI Myko,<br /><br />thanks for your suggestion and got solved that issue, but again i am facing new error.<br /><br />please help me on below error(error is "FAIL IOError: [Errno 13] Permission denied: 'results/matches/2015-02-03_10-34-38.png' ")<br /><br /><br /><br />TEST CASE: Start App <br /><br /><br /><br /><br /><br /><br />Full Name:<br />Verify Operations1.Start App <br /><br />Start / End / Elapsed:<br />20150203 10:34:15.649 / 20150203 10:34:38.436 / 00:00:22.787 <br /><br />Status:<br />FAIL (critical) <br /><br />Message:<br />IOError: [Errno 13] Permission denied: 'results/matches/2015-02-03_10-34-38.png' <br /><br /><br /><br />00:00:22.779 KEYWORD: MASkp.Calculator.Run Test <br /><br /><br /><br /><br /><br /><br />Start / End / Elapsed:<br />20150203 10:34:15.654 / 20150203 10:34:38.433 / 00:00:22.779 <br /><br />10:34:15.655 TRACE Arguments: [ ] <br /> <br /><br />10:34:38.422 INFO PASS: PASS: VOT window appeared <br /> <br /><br />10:34:38.423 INFO Source Image <br />[log] App.open C:\Program Files (x86)\Vestas\VestasOnline Toolkit 4\Bootstrap.exe(5792)<br />[log] TYPE ""<br />[log] TYPE "" <br /> <br /><br />10:34:38.429 FAIL IOError: [Errno 13] Permission denied: 'results/matches/2015-02-03_10-34-38.png' <br /> <br /><br />10:34:38.430 DEBUG Traceback (most recent call last):<br /> File "C:\Users\maskp\Documents\Ddrive\SIKULI DOC\MASkp.sikuli\MASkp.py", line 109, in runTest<br /> self.verifyApp()<br /> File "C:\Users\maskp\Documents\Ddrive\SIKULI DOC\MASkp.sikuli\MASkp.py", line 52, in verifyApp<br /> self.log.passed("PASS: VOT window appeared")<br /> File "C:\Users\maskp\Documents\Ddrive\SIKULI DOC\MASkp.sikuli\logger.py", line 52, in passed<br /> self.screenshot(msg="Best Matches", folder='results/matches/', region=region)<br /> File "C:\Users\maskp\Documents\Ddrive\SIKULI DOC\MASkp.sikuli\logger.py", line 40, in screenshot<br /> shutil.copy(img_src, folder + name)<br /> File "C:\Users\maskp\Documents\Ddrive\SIKULI DOC\robotframework-2.8.6.jar\Lib\shutil.py", line 85, in copy<br /> copyfile(src, dst)<br /> File "C:\Users\maskp\Documents\Ddrive\SIKULI DOC\robotframework-2.8.6.jar\Lib\shutil.py", line 52, in copyfile<br /> fdst = open(dst, 'wb') <br />kotipallyhttps://www.blogger.com/profile/06735483612617533432noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-34409326972843947262015-02-02T13:37:46.203+02:002015-02-02T13:37:46.203+02:00Hey,
It can not find neither Phonebook-1.png nor ...Hey,<br /><br />It can not find neither Phonebook-1.png nor maximise.png files on your disk.<br />Try to search for these files using file explorer, and then compare to the path you specified in sikuliwrapper.py:<br />https://github.com/imikemo/Sikuli-and-Robot-Framework-Integration/blob/master/calctest/CalcLib/sikuliwrapper.pyMykhailo Morozhttps://www.blogger.com/profile/08522479422763636309noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-41878337369713845032015-02-02T13:13:33.302+02:002015-02-02T13:13:33.302+02:00please help me on this, this is bit high priority ...please help me on this, this is bit high priority in my projectkotipallyhttps://www.blogger.com/profile/06735483612617533432noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-66599755430216638272015-02-02T13:12:19.128+02:002015-02-02T13:12:19.128+02:00by executing the sikuli robot frame work i am gett...by executing the sikuli robot frame work i am getting below error:<br /><br /><br />main error is :[error] Phonebook-1.png looks like a file, but can't be found on the disk. Assume it's text<br />this is my log.html<br /><br />TEST SUITE: Verify Operations1 <br /><br /><br /><br /><br /><br /><br />Full Name:<br />Verify Operations1 <br /><br />Source:<br />C:\Users\maskp\Documents\Ddrive\SIKULI DOC\robot_suite\verify_operations1.txt <br /><br />Start / End / Elapsed:<br />20150130 17:48:53.820 / 20150130 17:49:26.427 / 00:00:32.607 <br /><br />Status:<br />1 critical test, 0 passed, 1 failed<br />1 test total, 0 passed, 1 failed <br /><br /><br />TEST CASE: Start App <br /><br /><br /><br /><br /><br /><br />Full Name:<br />Verify Operations1.Start App <br /><br />Start / End / Elapsed:<br />20150130 17:48:56.373 / 20150130 17:49:26.412 / 00:00:30.039 <br /><br />Status:<br />FAIL (critical) <br /><br />Message:<br />FindFailed: can not find maximise.png on the screen. <br /><br /><br /><br />00:00:30.019 KEYWORD: MASkp.Calculator.Run Test <br /><br /><br /><br /><br /><br /><br />Start / End / Elapsed:<br />20150130 17:48:56.386 / 20150130 17:49:26.405 / 00:00:30.019 <br /><br />17:48:56.389 TRACE Arguments: [ ] <br /> <br /><br />17:49:26.347 INFO FAIL: No VOT window<br />[log] App.open C:\Program Files (x86)\Vestas\VestasOnline Toolkit 4\Bootstrap.exe(11156)<br />[log] TYPE ""<br />[log] TYPE ""<br />[error] Phonebook-1.png looks like a file, but can't be found on the disk. Assume it's text.<br />[info] Text Recognizer inited.<br />[error] maximise.png looks like a file, but can't be found on the disk. Assume it's text. <br /> <br /><br />17:49:26.369 FAIL FindFailed: can not find maximise.png on the screen. <br /> <br /><br />17:49:26.374 DEBUG FindFailed: <br />Line ?, in File ?<br /> at org.sikuli.script.Region.handleFindFailed(Region.java:421)<br /> at org.sikuli.script.Region.wait(Region.java:512)<br /> at sikuli.Region$py.wait$5(C:\Program Files (x86)\Sikuli X\sikuli-script.jar\Lib\sikuli\Region.py:102)<br /> at sikuli.Region$py.call_function(C:\Program Files (x86)\Sikuli X\sikuli-script.jar\Lib\sikuli\Region.py)<br /> at org.sikuli.script.Region.find(Region.java:382)<br /> at org.sikuli.script.Region.getLocationFromPSRML(Region.java:1134)<br /> at org.sikuli.script.Region.click(Region.java:607)<br /> at org.sikuli.script.Region.click(Region.java:594)<br /> at MASkp$py.VOTConnect$5(C:\Users\maskp\Documents\Ddrive\SIKULI DOC\MASkp.sikuli\MASkp.py:69)<br /> at MASkp$py.call_function(C:\Users\maskp\Documents\Ddrive\SIKULI DOC\MASkp.sikuli\MASkp.py)<br /> at MASkp$py.runTest$8(C:\Users\maskp\Documents\Ddrive\SIKULI DOC\MASkp.sikuli\MASkp.py:102)<br /> at MASkp$py.call_function(C:\Users\maskp\Documents\Ddrive\SIKULI DOC\MASkp.sikuli\MASkp.py)<br /> <br />kotipallyhttps://www.blogger.com/profile/06735483612617533432noreply@blogger.comtag:blogger.com,1999:blog-1061333158605082489.post-68486953453430969582015-01-29T09:47:29.178+02:002015-01-29T09:47:29.178+02:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/12799328958786247074noreply@blogger.com