我想使用键盘快捷键从机器人框架文件中转到python方法。这有可能吗?
机器人框架关键字:
Check something
Given I have my scenario configured
When I configure something
Then Something else happens
Library myClass.pyMyClass.py上的Python方法:
from robot.api.deco import keyword
class myClass(object):
@keyword('I configure something')
def i_configure_something(self):
self.configure()我会用小黄瓜解释我想要什么:P
Given I am using VS Code to edit my files
When I highlight the keyword "I configure something"
And I press F12
Then I want it to open my python file and go directly to the method definition.发布于 2019-10-22 22:44:12
是的,这是可能的。我们使用带有Intellibot插件的PyCharm。这是我到目前为止找到的最好的解决方案。在PyCharm中,我们可以使用Ctrl+B从关键字直接转到python方法
它也可以使用Eclipse和Red插件来实现,但我不知道相同的快捷方式。
发布于 2019-10-23 18:51:12
对于VSCode,我使用Robot Framework Intellisense。
发布于 2019-10-24 18:28:07
我使用Pycharm超过两年,并且我使用插件:
Support
https://stackoverflow.com/questions/58504230
复制相似问题