I am trying to import a method from the python class ExampleLibrary
from the Python file Example.py
#Example.py
class ExampleLibrary:
ROBOT_LIBRARY_SCOPE = 'TEST CASE'
counter = 0
def county(self):
self.counter = 29
print(self.counter)
return self.counter
def clear_counter(self):
self.counter = 0
print(self.counter)
My Robot file is like
*** Settings ***
Library ExampleLibrary
*** Test Cases ***
This is a Sample Test
[Documentation] First Test
[Tags] Variables display
${var} county
log ${var}
The robot framework is unable to recognize the keyword county
from the Example.py
but the ExampleLibrary
class is being imported properly. I am using the Pycharm IDE. Can anyone help me out?
Thank you.