Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug Robot Framework tests from Pycharm

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.

like image 693
Kseniya Buraya Avatar asked Feb 12 '16 07:02

Kseniya Buraya


1 Answers

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?

like image 84
shicky Avatar answered Sep 17 '22 17:09

shicky