Use python script in robot framework
<p>Please help to understand.</p>

<p>I have script (SplitModule.py) :</p>

<pre><code>from robot.api.deco import keyword

@keyword('Split Function')
def splitfunction(string):
    print "atata"
    new_list = string.split(",")
    return new_list
</code></pre>

<p>And robot framework script test.txt :</p>

<pre><code>*** Settings ***
Library           DiffLibrary
Library           String
Library           OperatingSystem
Library           Collections
Library       SplitModule.py

*** Test Cases ***
Example of calling a python keyword that calls a robot keyword
    Split Function ${services}
</code></pre>

<p>But I have a problem with function, there is out :</p>

<blockquote>
  <p>============================================================================== Robot
  ============================================================================== Robot.Check Services
  ============================================================================== Example of calling a python keyword that calls a robot keyword<br>
  | FAIL | No keyword with name 'Split Function ${services}' found.
  ------------------------------------------------------------------------------ Robot.Check Services<br>
  | FAIL | 1 critical test, 0 passed, 1 failed 1 test total, 0 passed, 1
  failed
  ============================================================================== Robot<br>
  | FAIL | 1 critical test, 0 passed, 1 failed 1 test total, 0 passed, 1
  failed
  ============================================================================== Output:  /opt/robot/logs/output.xml Log:     /opt/robot/logs/log.html
  Report:  /opt/robot/logs/report.html</p>
</blockquote>

<p>What's the problem? thanks</p>