# Test python code using robot framework

**URL:** <https://forum.robotframework.org/t/test-python-code-using-robot-framework/2330>\
**Category:** Robot Framework\
**Created:** [26 August 2021 08:30 UTC](https://forum.robotframework.org/t/test-python-code-using-robot-framework/2330 "2021-08-26T08:30:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanya](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@Tanya](https://forum.robotframework.org/u/Tanya)\
**Post date:** [26 August 2021 08:30 UTC](https://forum.robotframework.org/t/test-python-code-using-robot-framework/2330/1 "2021-08-26T08:30:48Z")

</div>

Is it possible to test the python code using robot framework ?  
If it is possible please let me know how. Thanks !

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [26 August 2021 15:26 UTC](https://forum.robotframework.org/t/test-python-code-using-robot-framework/2330/2 "2021-08-26T15:26:25Z")

</div>

Hi Tanya,

Sure you can, see [here](http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#keyword-names) for an example of calling a python function as a keyword, so all you need to do is decide if you want to call your python functions directly to test them or create a wrapper keyword function that tests you python code and then call that from RF.

Hope that helps,

Dave.
