Hi,
I have one .py file --- in .py file contain script of connect server using paramiko module. i.e 100 + no of line of code. (contains one class in that 4-5 functions)
and for UI automate i am using robot framework.. so before start UI automation i need to run .py file... once .py file run completed, i vll get some output from server .. so i assigned to one variable as RAW i need to use that RAW in robot framework.. how could we do that
need to do---
1)run .py file from robot framework
2) 1st .py file should run then UI part
Note-- i tried with Run Process, importing .py file but getting error for importing paramiko module.. if we remove paramiko .. it working..other functions...
eg---.py
from datetime import datetime
class Test4:
def cur_time(self):
time = datetime.now().strftime("%H:%M:%S")
return time
Robot framework-----
*** Settings ***
Library SeleniumLibrary
Library Test4.py
*** Test Cases ***
Class : Time
${Result} Cur time
log to console ${Result}