# Using Robot Framework's python API for test automation

**URL:** <https://forum.robotframework.org/t/using-robot-frameworks-python-api-for-test-automation/2209>\
**Category:** Python\
**Created:** [30 July 2021 08:47 UTC](https://forum.robotframework.org/t/using-robot-frameworks-python-api-for-test-automation/2209 "2021-07-30T08:47:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![R0cinant3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/r0cinant3/32/913_2.png) [@R0cinant3](https://forum.robotframework.org/u/R0cinant3)\
**Post date:** [30 July 2021 08:47 UTC](https://forum.robotframework.org/t/using-robot-frameworks-python-api-for-test-automation/2209/1 "2021-07-30T08:47:16Z")

</div>

Hello,

I am trying to use the Robot Framework’s python API to write an automation process. I want an OpenOCD to run as a daemon where I will flash a microcontroller using Telnet Commands. After the Microcontroller is flashed, various tests are performed On-target, where it checks if the embedded software is functioning correctly. The results are sent back over a different communication method (SWO).  
I have managed to make the process of running OpenOCD and flashing the Microcontroller using Robot Framework’s Testsuite, Telnet, and Process libraries. However, the way I am doing it now, I am running Robot Framework keywords for Telnet and Process in the robot.api.TestSuite commands, similar to the picture below.  
Is there a way to utilize RobotFramework’s python API and achieve the log.html and report.html files without hardcoding the RobotFramework keywords into the TestSuite commands?

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/1X/4c805ac1f0f81f4785f018b966ddeff2d9fec384.png)

Thank you for your time!
