I have created python file and trying to import that to my robot project.Below is the python file name helloworld.py,
class helloworld:
ROBOT_LIBRARY_SCOPE = 'TESTCASE'
def fun_scope(self):
print("Hello World")
Below is the robot script,
*** Settings ***
Library helloworld
*** Test Cases ***
TC1
Fun Scope
While executing i am getting below error,
[ ERROR ] Error in file '/home/sadha/PycharmProjects/NotificationService/Test/custom.robot' on line 2: Importing library 'helloworld' failed: ModuleNotFoundError: No module named 'helloworld'
Traceback (most recent call last):
None
PYTHONPATH:
/home/sadha/PycharmProjects/NotificationService/venv/bin
/usr/lib/python38.zip
/usr/lib/python3.8
/usr/lib/python3.8/lib-dynload
/home/sadha/PycharmProjects/NotificationService/venv/lib/python3.8/site-packages
I tried all the possible solution but nothing worked :(