2015-05-22 32 views
-1

执行脚本后,我在命令提示符下收到了这种响应。我已经在步骤中添加了步骤,但仍然需要添加更多代码。'在Pecumber中执行脚本时出现'Pending Error message'

Given(/^i am on Gmail Homepage $/) do 
    Pending# write code here that turns the phrase above into concrete actions 
end 
When(/^enter blank details for login $/) do 
    Pending# write code here that turns the phrase above into concrete actions 
end 
Then(/^show error message $/) do 
    Pending# write code here that turns the phrase above into concrete actions 
end 

回答

1

当您的步骤定义与步骤不完全匹配时,您将从Cucumber获得此类响应。仔细检查这些正则表达式是否与您的Gherkin文件中的步骤相匹配。尽管如此,我猜猜尾部空间是你的问题。

Then(/^show error message $/) do 
         ^
0

您需要检查大写/小写的句子以确保它与步骤定义完全相同。

我发现相同的问题,并通过将“T”更改为“t”来解决它。

相关问题