[2.0.5] SikuliX IDE: RobotFramework support --- not available --- will be back in 2.0.6

Asked by Priyanka

workaround until 2.0.6
----------------------------------------------------------

- try with the 2.0.6 SNAPSHOTS after March 7th until final availability

Steps that are needed anyways:
- download the zip from https://github.com/robotframework/robotframework/archive/refs/tags/v4.1.3.zip
- put the unzipped folder somewhere (no restrictions)
- in the IDE: File menu -> OpenSpecialFiles -> select SikuliX Additional sites and edit sites.txt
- in sites.txt add a line <base-folder>/robotframework-4.1.3/src (Windows use \)

This will allow the Jython scriptrunner to have the robot stuff on sys.path.

To check run in the IDE:
for e in sys.path: print e

the robot src folder should be on position 2

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

I am using SikuliX 2.0.5 on MacOS Catalina. I am trying to run a Robot script in the Sikuli IDE. It doesn't give me any errors but it doesn't do anything either.

runScript("""
robot
*** Variables ***
*** Settings ***
Library ./inline/Exp2LoginTest
*** Test Cases ***
Test Exp2 Login
    Test Login
""")

class Exp2LoginTest(object):

    def test_login(self):

        click ("FullAccount.png")

This is saved as Exp2LoginTest.sikuli

The documentation says it's switched off until further notice but the line below it says it's valid until versions 2.0.x
Is this expected to work?

Thanks in advance for any help on my issue!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Sorry, but currently I do not have any plans, to bring this feature back with 2.0.x.

Revision history for this message
Priyanka (pparekh) said :
#2

Thanks RailMan. So the only way to integrate with Robot framework is to re-write the Sikuli script using the Sikuli Robot Framework Library?
The Sikuli UI is better to run tests in so I was looking for a straightforward way to reuse my Sikuli scripts.

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

Ok, just had a look into the current 2.0.6-snapshot:
Everything is still there, but only switched off.

I will check, wether I can switch it on again and make it useable with little effort.

I will give feedback within 24 hours about chances and timeline.

Revision history for this message
RaiMan (raimund-hocke) said (last edit ):
#4

A first step that will be needed anyways:
- download the zip from https://github.com/robotframework/robotframework/archive/refs/tags/v4.1.3.zip
- put the unzipped folder somewhere (no restrictions)
- in your SikuliX environment find the sites.txt in the Lib folder
- in sites.txt add a line <base-folder>/robotframework-4.1.3/src (Windows use \)

This will allow the Jython scriptrunner to have the robot stuff on sys.path.

To check run in the IDE:
for e in sys.path: print e

the robot src folder should be on position 2

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

made further tests:
it principally works with some minor problems.
I will look into it further and try to fix.

will come back during the next 24 hours.

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

It works again in 2.0.6.

New SNAPSHOTS within the next 2 days.

Revision history for this message
Priyanka (pparekh) said :
#7

Thanks RaiMan for taking the time to bring this back in 2.0.6!

Revision history for this message
Priyanka (pparekh) said :
#8

Thanks RaiMan, that solved my question.