2

I have BDD story file in which i have "given,when,then,scenarios". I would like to add timestamp in story file output. How can we do that?

An example:

Given a step that is executed before each story

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

This comes as the output when I run the story via Jenkins. I want to get the timestamp in the story file output as:

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

Scope: SCENARIO
Given a step that is executed before each scenario
Lunivore
  • 17,277
  • 4
  • 47
  • 92
eddieB
  • 43
  • 1
  • 6
  • You mean when you download something the downloaded file name or the result file? – supputuri Mar 29 '19 at 20:09
  • No, i mean like in below example 'Given a step that is executed before each story1` `Scope: SCENARIO` `Given a step that is executed before each scenario` this comes as output when i run the story via jenkins. I want to get timestamp in story file output as `"Tmestamp here"` `Given a step that is executed before each story` `Scope: SCENARIO` `Given a step that is executed before each scenario` – eddieB Mar 29 '19 at 20:27
  • I still have no clue as to what you're asking for. – Bill Hileman Apr 03 '19 at 14:27
  • @eddieB You did give us an example; it was just hard to parse. I tried to copy your comment into your original problem. Did I understand it correctly? If not please edit it accordingly. – Lunivore Apr 05 '19 at 23:18
  • @Lunivore yes that's exactly what i am looking for.. – eddieB Apr 07 '19 at 02:17
  • @eddieB Fantastic, I don't have an answer for you but have upvoted this because it would be nice to have one. You could also try the jbehave-user mailing list: https://jbehave.org/mailing-lists.html – Lunivore Apr 07 '19 at 10:23

0 Answers0