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.
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?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With