Robot自定义库使用
2019-12-04 本文已影响0人
只知坚持_d778
- 自动库-- MyLibrary
class mytool():
def __init__(self):
pass
def test_a_b(self,a,b):
'''
打印日志
'''
print('ssss')
from MyLibrary import mytool
version = '1.0'
class MyLibrary(mytool.mytool):
ROBOT_LIBRARY_SCOPE = 'GLOBAL'

- 导入自定义库
-
导入
-
导入2
- 使用RIDE
- 新建项目 : test_project_excel
- 新建测试集 : t1.robot
- 新建测试: test_demo01
*** Settings ***
Library MyLibrary
Library MyKey/ts_excel.py
*** Test Cases ***
test_demo01
test_a_b 1 2

- 运行完成
