selenium - 我们如何在 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
解决方案
推荐阅读
- javascript - 使用 java 脚本将网页打印到 PDF - 支持任何浏览器
- javascript - 通过 fetch API 触发时,EJS 视图不会呈现
- powershell - 如何使用 Invoke-parallel 调用下面的脚本块
- express - 如何使用外部 ip + 端口将我的域连接到 express 应用程序
- ios - 在 SwiftUI 的外部函数中使用绑定
- android - Android:设置弹出窗口宽度与锚视图宽度相同
- nestjs - 如何在 Nestjs 的 rest post 方法中将发布的数据发送给客户端?
- python - 如何在python中拆分数组值?
- php - 我在 drupal 8 中保存“text_format”类型的表单时出现以下错误
- node.js - 如何有效地从 Nodejs 设置我的 DynamoDb 查询