smysnk / sikuli-framework

SikuliFramework provides an object-oriented abstraction on top of Sikuli to assist with interacting GUI elements, such as sets of buttons, checkboxes, radio buttons, windows and dialogue hierarchies for GUI automation and testing.
Other
76 stars 27 forks source link

What version of sikuli did you integrate your framework with ? #3

Open mmoselhy opened 9 years ago

mmoselhy commented 9 years ago

Hello,

I'm trying to use the framework on Windows/Linux

first, I tried to run the calculator example but it gives me the below error "TRACE:1432030308240 Changing screenshot logging level INFO:1432030308255 [<class 'launcher.Launcher'>]() is attempting to run [Calculator] wd=C:\Users\ moselhy\Desktop\Sikuli\sikuli-framework-master TRACE:1432030308255 [Calculator:Application]() created INFO:1432030308255 [<class 'launcher.Launcher'>]() created [Calculator] from [calc.exe] [WINDOWS in7 x86] Traceback (most recent call last): File "examples\calculator\add.py", line 48, in calculator = Launcher.run('Calculator') File "C:\Users\mmoselhy\Desktop\Sikuli\sikuli-framework-master\src\launcher.py", line 65, in run result = subprocess.Popen(binary, shell=True, cwd=app.getWorkingDir(os, osVersion, arch)) File "C:\Users\mmoselhy\Desktop\Sikuli\sikuli-framework-master\java\sikuli-script.jar\Lib\subproc ss.py", line 751, in init File "C:\Users\mmoselhy\Desktop\Sikuli\sikuli-framework-master\java\sikuli-script.jar\Lib\subproc ss.py", line 1236, in _execute_child TypeError: unsupported operand type(s) for +: 'NoneType' and 'list'"

the launcher isn't working, do u have any idea why ? also, I want to integrate with the latest sikuli jar, I found that you use sikuli-script.jar and this is replaced by sikuli-java.jar in the latest release 1.0.1 . but it misses many dependencies.

I know that it's been year since you pushed some work. I may help to support the latest version of sikuli but I still need some info as I'm somehow confused :)

RaiMan commented 9 years ago

Hi this is RaiMan from SikuliX.

I am also willing to support the integration of version 1.1.0 (sikulixapi.jar).

... and there is another interesting RFW approach (already working with 1.1.0) https://github.com/Tset-Noitamotua/Sikuli-and-Robot-Framework-Integration

So let us know, how we can help.

mmoselhy commented 9 years ago

Hi RaiMan, well, I have a couple of simple questions.

as I understand, this framework has been done using sikuli-script.jar from older release ? and it's replacement in v1.0.1 is sikuli-java.jar and the latest replacement is sikulxapi.jar right ?

I started working to move it to 1.0.1 but since 1.1.0 version will be released soon, so I'll switch my effort to 1.1.0 night builds

also, Thanks for referring to the other framework integration, it will help a lot.

RaiMan commented 9 years ago

@mmoselhy yes with 1.1.0+ it is sikulixapi.jar.

… and I recommend to use it for these purposes.

Come back with any question.

smysnk commented 9 years ago

This appears to be a problem with launching the calculator executable.

I would inspect what arguments are being passed into src\launcher.py:65: result = subprocess.Popen(binary, shell=True, cwd=app.getWorkingDir(os, osVersion, arch))

You may want to try specifying the exact path to calc.exe @ https://github.com/smysnk/sikuli-framework/blob/master/examples/calculator/maps/calculator.py#L67

Also getting sikulixapi.jar integrated sounds good.