【发布时间】:2021-12-18 04:42:03
【问题描述】:
我正在尝试使用带有 ruby 函数的 appian 的fitnesse 向文本字段输入一个值。 我有一个黄瓜场景:
Feature: create a quick decision
Scenario Outline: decision
When I populate the "Decision Title" field with <decTitle>
Examples:
| role | decTitle |
| "test" | "testinput "user1" titlepart2" |
我必须能够在该字段中输入带引号的值,以及从下拉菜单中进行选择。
我试图通过以下方式转义引号:
-
在同一行和多行上的三引号 """ 富 “和” 酒吧 """
-
" 用于起始引号和内部引号 “富”和“酒吧” “foo”和“bar”
-
内外双引号 “富”“和”“吧”
在运行测试用例时都会导致相同的“步骤未定义”错误 任何和所有的帮助将不胜感激。
【问题讨论】:
-
要删除双引号吗?比如,从
"testinput "user1" titlepart2"到testinput user1 titlepart2或"testinput" user1 "titlepart2" -
不,目标是输入一个包含引号的值。我的用例是标题可以在其他保留字符或不常见字符中包含引号。
-
你试过我的解决方案了吗?
标签: ruby selenium automation cucumber appian