[英]No Keyword with name 'Get Json Value' Found Error or any Keywords that I use in HttpLibrary.HTTP in Robot Framework
[英]robot framework - how to use the same name functions but come from different python library I created in Keywords section
我有两个要导入到机器人框架的python文件。
他们是:
File_A.py
class File_A(object):
def func(self):
print 'a'
File_B.py
class File_B(object):
def func(self):
print 'b'
我想在机器人框架中使用它们(相同名称的功能,但来自于我创建的不同python库)。
我试过了:
***Settings***
Library ../File_A.py WITH NAME A
Library ../File_B.py WITH NAME B
***TestCases***
Test
Run
***Keywords***
Run
A.func
B.func
我想获取打印结果,但是仅成功导入了一个库。 感谢任何帮助。
对我来说,这项工作:
***Settings***
Library ../File_A.py
Library ../File_B.py
***TestCases***
Test
Run
***Keywords***
Run
File_A.func
File_B.func
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.