【发布时间】:2020-12-29 05:35:46
【问题描述】:
我已使用以下步骤 def 从给定的弹出模式中捕获错误消息
Then warning "Invalid file. File name should be "Users.xml" " should be given to user
在这种情况下,我想在给定的字符串中包含“User.xml”
@Then("^warning \"([^\"]*)\" should be given to user
但这不会转义“。我如何转义这个”字符以匹配确切的字符串
【问题讨论】: