假设我在功能文件中有一个场景,如下所示
Given I log in as "super" user
When I click on login
Then Home page is displayed
带有相应的步骤定义:
[Given(@"I log in as ""(.*)"" user")]
public void GivenIHaveLogInAsUser(string p0)
{
ScenarioContext.Current.Pending();
}
现在我想改变
Given I log in as "super" user
至
Given I have logged in as "super" user
当我在功能文件中进行此更改时,如何让 SpecFlow 在步骤定义中自动进行此更改。