rainmanwy / robotframework-SikuliLibrary

Sikuli Robot Framework Library provide keywords for Robot Framework to test UI through Sikuli.
Apache License 2.0
147 stars 61 forks source link

`capture region` fails with `java.lang.NullPointerException` #158

Closed dschiller closed 2 years ago

dschiller commented 3 years ago

TestSikuli.robot

*** Settings ***
Library  SikuliLibrary

*** Test Cases ***
Test Sikuli
  ${screenshotname}=    Capture region  [0, 0, 200, 200]
  Log to Console  ${screenshotname}
  Stop Remote Server

Which results in:

==============================================================================
TestSikuli                                                                  
==============================================================================
Test Sikuli                                                           | FAIL |
java.lang.NullPointerException: Cannot invoke "java.util.ArrayList.get(int)" because "cooridnates" is null
------------------------------------------------------------------------------
TestSikuli                                                            | FAIL |
1 test, 0 passed, 1 failed
==============================================================================
Output:  /Users/dirk.schiller/Work/Coding/Python/QALibs/Tests/Results/output.xml
Log:     /Users/dirk.schiller/Work/Coding/Python/QALibs/Tests/Results/log.html
Report:  /Users/dirk.schiller/Work/Coding/Python/QALibs/Tests/Results/report.html
rainmanwy commented 2 years ago

@dschiller, i have updated keyword doc. example: ${coor} Create List 0 0 200 2000 Capture Region ${coor}