REST Assured API testing Beginner Tutorial | Part 1 - Getting Started

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

КОМЕНТАРІ • 557

  • @vivekhari9615
    @vivekhari9615 3 роки тому +56

    You see all these other tutorials, where people work on the project so easily using all the shortcuts and we are left wondering how did they do that. Only person I found who teaches shortcuts as well. Helped me a lot man.Thanks. Keep this amazing work up. (Y)

  • @kalyanchakravarthy7904
    @kalyanchakravarthy7904 4 роки тому +13

    Raghav, simply superb. You've kept everything that is required to get started in one video and saved so much time.

    • @RaghavPal
      @RaghavPal  4 роки тому

      so happy to know this Kalyan

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

    I found through your website in recent time. One of the best tutors I have seen. The videos/explanations are very clean and crisp. Very inspirational teacher you are and it gives positive vibes. My best wishes to you Sir, Great work!

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

      Thanks a lot for your kind words Soumya

  • @josephthecreator
    @josephthecreator Рік тому +4

    This was a phenomenal intro to Rest Assured API. Thank you so much for breaking this down so well for all of us to understand!

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

    Cant describe your effort for us.you are preparing video at 2:23 AM at deep night .Thank you so much Raghav

  • @dbvs007
    @dbvs007 4 роки тому +5

    You are exceptional Raghav, May God Bless you!!
    You recorded this in the mid night at around ~2AM oh man!!!!

    • @RaghavPal
      @RaghavPal  4 роки тому

      Thanks a ton Bhanu

    • @iRfiamwhatiam
      @iRfiamwhatiam 4 роки тому

      @@RaghavPal isnt that the time from the windows VM and the actual of recording is early morning 7:30 am

  • @Petli4e
    @Petli4e 4 дні тому

    I am so glad I found your channel and webpage! Thanks a million!

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

    Teaching can never be more clear, God bless you for sharing us your knowledge

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

      You are very welcome Subash

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

    You are a gem ! Telling all the micro level things shows how much knowledge you have.

    • @RaghavPal
      @RaghavPal  4 роки тому +1

      So happy to see your message Aakash

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

      @@RaghavPal you are seriously a "GEM".

  • @shaktisamantaray55
    @shaktisamantaray55 9 місяців тому

    Wow, finally found some great videos to start with RestAssured. Weldone Raghav!!! Very detaiks explanations and all required prerequisites are also mentuoned clearly and precisely. Thanks a lot !!!! I may have some doubts after starting work on this. Can you pleae elet me know how can I rechout to you for my queries. 😊

    • @RaghavPal
      @RaghavPal  9 місяців тому

      My pleasure Shakti
      Whenever you face any issues or have any ques, write in the comment section of that video.. like you did here. I read and reply to all comments

  • @itz_abi1261
    @itz_abi1261 4 роки тому +12

    You are amazing, God bless you for taking your time and educating us !

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

    Recalled all from this video testng java eclipse RA maven
    Thank you for great teaching style.
    Keep uploading

    • @RaghavPal
      @RaghavPal  4 роки тому +1

      Great to know this Sudheesh

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

    Even a blind can learn coding with your illustration 🤝, Kudos Raghav

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

    YOU ARE THE BEST TUTOR EVER IN THIS WORLD

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

      Thanks a lot Ian, humbled

  • @francopetruccelli8304
    @francopetruccelli8304 4 роки тому +1

    Here from Argentina watching all your videos! Thanks a lot for sharing your knowledge

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

    1st lecture in youtube i got interest in api automation...thank u bro

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

      Glad to hear that Shreyash

  • @KapilKumar-wo5cs
    @KapilKumar-wo5cs 3 роки тому

    On this date Mon Feb 15, 2021, I have interview in the freecharge company (Software Development Engineer In Test) so It's really really helpful for me. thank you so much😍

    • @RaghavPal
      @RaghavPal  3 роки тому +6

      I am so happy to know this Kapil, All the Best.
      Take care of following things
      1. Talk politely, take pauses, keep your volume and tone medium, not too low not too high
      2. If asked or whenever you find the right opportunity discuss about your past exp on how you worked in teams, how you helped your team mates. How you handled team projects
      3. Keep the general questions ready, I talked about it in this video ua-cam.com/video/Wp40YePeTUA/v-deo.html like
      - Tell me a little about yourself
      - About your work, project, past, experience
      4. Whenever asked about your last or earlier companies, always be +ve, don't say anything bad about your earlier jobs or places
      5. When asked how do you see yourself in future, 5 yrs from now - Say I look myself handling imp projects, helping my teams grow, I see myself more skilled and exp in my domain,
      6. Now there can be some tricky questions like do you like Java or Python OR do you prefer Selenium over some xyz tool. Now here, in case you have worked with one of the options more than the other you can safely say that, I have worked more with Java and I really like it but as of now, did not get many opportunities to work with Python, but will love to have options to work on it in future.
      If you have worked with both or all options again you can say that I was fortunate to have worked with both of these..., Although it will be difficult to choose one among them, Still if I have to I will go with xyz as I have worked more on this.
      Basically you should not just criticise any tool or tech
      Be confident
      Raghav

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

    Exactly what I needed to refresh my memory before the interview. Thank you

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

      Most welcome Kostiantyn

  • @ilavarasansriraman4140
    @ilavarasansriraman4140 4 роки тому +2

    U are explaining each and every point.. And also ur providing required notes 📝 in the video description .. 💯👏👍

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hope it helped Ilavarasan

  • @pinkykitu
    @pinkykitu 10 місяців тому

    Great videos and so easily explained by you. Am not seeing any videos on TestNG specifically... if there is, please provide the link ...Thanks a lot!!!!

    • @RaghavPal
      @RaghavPal  10 місяців тому

      Sujata
      Thanks, can check more here - automationstepbystep.com/

  • @23saten
    @23saten 4 роки тому +1

    Hi Raghav , I am new to this automation world, however the way you make it a piece of cake, is great. I am looking much from your classes
    Thanks

    • @RaghavPal
      @RaghavPal  4 роки тому

      So happy to know this Saten, You can find more here - automationstepbystep.com/. All the best

  • @satyam3608
    @satyam3608 4 роки тому

    the only video which cleared all concept in youtube.. thankyou

    • @RaghavPal
      @RaghavPal  4 роки тому +1

      Happy to know Satyam

  • @Jagan410
    @Jagan410 11 місяців тому

    Thankyou so much sir for detailed explanation of each and every concept..🙏

  • @MrSudhanshu1981
    @MrSudhanshu1981 4 роки тому +1

    This is the best way i can say..Keep uploading. As i go on watching your videos i became fan of yours sir. Thank you.

    • @RaghavPal
      @RaghavPal  4 роки тому

      So happy & humbled to know this Sudhanshu

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

    Very detailed and helpful. Along with the setup, you have also shown a lot of other shorcuts in eclipse. Vry helpful. Thank you..

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

    So detailed,, even give a way if don't have the tool yet. Like java and IDE. BIG THANKS ❤️

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

      Most welcome Frista

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

      @@RaghavPal Anyway, why when I import this import static io.restassured.matcher.RestAssuredMatchers.*;
      import static org.hamcrest.Matchers.*; those unrecognised. It's grey. Im using intellij and gradle

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

    just phenomenal , easy to get started everything with clear picture

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

    Bro . I am the tech lead for a java restful backend project . Can we use this with junit . Is there only one video you made on this🤔🤔

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

      these are the only videos of Rest Assured I have for now

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

    You have mentioned two playlist for Rest assured. Can you clarify whether they both are same or different?

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

      Hi Meenakshi
      This playlist - ua-cam.com/play/PLhW3qG5bs-L8xPrBwDv66cTMlFNeUPdJx.html
      has single videos per topic
      And this - ua-cam.com/play/PLhW3qG5bs-L8dDZPP1tpQldU4tzZdPfRv.html
      has multiple topics covered in single videos
      You can learn from may of these

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

    Hi Raghav, I have a question, As there are a lot of API Testing Tools like POSTMAN, SOAP UI, and all. Are testers use all of them in testing the APIs? and Similar question for mobile testing as well

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

      Hi Gazal, In an organization, testers usually use one of these. It can be an organizational or team choice based on what works best for them and same goes for Mobile testing.

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

    amazing tutorial. i like background peacock sound... is it real peacock around you area ?

  • @mzamomahaeng268
    @mzamomahaeng268 4 роки тому

    You are a blessing Mr Pal. You are the Virat Kholi of mentors.. the best ever

    • @RaghavPal
      @RaghavPal  4 роки тому

      Humbled to see your message Mzamo

  • @SMSM-gd5dt
    @SMSM-gd5dt 2 роки тому

    You are Awesome. God bless you.. luv from USA

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

    teaching style outstanding 😍

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

    Thankyou so much for your work. You are providing a great service to all of us by not only by imparting your knowledge but trying to give better lives for all of us. God Bless you and your family.

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

      You are very welcome Ramya

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

    Thanks for your videos its easily understandable and doable.. your explanation is very clear and telling explaining From scratch

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

      You are most welcome Devi

  • @iftekerahmed
    @iftekerahmed 4 роки тому +1

    hi raghav , are you gonna add more videos or those 5 videos of rest assure are good enough ??

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

    Excellent videos bro love it.❤. Being a beginner in Automation , what tools/coding language I should be learning first ? I mean alongside REST api what else I should strat learning? We are using sdwan orchestration in our day today work and there is room for automation. So please suggest a good combination of tools/languages I can start for my automation

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

      Hi Yusuf,
      As a beginner in automation, it is a good idea to start with the basics of programming and then move on to automation tools and technologies. Here are some tools and languages you can start with:
      Programming languages: Start with learning a programming language such as Java, Python, or JavaScript. Java is a popular language for automation as many automation tools such as Selenium, Appium, and TestNG are written in Java. Python is also a great language for automation and has many libraries and frameworks for automation such as PyTest and Robot Framework. JavaScript is used for automation with tools such as Playwright and Cypress.
      Automation frameworks: Once you have a good understanding of programming, you can start learning automation frameworks such as Selenium WebDriver or Appium for web and mobile automation respectively. These frameworks are widely used in the industry and have a large community of users who can provide support and resources.
      API testing tools: Since you mentioned REST API, you can also start learning API testing tools such as Postman, Rest-Assured, or Karate. These tools can help you automate the testing of REST APIs and make your testing more efficient.
      SD-WAN orchestration: For SD-WAN orchestration, you can start by learning the basics of networking and SD-WAN. You can then explore automation tools such as Ansible or Terraform that can help you automate the deployment and management of SD-WAN infrastructure.
      Overall, it's important to focus on learning the fundamentals of programming and then move on to learning automation tools and technologies that are relevant to your work. Start small and gradually build up your skills and knowledge as you gain more experience.

  • @SachinKumar-rz6cw
    @SachinKumar-rz6cw Рік тому

    Very nice Raghav. great work.

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

    Raghav !! Your voice is superb . the way you deliver your content it's amazing !!!

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

      Thank you so much 😀

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

    Seriously...very good explaination Raghav...Thanks a lot.

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

      You're most welcome Sandesh

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

    Very Detailed and amazing content. Thanks for posting this video. It will be very helpful for any Restassured Interview Questions. Again, Thanks a lot.

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

      Hi Simranjit, i will do

  • @sharanshyangbo4535
    @sharanshyangbo4535 4 роки тому

    Raghav you are just awesome. Your videos are so understanding.

    • @RaghavPal
      @RaghavPal  4 роки тому

      Glad to hear that Sean

  • @MagDag_
    @MagDag_ 4 роки тому +1

    Thank you! Question: Why are you stick to the Eclipse? I see guys from India generally using Eclipse.

    • @RaghavPal
      @RaghavPal  4 роки тому +1

      Hi, I 've been using Eclipse since start, But will add session on IntelliJ as well

    • @MagDag_
      @MagDag_ 4 роки тому

      @@RaghavPal I just interested.

  • @testinginsights-muktasharma
    @testinginsights-muktasharma 4 роки тому

    Hi Raghav, very nice. Thank you! Just one thing do you have Rest assured with cucumber bdd videos anywhere? If yes, please share the link.

    • @RaghavPal
      @RaghavPal  4 роки тому +1

      Hi Mukta, not yet with cucumber bdd, I will do in some time, You can get all here - automationstepbystep.com/

    • @testinginsights-muktasharma
      @testinginsights-muktasharma 4 роки тому

      Automation Step by Step - Raghav Pal sure,thanks Raghav! I will keep a check.

  • @Trading4Life
    @Trading4Life 4 роки тому

    Very nice video. Your website is very helpful and in sync with what automation testers want at a place. Much thanks. Subscribed. Keep it up. You can further add a QnA forum to it.

    • @RaghavPal
      @RaghavPal  4 роки тому

      Sure Vinay. All the best

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

    The quality of this video is very good...but I must ask...why are we doing all of this when we can just use Python and the very user friendly requests library to accomplish all of this?

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

      Hi, REST assured is a very popular and widely used library for Java and there were many requests to create this series

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

      @@RaghavPal Thank you for the reply, sir. I thought about it after asking, and I realized it was a stupid question. I can also see that Rest Assured provides a lot of automation options and built-in functionality. I am looking forward to seeing how to use it to create my own local server with API responses to be used for testing. So far, I have been using Docker and Flask to do this...I wonder if I can use Rest Assured to more easily create a local server for API testing, and then use Python to test responses?

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

      I will have more sessions on this

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

    Best 👍. Awesome teaching and best technical teaching.

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

    Simple, interesting... Good to learn from ur videos

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

    Thanks for the great tutorial!
    I'm having a small problem you might be able to shed some light into.
    I'm trying to test an api that i'm locally hosting, i have the problem that the test are running before the API gets deployed by the ide, so as expected all test fails. How do you make it so the ide deploys the .war first and then run the tests? I'm running netbeans in this case.

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

      Hi Germán,
      f you're using NetBeans, you can try configuring the build process to deploy the .war file first and then run the tests. Here's how you can do it:
      Right-click on the project in NetBeans and select "Properties".
      In the "Project Properties" window, select the "Build" category.
      In the "Build" section, click on the "Post-Build Command" option.
      In the "Post-Build Command" field, enter the command to deploy the .war file to your local server. For example, if you're using Apache Tomcat, you might enter a command like the following:
      cd $CATALINA_BASE/bin
      sh shutdown.sh
      sh startup.sh
      Click "OK" to save the changes.
      In the "Project Properties" window, select the "Run" category.
      In the "Run" section, select the "Run Test(s)" option.
      In the "Test Task" field, enter the command to run your tests using Rest Assured. For example:
      mvn test
      Click "OK" to save the changes.
      Now, when you build the project in NetBeans, it will first deploy the .war file to your local server and then run the tests using Rest Assured. You should be able to see the results of the tests in the NetBeans output window.

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

    Wonderful steps and explanation

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

    I have little understanding of webdriver UI automation.. Can I watch this series to automate apis? Or do I need to have any other prior knowledge?

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

      You can watch this from 1st video

  • @ravisinghrajpoot3086
    @ravisinghrajpoot3086 4 роки тому +1

    Hi Raghav... I was successfully able to create a maven project but on my POM.xml an error was comming
    " Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 "
    Regarding the same I hv performed below actions but this not change anything in pom
    Right click on project -- Run (as) Maven clean n then
    Right click on project -- Run (as) Maven install..
    N build was failed
    Maven version installed in my machine is - Apache Maven 3.3.9
    Java Version is 1.8.0
    Eclipse is Mars
    Even I added two dependencies as well into pom.xml which were testng and extentreports
    I have restarted my system as well but it's showing the same error while for rest of my earlier maven projects pop.xml is doing good
    Please suggest

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Ravi, did you try Maven > Force update
      I believe you may already have seen this
      stackoverflow.com/questions/25447590/maven-error-in-eclipse-pom-xml-failure-to-transfer-org-apache-maven-plugins
      Also try
      stackoverflow.com/questions/25447590/maven-error-in-eclipse-pom-xml-failure-to-transfer-org-apache-maven-plugins/48728149
      stackoverflow.com/questions/5074063/maven-error-failure-to-transfer

  • @PriyankaSharma-bj3ec
    @PriyankaSharma-bj3ec 5 місяців тому

    Hi Raghav
    Do you have tutorial for API creation?
    I have got API testing tutorial but not API creation.

    • @RaghavPal
      @RaghavPal  5 місяців тому

      Priyanka
      Can check these ua-cam.com/play/PLhW3qG5bs-L_dJ0YvpKE0m-VK6WRsXDTp.html

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

    Hi Raghav. What is that tool you are using to draw red rectangles around parts of the screen you want to highlight?

  • @ruchiverma841
    @ruchiverma841 4 роки тому

    Hi, I want to learn automation , i do not have any idea about any CI/CD tool.. just have core Java knowledge. I am finding this session will be helpful as well.Please Guide me about other sessions that i can go through.

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Ruchi, you are ready to start learning Automation. You can select the topics from here as per your need - automationstepbystep.com/

  • @itsme-vc8fs
    @itsme-vc8fs Рік тому +1

    Sir i don't have any java knowledge can i still learn rest assured

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

      Yes, you can, just get started on it and learn the concepts wherever needed, this is how I learn

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

    This is a great tutorial. I was able to setup the framework within minutes. Thanks for this.

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

    I wanted to know how restassured calls work with TestNg, for example we have multiple restassured calls in the same @test annotation method I wanted to know which is calling first second like that

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

      I will try to do a session Swathi, for now can try if any info is available online

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

    Very Helpful sir, are there peacocks around you or is it cats?

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

    Thanks a lot
    Great work! Keep on
    Wish you the best

  • @Savalakh_22
    @Savalakh_22 4 роки тому

    Raghav i must say u teach better than many other like rahul shetty you should get on udemy

    • @RaghavPal
      @RaghavPal  4 роки тому +1

      Humbled to see your message. I am on Udemy, will add more courses

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

      @@RaghavPal . I have seen a lot of videos like naveen, mukesh regarding rest assured api but i feel your content and your explanations is better than theirs. why dont you put all the content and kee pon updating in udemy. you will nail the market.

  • @prernasachdeva1491
    @prernasachdeva1491 4 роки тому

    hi Raghav ,
    worth watching .
    Facing on issue. using equalTo in second test case is giving syntax error . can you tell which inbuit class it belongs

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Prerna, status code is integer. if you need to compare as String can convert it using .toString()

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

    TestNG can also be added from Eclipse Market place. Any specific reason you dint mention that?

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

      nothing specific, you can try that

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

    From Seattle, WA, Thank you :)

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

    Awesome explanation... Thank you so much Raghav :)

  • @sandeepb1611
    @sandeepb1611 4 роки тому

    Very nice explanation..Thanks a lot sir.. god bleas u.

    • @RaghavPal
      @RaghavPal  4 роки тому

      You're most welcome Sandeep

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

    Can you please makes some clarification on using the END POINTS

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

      Hi Jerin, you can watch my API basic playlist here - automationstepbystep.com/

  • @PreetiGupta-qz1nw
    @PreetiGupta-qz1nw 4 роки тому

    Excellent Job.. Your way of teaching is really appreciable. Thanks for helping.

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

    Thank you so much for explaining in detail..

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

      Glad it was helpful Tejas

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

    It is very easy to understand...awesome video

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

      Glad to hear that Suvarna

  • @himanisengar5146
    @himanisengar5146 4 роки тому

    Hey Raghav .... Can you please tell me what is the difference b/w oauth 1.0 and oauth 2.0

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Himani, for starting you can read the Story of OAuth here - automationstepbystep.com/stories/
      I will plan a more detailed session too

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

    Good videos, Raghav.
    Can rest assured be used for dotnet microservices? Is coding need to be done in java only or can it be done in c#? Which one is more beneficial?

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

      Hi Ritesh, you can use Rest Assured for testing any APIs, it is a java library so will need to use java in the testing project

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

    Hi Raghav, thanks for the video. Is it possible to automate protobuff using rest assured. Could you please guide on this. Thanks

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

      I am not much aware on this Vipin, will need to check online

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

    Hello Raghav, is there any other language other than JAVA that is supported by rest assured?

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

      Hi Ankit, as far as I know REST-assured is a java lib, You can find similar lib in other languages

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

    Amazing Raghav, Thank You so much

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

    Sir REST Assured API & REST API dono alag alag hai kya ?

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

      Yes Binod REST is a web services protocol and REST Assured is a framework to test REST web services API

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

    Thank you Raghav. You’re amazing

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

    Hello sir can you say what does it mean configuring of rest assured??

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

    Thank you for these videos
    One question How we can read and write the PUT API XML data
    The thing is in the XML body I have to update the attribute with respective data.

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

      Hi Pawan, I have some examples on this in the next sessions of this series

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

    Raghav do you have any frame work using RestAssured like Java selenium Hybrid Frame work

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

      Hi Nagarajan, Not a combined framework with Rest assured and Java, you can find separate frameworks to get help from here - automationstepbystep.com/

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

    Was that Peacock in the background. You must live in heaven

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

      Yeah, there are a lot of them

  • @govindreddy180
    @govindreddy180 4 роки тому +1

    Thanks a lot, Raghav...Most useful video...

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

    Hello Sir, can we do it in vscode.. I tried finding but failed

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

      Hi Tima, Rest Assured is a java library, as we can create a java project in VS Code, we can also create Rest Assured framework in VS Code, I have not done it yet, you can try finding some tutorials on this

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

      @@RaghavPal thank you sir, that would be helpful

  • @Mustafa-e1e
    @Mustafa-e1e Рік тому

    I just have a question, in a single record (for example) in id 7 we want to check the id as well as the first name or multiple elements, how can we do that?

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

      Hi Mustafa
      In Rest Assured, you can use the assertThat() method along with Matchers to validate multiple fields in a single record. Here's an example:
      Let's say you have a REST API endpoint that returns a JSON response with the following structure:
      {
      "id": 7,
      "firstName": "John",
      "lastName": "Doe",
      "email": "john.doe@example.com"
      }
      To validate both the id and firstName fields in this response, you can use the following code:
      import static io.restassured.RestAssured.*;
      import static org.hamcrest.Matchers.*;
      given()
      .when()
      .get("/users/7")
      .then()
      .assertThat()
      .body("id", equalTo(7))
      .body("firstName", equalTo("John"));
      Here, the equalTo() method is used to validate the value of each field. The body() method is used to specify the field name in the JSON response.
      You can add as many body() assertions as you need to validate multiple fields. If any assertion fails, the test will fail and an error message will be displayed indicating which assertion failed.

  • @zainabfirdos2666
    @zainabfirdos2666 11 місяців тому

    Hello Sir,
    Can you please tell me how to fetch the token, from response ?
    The token is present in headers tab of response

    • @RaghavPal
      @RaghavPal  11 місяців тому

      To fetch the token from the response headers in Rest Assured, you can use the following steps:
      1. Get the response headers.
      2. Get the token header value.
      3. Extract the token from the header value.
      *Step 1: Get the response headers.*
      To get the response headers, you can use the `getHeaders()` method. This method returns a `Headers` object that contains all of the response headers.
      ```java
      Headers headers = response.getHeaders();
      ```
      *Step 2: Get the token header value.*
      To get the token header value, you can use the `getHeader()` method. This method takes the name of the header as a parameter and returns the value of the header.
      ```java
      String tokenHeaderValue = headers.getHeader("Authorization");
      ```
      **Step 3: Extract the token from the header value.**
      The token header value is typically in the following format:
      ```
      Bearer
      ```
      To extract the token from the header value, you can use the `substring()` method. This method takes the start index and the end index as parameters and returns a substring of the string.
      ```java
      String token = tokenHeaderValue.substring(7);
      ```
      **Example:**
      The following code shows how to fetch the token from the response headers in Rest Assured:
      ```java
      import com.jayway.restassured.RestAssured;
      import com.jayway.restassured.response.Headers;
      import com.jayway.restassured.response.Response;
      public class FetchTokenFromResponseHeaders {
      public static void main(String[] args) {
      // Make a GET request to the server.
      Response response = RestAssured.get("example.com/api/token");
      // Get the response headers.
      Headers headers = response.getHeaders();
      // Get the token header value.
      String tokenHeaderValue = headers.getHeader("Authorization");
      // Extract the token from the header value.
      String token = tokenHeaderValue.substring(7);
      // Print the token.
      System.out.println(token);
      }
      }
      ```
      This code will print the token to the console.

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

    Excellent video thanks bro

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

    Hi, I have used one json file for request body for my rest assured project. But I want pass some parameter from my framework into the json. Or r u have any other way to pass parameter to my request body. This is my project need. Can u plz suggest any idea.

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

      Hi, you can pass it through script or a file
      you will find some examples in the sessions

  • @9999mala
    @9999mala 2 роки тому

    Hello, Raghav I am totoaly new in IT .I want to learn Automation tool so what can I do
    and In REST Assured how can I know that how many Dependency we need ?
    Plese advice me
    Thank you

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

      Hi, can check the tutorials here - automationstepbystep.com/

    • @9999mala
      @9999mala 2 роки тому

      @@RaghavPal Thank you for your reply but I need to do all of this?

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

      will try to add more

  • @sathya-enjoy_lifetothefullest
    @sathya-enjoy_lifetothefullest 4 роки тому +2

    Hi Raghav Sir, one request to you . Can you please make one framework using Intellij, Gradle, Junit with BDD cucumber framework which is integrated with Jenkins and GIT. No video has been done and available in youtube with this combination

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

    Congrats for 400k subscribers sir🥳👍

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

    I have payload
    { "authorized users":
    [ {
    " first name" :" john",
    "last name":" kesly"
    } ]
    }
    Map arr=new LinkedHashMap();
    arr.put("first name","john");
    arr.put("last name","kesly");
    Map body=new LinkedHashMap();
    body.put("authorized users",arr);
    given().contentType("application/json").body(body);
    When I hit this I am getting error
    {
    "reason": Invalid type: object (expected array)"
    }
    How to resolve this issue?
    In this case how to convert map into array ?
    How to write a code for this ?
    Can you please help me on this ?

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

      Not very sure, you will need to debug and check from which line exactly this is thrown and detailed logs

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

      @@RaghavPal ok

  • @ananthapadmanabhabs3474
    @ananthapadmanabhabs3474 9 місяців тому

    are these tutorials enough to work in real time api rest assured project ?

    • @RaghavPal
      @RaghavPal  9 місяців тому

      Yes Anantha
      If you follow these with hands-on, you can work on any Rest Assured project. There will be some new things you will face specific to your project needs as you will progress, but you will be able to handle with this foundation

    • @ananthapadmanabhabs3474
      @ananthapadmanabhabs3474 9 місяців тому

      @@RaghavPal Thank you , Is it same even with Performance testing tutorial ?

    • @RaghavPal
      @RaghavPal  9 місяців тому

      Let me know if you are referring to a specific series. For tools like JMeter, Gatling it will be the same

    • @ananthapadmanabhabs3474
      @ananthapadmanabhabs3474 9 місяців тому

      @@RaghavPal JMeter full course Masterclass

    • @RaghavPal
      @RaghavPal  9 місяців тому

      Yes, if you follow this one as well with hands-on, can work on any JMeter project

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

    hey Raghav, getting below error
    java.lang.SecurityException: class "org.hamcrest.Matchers"'s signer information does not match signer information of other classes in the same package

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

      Hi Anurag, I found this online - The hamcrest.jar needs to go before the Junit library in the build path. You can check all options here
      stackoverflow.com/questions/9651784/hamcrest-tests-always-fail

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

      @@RaghavPal Hi Raghav I tried removing junit jar. .. it worked. But will it give any issues ?

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

      If you are using testNg, removing JUnit should be fine

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

    superb explained ....thanks a lot

  • @abdulbazid.s6178
    @abdulbazid.s6178 3 роки тому

    Thank you Raghav for the amazing video with good content.

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

    Hi Raghav Sir, I need to learn REST API with JavaScript combination
    it's my project requirement. could you please share if you have done?

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

      Hi Venky, not exactly with API, you can use tools like Cypress

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

      @@RaghavPal sure, Thank you so much
      POSTMAN Beginner Tutorials - www.youtube.com/watch?v=juldr...
      It's really good and helped me to understand the topic
      Thanks again

  • @krishnamohanmocherla4740
    @krishnamohanmocherla4740 4 роки тому

    @Raghav Pal : Thank you very much for the detailed explanation. Awesome explanation with details and short cuts. I want to learn all these shortcuts. Thanks

    • @RaghavPal
      @RaghavPal  4 роки тому

      You are most welcome Krishna

  • @ChandraSekhar0085
    @ChandraSekhar0085 4 роки тому

    Thanks Raghav for your nice presentation & good efforts to bring this up

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

    sir, you made testing easy and really interesting