What face and mood should I use in the Gherkin / Specflow Given / When / Then instructions?

I am a little confused by the way people write statements in Gerkin’s language to describe the various activities performed for acceptance testing.

In some articles, people use the "I", and in some articles, people use the "User".

The same applies to reactions ( Then):

Case 1 --> xyz page should be displayed
Case 2 --> xyz page is displayed

Ex 1:
Given statement abc
When user performs action A
Then screen xyz should be displayed

Ex 2:
Given statement abc
When I perform action A
Then screen xyz is displayed

Is it better to write “user” or “me”, and is it better to write “should” or “eat” so that my BDD scripts are clear and correct in accordance with the standards?

Links to any article will also be useful. Thanks in advance.

+4
1

.

, BDD, , 1- ( "" ), . , ( "//" ), .

:

As <a stakeholder>
I want <something>
So that <goal>.

, "I" .

.

As the moderator of the site
I want users to prove that they're human
So that I can limit spam.

, . , .

Given an odd-looking number "31" on a door frame
When the user identifies the number as "31"
Then the system should authenticate them as being human.

, , . , , , .

Given Suzanne searches for a taxi for 4pm to take her to hospital
And the estimated price is $23
When she books the taxi
Then she should get a confirmation email
And the driver should be notified of the trip
And she should be charged $23.

, , , .

, , , 1- , . , ( ", ", ).

, , , - . , , , , Gherkin.

+6

Source: https://habr.com/ru/post/1624667/


All Articles