首页 > 解决方案 > 我们如何在 BDD 故事文件输出中显示时间戳

问题描述

我有 BDD 故事文件,其中我有“给定,何时,然后,场景”。我想在故事文件输出中添加时间戳。我们怎么能做到这一点?

一个例子:

Given a step that is executed before each story

Scope: SCENARIO
Given a step that is executed before each scenario

这是我通过 Jenkins 运行故事时的输出。我想在故事文件输出中获取时间戳:

<Timestamp here> Given a step that is executed before each story

Scope: SCENARIO
Given a step that is executed before each scenario

标签: seleniumbddjbehave

解决方案


推荐阅读