← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #270758]: Adding SikuliX to RobotFramework/Selenium running with Python?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Ok, that changes things a bit.

I agree:
If you already have a running environment like RF + Selenium in Python, that you want to augment with SikuliX features, then a server solution for the SikuliX part is surely the most comfortable solution. Furthermore this is the only solution in any environment, where the integration of SikuliX is not possible, rather complex or simply inconvenient due to the Java dependency (e.g. with any C-based situations (C, C++, C# or something like .NET and similar).

The problem:
Until now I have not seen any server implementation, that fully Supports all SikuliX features. And none has already been updated to the current version 1.1.0 of SikuliX.
And I think, it does not make sense, to base your presentation on old Sikuli stuff, that only runs on Java 6 (Sikuli X-1.0RC3) or is not based on the latest version of SikuliX (e.g. 1.0.1)

Possible solution:
I have a basic (experimental) implementation of a RESTful server, that currently runs script snippets instantly on the same  or some remote machine. A description can be found on the page mentioned in comment #1.
With this you could setup a SikuliX keyword library in Python, that runs the script snippets (might be one function call) on that server.
The main restriction in the moment: besides OK or FAILED you do not get any feedback from the snippet execution.
This solution will stay on this level with 1.1.0.

Outlook:
With version 2 later this year, I will add JSON parameters and returns, to make the server more useable.
Furthermore the direct support of RF with an intelligent library solution based on this server is one of the major things on the roadmap. 

For the widening of your own experience I recommend to implement the
Jython based solution with SikuliX 1.1.0 as mentioned in comment #1. A
good reading is https://github.com/Tset-Noitamotua/Sikuli-and-Robot-
Framework-Integration which is based on Mike's famous blog post.

If you need more assistance or information, you might also contact me
directly with rmhdevelop<--at-->me.com, which might make communicating a
bit easier.

... and of course I would like to get pointers to your works in the net.

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