← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #678427]: Mojave : SikuliX IDE : I need to create a Keyword for invoking my app with Robotramework (from the SikuliX IDE)

 

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

    Status: Answered => Open

Melvin Raymond is still having a problem:
I don't seem to have a grip on using the syntax for that class App. This
is the last one I tried. It's one of many attempts that keep returning
this error.

robot.run returned: 252
robot.run output is here:
/Users/labquest_automation/Desktop/SikuliX_Scripts/InvokeViewer.sikuli.robot

1.1.4-SNAPSHOT-2019-02-07_09:10/Mac10.14.2/Java8(64)1.8.0_201-b09

I dug around a bit to see if I could figure out what that means and
found: "DATA_ERROR      = 252   # Invalid data or cli args", which I
guess means I've got a bad argument passed or something.  I got that
from here: "https://robot-
framework.readthedocs.io/en/2.9.2/_modules/robot/errors.html"

This is the final Script I attempted:

runScript("""
robot
*** Variables ***
${TESTAPP}               "/Applications/Viewer.app"
*** Settings ***
Library           ./inline/AppLibrary
Test Setup        start my application    ${TESTAPP}
*** Test Cases ***

""")

class AppLibrary(object):
  def start_my_application(self, myApp):
    someApp = App.open(myApp)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.