Given a stock threshold of 10.0
When stock threshold is set to 10.0
Then threshold result should be 10.0
在上述步骤中,我想使用预定义变量而不是常量值 10.0。喜欢,
Given a stock threshold of <thresholdValue>
When stock threshold is set to <thresholdValue>
Then threshold result should be <thresholdValue>
此预定义变量可以是所有故事的全局变量。并且可以在步骤类或故事文件本身中初始化该值。这种实现可以在JBehave中完成吗?