Part 1 -Design Pattern Intro - Builder Design Pattern in Test Automation - Rest Assured POJO

Поділитися
Вставка
  • Опубліковано 18 лис 2024

КОМЕНТАРІ • 23

  • @kiran818
    @kiran818 Рік тому +2

    Amuthan, your expertise in framework and Java 8 implementation has helped me improve my existing skills and project frameworks. Thank you so much, and may you be blessed abundantly.

  • @manualtester7134
    @manualtester7134 3 роки тому +3

    Honestly speaking, there tons of videos on design patterns, but this one is at different level. Unique talent to put a complex concept in easiest manner. Love all your videos, keep up the good work. I liked and subscribed...thanks a lot for all your great work.

  • @pavithrasenthilkumar7046
    @pavithrasenthilkumar7046 3 роки тому +3

    Hi Amuthan,
    Thank you for starting this design pattern series. It adds more values when you explain with testing based examples. Keep up the good work 💪

  • @Udzial
    @Udzial 2 роки тому +1

    Watched this video twice to understand its simplicity.
    Thank you for including the with & and example and using the method name build.
    Now i can corelate how Gherkin/RestAssured might be using this keyword and / with internally.
    Also how the action class must be using the build method.

  • @mjj3tube
    @mjj3tube 3 роки тому +2

    Amuthan Kudos to you for always thinking out of the box 😀

  • @krishanuchakraborty3500
    @krishanuchakraborty3500 3 роки тому +4

    Hi Amuthan, would be great if you could make a video on Screenplay pattern as well. Thanks for the great videos 🙏🙏

  • @udayvangala8732
    @udayvangala8732 3 роки тому +2

    Thank you for sharing knowledge, this is more useful.
    Here I have one question, If the field is not mandatory, no need to mention that attributes in the payload. How to handle this type of scenario with pojo class and builder.

    • @TestingMiniBytes
      @TestingMiniBytes  3 роки тому

      You can use jackson annotations to cater this scenario.

  • @sanjibsarkar9565
    @sanjibsarkar9565 Рік тому +1

    Thanks a lot for such valuable contents..Just wish to understand the concept clear, while building with parameters you cannot skip the boolean & address field, but while using the build method having return type "Employee" under employeeBuilder POJO, how it is building without these parameters without error? I am sure I am missing some key concepts, if possible please let me know. Thanks

    • @TestingMiniBytes
      @TestingMiniBytes  Рік тому

      By default, false will be set for Boolean and null for Address

  • @lka5968
    @lka5968 3 роки тому +1

    Thanks for the knowledge.
    Amuthan, please tell me on getting the name - Builder in the getter template list?

  • @mahatheedandibhotla
    @mahatheedandibhotla 3 роки тому +1

    yes if possible please make one on solid principles

    • @nikhil-zz6mr
      @nikhil-zz6mr 3 місяці тому

      you should know SOLID principles first before jumping to Design Patterns

  • @priyankav2890
    @priyankav2890 Місяць тому +1

    Hi Amuthan
    We are working on api automation using playwright and our request payload is very big and we have many attributes in it probably 100 lines in json file
    We have to check with different combination of attribute
    Is there any design pattern u could suggest to make things easy to handle request payload for apis ? What is the best way to handle it ..i felt maintaining them in jsons will not be a good option

    • @TestingMiniBytes
      @TestingMiniBytes  Місяць тому +1

      @@priyankav2890 Normally these test have to be written at unit level. Where you can check which attributes are mandatory.
      You can build a default pojo from external json file and then alter attributes based on your needs.
      You can leverage factory pattern to get all possible combinations of input but you have to still construct them manually.

    • @priyankav2890
      @priyankav2890 Місяць тому

      @@TestingMiniBytes thanks for the reply .will try what you suggested

  • @Humani11
    @Humani11 3 місяці тому

    Amuthan, the code you have used to build Builder pattern is not making the object immutable? and cannot we do the same setter methods in Employee POJO directly if we do not care about immutability of objects?

  • @NA-lq3in
    @NA-lq3in 3 роки тому +1

    Hi Amuthan, Whats the Url /APi u r automaitng?

  • @kiran818
    @kiran818 Рік тому +1

    Thanks

    • @TestingMiniBytes
      @TestingMiniBytes  Рік тому +1

      www.testingminibytes.com/sponsor - you can consider this link next time. Thank you for your contribution. !

  • @AbhishekPandey-mi1wi
    @AbhishekPandey-mi1wi 2 роки тому +1

    Creating two objects even after optimization would be too costly. You hardly need a single object, to solve this problem. Also why are you creating a static method and creating an instance inside it ? Doesn't make any sense

    • @TestingMiniBytes
      @TestingMiniBytes  2 роки тому

      We weed immutable student object. To do that, there are multiple ways. Using an external builder class is one way. Replacing constructor with static method is a common practice for providing readability.