如果是纯变量的 使用
Variables         ../kpi_auto/test.py

如果是写的方法
Library           ../kpi_auto/testLib.py

Demo.robot:
*** Settings ***
Variables ../kpi_auto/test.py
Library ../kpi_auto/testLib.py
Library ../kpi_auto/testLib2.py

*** Variables ***
${ss} 1

*** Test Cases ***
TestLog
log '111'
log ${ss}
log ${host}
${test11} test1 sss
log ${test11}
${p} testLib2.test_lib3 ww
${r} calc1 1 2
TestTwo
log TestT
log ${var}
log ${ss}
FOR ${i} IN 1 2 3 4 5
log ${i}
END

test.py:
# coding=utf8
var = 1
host = '127.0.0.1'

testLib2.py:
# coding=utf8

def test_lib3(sss):
"""
"""

return sss