De-serialization in rest assured (Complex Pojo Example) - Rest assured API automation framework

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ธ.ค. 2024

ความคิดเห็น • 55

  • @SushantTavrawala-hh1tc
    @SushantTavrawala-hh1tc 4 หลายเดือนก่อน

    One of the best on youtube.... simple easy and very straight forward solutions... Thank you very much sir. Really appreciated your help on this topic.

    • @FunDooTesters
      @FunDooTesters  3 หลายเดือนก่อน

      Glad it is helpful

  • @manishpatidar5379
    @manishpatidar5379 3 ปีที่แล้ว +1

    I have seen lot many videos before on serialization/De-serialization, found your way of explanation is very simple.. Thanks for helping!!

  • @dhamodharansakthivel1259
    @dhamodharansakthivel1259 4 ปีที่แล้ว +1

    Excellent Playlist for API Automation Framework. I have learnt the basics and important concepts. Thanks Nishant.

    • @FunDooTesters
      @FunDooTesters  4 ปีที่แล้ว

      Thank you Dhamodharan, glad you like it. Stay tuned with fun doo testers and share with your friends too.

  • @ambajha3805
    @ambajha3805 4 ปีที่แล้ว

    Nicely explained ,easy to understand.

  • @bindunagaraj123
    @bindunagaraj123 4 ปีที่แล้ว

    wow, very nice videos, went through all videos Nishanth, your videos have many pieces of information. please do post more videos on RestAssured. Thank you.

  • @mjj3tube
    @mjj3tube 10 หลายเดือนก่อน

    awesome turotial ,here we are deserializing the response right

  • @UGMAYU
    @UGMAYU 2 ปีที่แล้ว

    I have similar implementation as part of my project, the problem is what if keys are non-static.. example, if "email" key is not present for "id" value 2 and 3 and retrieving the data using getters I am getting null pointer exception.. any help how to resolve this please.

  • @maheshjabbala280
    @maheshjabbala280 2 ปีที่แล้ว

    Hi, Thanks for your video
    when i tried to use your repo ( downloaded from git from provided git url ), in reports getting unknow status first later pass and remaining status getting , May i know i to resloove that.

  • @shankarlingam4702
    @shankarlingam4702 3 ปีที่แล้ว

    Very informative bro

  • @ambajha3805
    @ambajha3805 4 ปีที่แล้ว

    Nicely explained. Great effort 👍

  • @abhiramreddy1247
    @abhiramreddy1247 ปีที่แล้ว

    i am getting this error
    Cannot deserialize value of type `java.lang.String` from Object value (token `JsonToken.START_OBJECT`)

  • @sampadachendake6337
    @sampadachendake6337 4 ปีที่แล้ว

    Nicely Explained Nishant! You made REST ASSURED very Easy with these all set of Videos. One things is - In framework of github I did not get this package of Deserialization. Are you Planning to upload that as well ? It will be great to learn and practice.

    • @FunDooTesters
      @FunDooTesters  4 ปีที่แล้ว +1

      Hi Sampada,
      Glad you liked it. I will upload code to same repo soon.
      Stay tuned with fun doo testers for more exciting videos on API automation. Please Share with your friends too.

  • @surajumbarkar4231
    @surajumbarkar4231 3 ปีที่แล้ว

    Hi , I watched all your videos, it was great explanation over the framework,, thank you so much.
    I feel one part is missing regarding data provider concept how to achived in rest assured framework, hope you would make video for same.
    Thanks in advance 👍

    • @FunDooTesters
      @FunDooTesters  3 ปีที่แล้ว

      We are on it. Will be available soon. Thanks for watching 🙏

  • @satyarepos2749
    @satyarepos2749 4 ปีที่แล้ว

    Very well explained, especially I liked the nested json taken for example..Have a question, plz tell me How to compare the response values (i.e.entire body in for main json and inner json i.e. using both the pojo classes from your example) in one shot with my expected values. ?

    • @FunDooTesters
      @FunDooTesters  4 ปีที่แล้ว

      You have to go with json schema validation

  • @varnitachaudhari4144
    @varnitachaudhari4144 4 ปีที่แล้ว

    very nice.... but I have question why there is not giving any resource information in get method

    • @FunDooTesters
      @FunDooTesters  4 ปีที่แล้ว

      Thanks for watching the video varnita. You mean get(), nothing I have passed inside bracket. Right? If I got the correct questions then answer is I have pass entire Uri as a baseuri. You can split from /users?page=2 like that and pass same in get method

  • @mohammadkhanzahurulla8401
    @mohammadkhanzahurulla8401 4 ปีที่แล้ว

    Hi..your sessions are good, but I have a doubt at one point..like listing/array in array,,, how to use..can you please explain.

    • @FunDooTesters
      @FunDooTesters  4 ปีที่แล้ว

      In pojo you have to define same way

  • @soumyaranjansahoo2667
    @soumyaranjansahoo2667 3 ปีที่แล้ว

    Instead of creating many pojo classes how to get any key value . You have an old video ' How to parse dynamic and nested JSON in java? ' . But in that video you have taken method return type as void. So I can't get the value in other class .

    • @FunDooTesters
      @FunDooTesters  3 ปีที่แล้ว

      You can create a static list and add all values to it and call from outside

  • @darshingale3861
    @darshingale3861 4 ปีที่แล้ว

    Very nice video. Thanks, and it will help me a lot. I have one question, this is for only one-page; what if I suppose to do for 2nd page what should be the strategy? The same POJO classes need to create for 2nd page to get all users and the count id for all users i.e. 12?

    • @FunDooTesters
      @FunDooTesters  4 ปีที่แล้ว +1

      Thanks for the watching video. If you are hitting same request for multiple page then no need to create multiple POJOs for the same. You can store data as a object or somewhere after hitting request. Ser-Deseril concepts are only for if you are working on a singl ton class

    • @darshingale3861
      @darshingale3861 4 ปีที่แล้ว

      @@FunDooTesters suer I will do it and Thank you so much for the answer! I have another question, I am working on allure reports and in my office req. Is allure json is stored in DB and I want to generate report from that json file as input to the allure report , how to do that , can you Please help me with this.

  • @leospawn
    @leospawn 3 ปีที่แล้ว

    Hi, Nice video as allways!
    I have a question: How can I combine this deserialization with the one in your video of the complex json parsing? I have to assert the complex json response of a rest service and I don't know how to use de complex parser as a custom deserializer.

    • @FunDooTesters
      @FunDooTesters  3 ปีที่แล้ว

      Both are different concept. Ideally when you are using same data for multiple classes using singleton design that time de serialization/serialization help, but for data usage in same class thn parsing is a best option.

  • @ParagOak
    @ParagOak 4 ปีที่แล้ว

    Hey I have gone through all this video series. Nicely explained.
    I have request, can you cover cucumber in this framework? This will be helpful for me and others as well.
    Thanks

    • @FunDooTesters
      @FunDooTesters  4 ปีที่แล้ว

      Glad you liked it. Sure i'll cover.

    • @ParagOak
      @ParagOak 4 ปีที่แล้ว

      @@FunDooTesters no videos after this? Please complete the framework

    • @FunDooTesters
      @FunDooTesters  4 ปีที่แล้ว

      Apologies, we will update soon

    • @ParagOak
      @ParagOak 4 ปีที่แล้ว

      @@FunDooTesters still waiting 😔

  • @parkashram6482
    @parkashram6482 4 ปีที่แล้ว

    Nice vidio and nice explanation, can you please clear my dought when we should go for pojo classes or when we can do with Hashtable or map.
    Like in selinium data driven testing with Json which method is suitable to create pojo classes or calling static method which return Hashtable values to dataprovider.

    • @FunDooTesters
      @FunDooTesters  4 ปีที่แล้ว +2

      Hi Prakash,
      Thanks for watching a video. Very good question.
      If you wants to re-use request/response body as a singalton class by that time we can use POJO concept. Other wise for same class when you are going to use response body then you can use map/json object.

  • @atulanand4164
    @atulanand4164 4 ปีที่แล้ว

    Very nicely Explained.Please also cover Oauth2.0 !!

  • @krishanuchowdhury9698
    @krishanuchowdhury9698 4 ปีที่แล้ว

    Please make a video on JSON Schema validation using Rest Assured

    • @FunDooTesters
      @FunDooTesters  4 ปีที่แล้ว

      Sure give me sometime, I'll upload

  • @sumak949
    @sumak949 4 ปีที่แล้ว

    can you please create an vedio to combine API and UI testing in a single framework

    • @FunDooTesters
      @FunDooTesters  4 ปีที่แล้ว +1

      Sure, give us sometime. We are planning to add sample framework for ui and API

    • @sumak949
      @sumak949 4 ปีที่แล้ว

      Fun Doo Testers Thanks..that really helps

  • @konarsubhash9927
    @konarsubhash9927 4 ปีที่แล้ว

    [
    {
    "Message": "Number of pincode(s) found:5",
    "Status": "Success",
    "PostOffice": [
    {
    "Name": "Bhandup Ind. Estate",
    "Description": null,
    "BranchType": "Sub Post Office",
    "DeliveryStatus": "Non-Delivery",
    "Circle": "Maharashtra",
    "District": "Mumbai",
    "Division": "Mumbai North East",
    "Region": "Mumbai",
    "Block": "NA",
    "State": "Maharashtra",
    "Country": "India",
    "Pincode": "400078"
    }]
    }
    ]
    this is the response from one API how to map it to POJO.Please Help

    • @FunDooTesters
      @FunDooTesters  4 ปีที่แล้ว +1

      You can create like below
      Class mainpojo
      Message
      Status
      List
      Class post office pojo
      All keys of post offices

  • @sakthisakthi-wu4dt
    @sakthisakthi-wu4dt 4 ปีที่แล้ว

    Database testing concept explain

  • @vrushalibhoite2239
    @vrushalibhoite2239 4 ปีที่แล้ว

    Getting java.lang.AbstractMethodError