robotframework-sshlibrary

How to create 2 Objects after importing python based libraries in Robot Framework

雨燕双飞 提交于 2020-04-30 06:30:46
问题 I am importing a python libraries and wanted to create two objects with different arguments and call method defined in the class. demo.py class Sample: def __init__(self,path,device): self.device=device self.path = path print(self.device) print(self.path) def getting_path(self): print(self.path) print(self.device) return self.path demo.robot =============== *** Settings *** *** Variables *** ${path} c: ${device} samsung ${path1} D: ${device1} samsung11 *** Test Cases *** Test Test_python

How to create 2 Objects after importing python based libraries in Robot Framework

空扰寡人 提交于 2020-04-30 06:30:30
问题 I am importing a python libraries and wanted to create two objects with different arguments and call method defined in the class. demo.py class Sample: def __init__(self,path,device): self.device=device self.path = path print(self.device) print(self.path) def getting_path(self): print(self.path) print(self.device) return self.path demo.robot =============== *** Settings *** *** Variables *** ${path} c: ${device} samsung ${path1} D: ${device1} samsung11 *** Test Cases *** Test Test_python