有没有办法将包含换行符的参数传递到Cucumber-JVM场景中?
作为一种变通方法,我将"\n“字符串放入参数中,并在scenario方法的开头用换行符替换它们,但感觉似乎有更好的方法。
发布于 2013-04-11 14:58:20
您可以使用带三重引号的文档字符串。从官方维基http://cukes.info/step-definitions.html窃取的示例
Given a blog post named "Random" with Markdown body
"""
Some Title, Eh?
==============
Here is the first paragraph of my blog post. Lorem ipsum dolor sit amet,
consectetur adipiscing elit.
"""https://stackoverflow.com/questions/15551832
复制相似问题