I'm facing an issue when trying to call a Python method from a Robot Framework test case. I have the following Python method defined in a file named campaign.py:
def print_something_test(self, text): print(text)
In my Robot Framework test, I'm attempting to call this method as follows:
*** Test Cases ***
GIVEN Print Something Test Colombo
*** Keywords ***
Print Something Test ${text}
print_something_test ${text}
However, when I run this test, I receive the following error:
No keyword with the name 'print_something_test' was found.
I've ensured that the campaign.py file is accessible and should be correctly imported. Is there something I'm missing in the way I'm calling this Python method from Robot Framework? Any insights would be greatly appreciated.
P.s. I called the "print_something_test" method inside the main method to test. It's working fine.