【发布时间】:2019-10-24 18:28:06
【问题描述】:
我想使用键盘快捷键从机器人框架文件中执行 python 方法。这可能吗?
机器人框架关键字:
Check something
Given I have my scenario configured
When I configure something
Then Something else happens
Library myClass.py
myClass.py 上的 Python 方法:
from robot.api.deco import keyword
class myClass(object):
@keyword('I configure something')
def i_configure_something(self):
self.configure()
我会用 Gherkin 解释我想要什么: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.
【问题讨论】:
标签: python visual-studio-code robotframework