- 自動庫-- 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'
自定義庫(MyLibrary)-放在../site-packages
- 導入自定義庫
- 導入
- 導入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
建立測試
- 運行完成
運行結果