Is there an RPC server for Sikuli with full functionality available (or in development)?

Asked by Jason Antic

*** see related question: https://answers.launchpad.net/sikuli/+question/124759/+edit
*** see faq 1331
*** a pure Java Solution (by Enix Shen https://launchpad.net/~enix12enix)
      at https://github.com/enix12enix/sikuliserver

------------------------------------------------------------------------------------

I've been wanting to integrate Sikuli with my C# scripts at work, and the obvious way to do this, absent a Sikuli DLL (which I'm pretty sure doesn't exist) is to use an RPC based server to do the job- much like Selenium-RC. I'm very excited about the prospect of getting Sikuli to be usable in this manner with Selenium because it'll be able to do the things that Selenium just can't outside its javascript realm. SO.....is there an implementation? If not, I'm wondering if you'd be interested in a contribution (I've already been toying around with a prototype on my home computer). Not that it's terribly difficult to do, but I'm betting a lot of people would appreciate having something like that available...

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
RaiMan (raimund-hocke) said :
#1

With the standard Jython environment, there is already an XML-RPC based solution available, that at least is very easy to implement to run predefined functions from every environment, that is able to act as an XML-RPC client, even over the net.

I have documented a basic solution: faq 1331

Your idea I think goes a step further (since you mentioned Selenium RC):
map the Python level API over an RPC interface, so that any RPC client would be able to call any API function or hand over a scripted sequence, get it processed by the RPC Server and get the returned objects.

The challenge here would be, to map objects like Regions, Matches and other complex structures.

Revision history for this message
Jason Antic (jsa169) said :
#2

You said:

"The challenge here would be, to map objects like Regions, Matches and other complex structures."

Yep! That's the goal. Implementing the observation events would be rather interesting as well... but I *think* it's all doable... (I'm not very experienced with RPCs).

Thanks for the feedback!

Revision history for this message
RaiMan (raimund-hocke) said :
#3

I do not think, that the question is solved.

We should wait for a comment from the developers (I am "only" a user ;-)

Revision history for this message
Jason Antic (jsa169) said :
#4

You said:

"The challenge here would be, to map objects like Regions, Matches and other complex structures."

Yep! That's the goal. Implementing the observation events would be rather interesting as well... but I *think* it's all doable... (I'm not very experienced with RPCs).

Thanks for the feedback!

Revision history for this message
Jason Antic (jsa169) said :
#5

I'll reopen this issue so the developers can weigh in.

Revision history for this message
Enix Shen (enix12enix) said :
#6

i create something to remote call sikuli script.

Hope it's useful.

https://github.com/enix12enix/sikuliserver

Can you help with this problem?

Provide an answer of your own, or ask Jason Antic for more information if necessary.

To post a message you must log in.