site-packages(这个路径一定要在系统path路径中)下面创建一个UserDefineLibrary文件夹:目录结构如下
---- ----- UserDefineLibrary
__ init__.py
extend.py
__init__.py
from extend import KeywordTest
class UserDefineLibrary( KeywordTest)
ROBOT_LIBRARY_SCOPE = 'GLOBAL'
extend.py
import os
class KeywordTest(object):
def keyword_test01(self,*args1,**kwargs):
"""func area """
return res1
def keyword_test02(self,*args2,**kwargs):
"""func area """
return res2