Debug Robot Framework tests from Pycharm

Kseniya Buraya picture Kseniya Buraya · Feb 12, 2016 · Viewed 8.1k times · Source

I'm writing tests on robot Framework and use some python functions with it. So I have the start.sh shell script that runs my testcases. But in my tests I use python functions, that was written by myself and I want to debug it and sometimes see the variables. How can I do it in PyCharm? I tried to add shell script in debug configuration, but it didn't help. Also I tried to run start shell script from python script, but I also couldn't get to breakpoints.

Answer

shicky picture shicky · Feb 12, 2016

Why are you using this start.sh? If you're using PyCharm, you can run your test cases via it and set breakpoints in whatever functions you want. Just setup a configuration for it

I just call run.py for the script: C:\Python27\Lib\site-packages\robot\run.py

Script params: --monitorcolors ansi --loglevel DEBUG --outputdir TestResults --exclude "Exclude_me" TestSuite

Then ensure you have your python interpreter set correctly and your working directory.

This question may also help - HOW TO use Pycharm to debug python script?