Cucumber BDD Best Practices

Поделиться
HTML-код
  • Опубликовано: 25 ноя 2024

Комментарии • 46

  • @yasenclassen
    @yasenclassen 3 года назад +2

    I mean, this video is as good as previous one about diving into cucumber, thx Ohayo-Dev, well-done, this is something that you won't find in the documentation of cucumber, because mostly the author is just sharing his experience.

  • @bsamboy1974
    @bsamboy1974 21 день назад

    perfect.. hopefully you put out more content

  • @KarthikD72
    @KarthikD72 5 лет назад

    Good one !!! Serenity follows more declarative method for more re-usability

  • @fit048686
    @fit048686 5 лет назад +2

    Hello from Brazil and thanks so much for your video, I got many tips

  • @higiniofuentes2551
    @higiniofuentes2551 7 лет назад +3

    Thank you for this very good second step in BDD!. Could be great if you include in your 3 video a reference to the other two, in order to start properly!

  • @jdrago999
    @jdrago999 7 лет назад +15

    At 3:37 the example with multiple Whens is something I try to avoid. It breaks the Arrange, Act, Assert paradigm and has lost sight of the feature test experiment we are trying to create.

  • @이순미-q4f
    @이순미-q4f 4 года назад +6

    This video helped me find peace in the middle east

    • @TheOhayoDev
      @TheOhayoDev  3 года назад

      🙏 So glad to hear that 🙏

  • @ThePhilthy77
    @ThePhilthy77 5 лет назад

    Very very very simple and informative

  • @fatihgul77
    @fatihgul77 4 года назад +2

    Thank you. Really helpfull for new starters

  • @lijandotucraneo
    @lijandotucraneo 6 лет назад +1

    Thanks a lot. This tutorial is quite useful

  • @bracebook1965
    @bracebook1965 4 года назад

    Yep, worth watching.

  • @ptvptv3827
    @ptvptv3827 5 лет назад

    This is bloody fantastic! Thanks + liked!

  • @puffluna
    @puffluna 6 лет назад +1

    Hi! Thanks for the video. I wanted to comment on how we are moving away from using Gherkin to describe screens since that should be done with mock ups or wireframes and get your thoughts on that. It hasn't been valuable for us to try to take something that should be a visual requirement and turn it into words rather than using images. We are using Gherkin to illustrate our business requirements only. Nothing technical or screen focused since those things may continue to change over time as our technology changes. Where the underlying requirement will most likely remain the same. For example, let's say our business wants to allow our customers to obtain an identification card for the vehicle that they are insuring. How we provide that to the customer may change and each layer of the system that needs to do something in order to make that work will have some role in it's implementation. If the GWT is written:
    Given a customer with an active policy
    When the customer requests an ID Card for the
    Then the system will provided the ID Card
    And the ID Card will be for the
    Each layer of the system (Client/API) can implement this requirement and automate it to make it a living requirement in that application.
    As the technology changes, the implementation may change but the requirement will remain the same.
    What are your thoughts on this?
    Thanks!

  • @SunnyDays-888
    @SunnyDays-888 2 года назад

    Thank you!

    • @TheOhayoDev
      @TheOhayoDev  2 года назад

      You're welcome! I hope it was helpful.

  • @opstesterkk1831
    @opstesterkk1831 4 года назад +2

    Having multiple Whens creates foggy test with no clear test

  • @wv5959
    @wv5959 4 года назад +1

    As mentioned before: Multiple When Then-Pairs are not Best Practise - cardinal rule says: 1 scenario describes one behaviour. And having multiple when-conditions (by adding all the AND's - see 18:56) is not ideal either.

  • @couragev4972
    @couragev4972 6 лет назад

    Please provide a couple of examples on handling multiple actions within a scenario, for example within a mobile app for a scenario of Search for an employee name , - a user might want to search thru navigation bar. Things like search results shown and have a cancel option (cross icon)...can we describe in a sentence Cancel option behavior (cancels and redirects to the search bar) within the above scenario itself?? else how do we handle such situations?

  • @kajarubankaliyugavarathan2937
    @kajarubankaliyugavarathan2937 3 года назад +1

    Am I allowed to use multiple When & Then in a Scenario?? I thought I cnq use only And multiple types. Can you advise

    • @TheOhayoDev
      @TheOhayoDev  3 года назад +1

      You can but generally it is best practice to keep it to a single Given, When, Then. However, this is the real world, so if you find yourself needing to break convention and you have a good reason to do so, then you should do what you need to do in order to make the best product possible

    • @kajarubankaliyugavarathan2937
      @kajarubankaliyugavarathan2937 3 года назад

      @@TheOhayoDev Thanks much

  • @Krazness
    @Krazness 7 лет назад +2

    Hey, I just started using cucumber at my job, and i'm looking for ways to clean up the codebase and make improvements. Thank you for this video. Also, do you have any recommendations for books/resources where I can learn Cucumber, particularly for Java development.

  • @pronk2010
    @pronk2010 5 лет назад

    Great video! I am having trouble downloading the ppt from your link. I was able to grab the other file types. Any chance you can look into that?

  • @kamalt464
    @kamalt464 Год назад

    can i use " : " after gherkin keywords in cucumber ? example When :

    • @TheOhayoDev
      @TheOhayoDev  Год назад

      You could. You would just have to account for it when you write the step definitions

  • @HowTo-lc2rp
    @HowTo-lc2rp 2 года назад

    Can you make a video on how to log our logs in the extent report? I am using cucumber with extent reports

    • @TheOhayoDev
      @TheOhayoDev  2 года назад +1

      I can take a look but it will take me a while to put one together

    • @TheOhayoDev
      @TheOhayoDev  2 года назад +1

      Would it also be beneficial to have a Cucumber setup guide for Java since extent reports are only available for Java, .NET

    • @HowTo-lc2rp
      @HowTo-lc2rp 2 года назад

      @@TheOhayoDev absolutely it would be very beneficial to have a cucumber setup guide, I mean the entire configuration with respect to cucumber. All the dependencies that are needed to start with cucumber (BDD) Framework

  • @romabulava899
    @romabulava899 2 года назад

    how to implement a shared storage so that data is stored there in one step, and this data could be used in another step?

    • @TheOhayoDev
      @TheOhayoDev  2 года назад

      There are a couple different ways you could do that. One way would just to write data to a flat file such as a CSV that you could retrieve in later steps. There are various libraries you could use in the step definition to save and retrieve data.
      If you want the data from one step to be used in later steps just note that it would tie those steps as dependent which does go against some of the guidelines laid out in Cucumber.

    • @romabulava899
      @romabulava899 2 года назад

      @@TheOhayoDev which library is used, for example?

  • @andreic6250
    @andreic6250 11 месяцев назад

    thank you but audio is so so low that it is hard to watch/listen/understand

  • @janicejiang3803
    @janicejiang3803 2 года назад

    When should visible be quoted and when shouldn't? (At 13'55'')

    • @TheOhayoDev
      @TheOhayoDev  2 года назад

      I usually do it if it is a parameter that can be changed. Like you could replace visible with disabled or invisible, and the step would still be viable taking in whatever is in quotes as a parameter

  • @DarrenDeng8610
    @DarrenDeng8610 6 лет назад

    excellent tutorial! is there any naming convention for the feature file name? for instance, TC0001_login.feature

    • @jeffvoight6586
      @jeffvoight6586 6 лет назад

      My preference is that the feature file name contain something that tells me what the feature being tested is. And, that doesn't mean a link to a jira ticket.
      If your feature is SMS features, maybe you name your file sms.features.

  • @SpringDayX
    @SpringDayX 4 года назад +1

    13:45

  • @hendryang5890
    @hendryang5890 6 лет назад

    Unable to hear anything.

  • @dovahkiin7498
    @dovahkiin7498 5 лет назад

    This is broke
    ---) 99:99