How to use python file in Robot Framework?

May I know, how can I use python file in Robot Framework.

It depends how that Python file is meant to be used, but many times using it as library is easiest way. Here is link to user guide Robot Framework User Guide

1 Like

Any reference code if you have then let me know?

Hi Prakash,

There are java and python examples in the documentation: creating test library class or module

Just create the python example as is, run it and see what it does then modify it, it’s pretty easy.

In case it’s not clear, make sure your filename (the part before the .py) is the same as the class name (including upper/lower case)

Dave.