0
我试图获得一个功能的步骤。当我运行特征文件时,它给了我 像黄瓜和兰布达步骤defenition
Given("^I want to register into the main forum$",() -> {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
});
这是一个lambda函数。
我曾经把它看作是类象下面
Class StepDefinition{
@Given("^I want to register into the main forum$")
public void given(){
}
}
但我想知道我怎么可以使用这个拉姆达?
你右边的代码通过prviding用户名密码,然后点击登录登录到主论坛。 – kushal