Part 1: Building API Automation Testing Framework in Rest Assured from from Scratch

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 มี.ค. 2023
  • #apitesting #restassured #framework
    @8:47 Petstore API
    @12:10 Choosing one model from Petstore API
    @12:37 Preparing test cases in Excel sheet
    @16:02 Workflow for REST Assured automation
    @24:47 Create Maven project in Eclipse
    @28:55 Update pom.xml with required dependencies and update project
    @35:36 Create packages for endpoints, payload, tests and utilities
    @37:47 Delete src/main/java & src/main/resources from project
    @39:56 Create a class name "Routes" in endpoints package
    @40:22 Gather all required URLS from Petstore API
    @42:50 Store base url in variable
    @44:53 Store POST url in variable and refer base url variable
    @46:07 Follow same method for Get URL, Update URL & Delete URL but with path parameter
    CREATE USER
    @52:28 Create a class name "UserEndPoints" in same package
    @55:35 Create a method with single parameter (@1:01:15 Adding Public static to this method)
    @57:48 Declare input type in Given()
    @58:25 Gather Header details from Petstore API
    @59:11 Declaring Accept header field in Given() & refer parameter in body()
    @1:00:22 Refer post URL variable from "Routes" class in POST request in When()
    @1:00:56 Storing response in variable and return response
    READ USER
    @1:03:12 Copy the method #1 and paste in same class and change name of the method
    @1:03:40 Pass parameter for the method.
    @1:04:08 Remove all declarations in Given(), declare path parameter and pass path parameter value in it.
    @1:04:57 Refer get URL variable from "Routes" class in GET request in When()
    UPDATE USER
    @1:06:37 Copy the method #1 and paste in same class and change name of the method
    @1:07:17 Pass two parameters in the method: Username & Payload
    @1:08:00 Add path parameter for "Username" in Given()
    @1:08:28 Refer update URL variable from "Routes" class in PUT request in When()
    DELETE USER
    @1:09:24 Copy read user method, paste in same and change name of the method
    @1:09:56 Refer delete URL variable from "Routes" class in DELETE request in When()
    POJO CLASS
    @1:11:06 Create a class name "User" under payload package
    @1:12:30 Gather variables from response details in Petstore API
    @1:12:54 Create those variables in the class
    @1:13:28 Create Getter and Setter methods for this variables
    @1:14:45 Import Pojo class package in "UserEndPoints" class
    TEST CASE
    @1:16:35 Create a class under "Test" package
    @1:17:25 Create Beforeclass method in the class
    @1:18:13 Create multiple data using Faker class and pass data to the pojo class
    @1:21:55 Create test method
    @1:22:55 Call "Create user" method from "UserEndPoints" class and store response in variable
    @1:23:51 Log response in console
    @1:24:20 Validate status code using assertions
    Udemy Courses:
    Manual Testing+Agile with Jira Tool
    ► lnkd.in/gNqhEq9K
    Selenium with Java+Cucumber
    ► lnkd.in/g5YcAQyR
    Selenium with Python & PyTest
    ► lnkd.in/gvrpyYan
    Selenium with python using Robot framework
    ► lnkd.in/gxsDf8zR
    API Testing(Postman, RestAssured & SoapUI)
    ► lnkd.in/gHKQ2v2e
    Web & API Automation using Cypress with Javascript
    ► lnkd.in/gcZz5Psx
    Playwright with Javascript
    ► lnkd.in/g-ePPav6
    Jmeter-Performance Testing
    ► lnkd.in/gA3eiZPY
    SDET Essencials(Full Stack QA)
    ► lnkd.in/gmBc4-wD
    Appium-Mobile Automation Testing
    ► lnkd.in/gi_UiRTA
    Java Collections
    ► lnkd.in/gZftiiEn
    Python Programming
    ► lnkd.in/ghP6WHQz
    Cucumber BDD Framework
    ► bit.ly/3F7d69r
    Protractor with Javascript
    ► lnkd.in/gZnJ2qsS
    TH-cam Playlists:
    Manual Testing & Agile
    ► bit.ly/3ujvaYa
    ► bit.ly/3OYzxQj
    SQL
    ► bit.ly/3R6XjeG
    ► bit.ly/3nE0a1s
    ► bit.ly/3IeKuuJ
    linux & Shell Scripting
    ► bit.ly/3up1Z6a
    ► bit.ly/3nzvGxx
    Java
    ► bit.ly/3R9QfOs
    ► bit.ly/3AoRMKM
    ► bit.ly/3IbTTDn
    ► bit.ly/3ybXInv
    ► bit.ly/3yCoHdw
    Selenium With Java+Cucumber
    ► bit.ly/3P2FMm4
    ► bit.ly/3yhiIt4
    ► bit.ly/3uokzet
    ► bit.ly/3a7XIND
    ► bit.ly/3umN2S9
    ► bit.ly/3aar7GW
    ► bit.ly/3y9kD2S
    ► bit.ly/3uhLskn
    Python
    ► bit.ly/3agNgU0
    ► bit.ly/3NJNnoy
    ► bit.ly/2CTQ4mR
    ► bit.ly/3OIYWh1
    Selenium With Python,Pytest&Behave
    ► bit.ly/3OHHoC9
    ► bit.ly/3IeNLdv
    ► bit.ly/2J4tPeT
    ► bit.ly/3ydSkAq
    Selenium With Python Using Robert Framework
    (Web&API Testing)
    ► bit.ly/3nUvlpr
    ► bit.ly/3nUvE3z
    API Testing (Postman,SoapUi,&Rest Assured)
    bit.ly/3OXacWY
    bit.ly/3yh0UhE
    bit.ly/3nC9DWQ
    bit.ly/3yGfhNS
    bit.ly/3OJa11H
    bit.ly/3P2slCC
    Mobile App Testing Appium
    bit.ly/3Al49HG
    Performance Testing Jmeter
    bit.ly/3nz4fE7
    Maven,Jenkins,Git,Github,CI/CD
    bit.ly/3P16HPj
    bit.ly/3yhlUVA
    bit.ly/3afYfwT
    bit.ly/3yGzweG
    bit.ly/3yF73Ws
    bit.ly/3NCOmH7
    Playwright with Javascipt
    lnkd.in/gQZwaaVD

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

  • @Dance_With_Rishabh.n.Harshita
    @Dance_With_Rishabh.n.Harshita 4 หลายเดือนก่อน +9

    You are the hidden mentor of my testing from 2019. No one knows how special you are sir. Thanks for the video.😊

    • @sdetpavan
      @sdetpavan  3 หลายเดือนก่อน +2

      My Pleasure

  • @babyravella1046
    @babyravella1046 ปีที่แล้ว +5

    much awaited session... got some confidence now after seeing this video

  • @peacelilly2200
    @peacelilly2200 ปีที่แล้ว +5

    Most Awaited Video. Thank you.

  • @sakshiaggarwal6199
    @sakshiaggarwal6199 ปีที่แล้ว +6

    Thank you so much sir!! This series was much needed. This will clear all doubts, will built in confidence to create framework from scratch and also will be helpful in clearing interviews.

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

      Where can I find the dependencies document shared by you for pom.xml. Please help me with that. 🙏🙏

    • @arjunprasad8002
      @arjunprasad8002 5 หลายเดือนก่อน

      You can't get .. I have tried to find but didn't find anywhere...better to see the video and add dependecies in your POM.xml parallely.

  • @Jeyashreesanthosh
    @Jeyashreesanthosh ปีที่แล้ว +5

    I am waiting for this framework so long. Thank you so much sir

  • @divyadivya-kx2rg
    @divyadivya-kx2rg 10 หลายเดือนก่อน +2

    Thank you much sir wonderful teacher stay lifelong happily & healthy you have wonderful knowledge way of expaination very clear .🎉

  • @TravelEatWorship-Vlogs
    @TravelEatWorship-Vlogs 8 หลายเดือนก่อน +5

    God for QA... Thank You So Much sir... Sharing Knowledge is a Great Service to Society

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

    Thank you so much for your clear session the way of explanation is so clean and Easily understandable

  • @surajkamble3538
    @surajkamble3538 4 หลายเดือนก่อน +2

    Pawan sir you are best in the world 🤝💐

  • @Orderoll
    @Orderoll 10 หลายเดือนก่อน +3

    Awesome tutorial. Thank you

    • @sdetpavan
      @sdetpavan  10 หลายเดือนก่อน +1

      You are welcome!

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

    Sir Pavan, thank you very much for this topic! It is very useful!

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

      Where can I find the dependencies document shared by sir for pom.xml. Please help me with that. 🙏🙏

  • @dhruba454
    @dhruba454 5 หลายเดือนก่อน +3

    Thank You so much Pavan for creating such a great content.

    • @sdetpavan
      @sdetpavan  5 หลายเดือนก่อน

      My pleasure

  • @xXMrThomasXx
    @xXMrThomasXx หลายเดือนก่อน +1

    Great tutorial. Step by step. Thanks for that.

    • @sdetpavan
      @sdetpavan  29 วันที่ผ่านมา

      Glad it was helpful!

  • @yuvasrivanth
    @yuvasrivanth หลายเดือนก่อน +1

    thank you so much sir for brief and clear quick session, helps for interview

    • @sdetpavan
      @sdetpavan  หลายเดือนก่อน +1

      Welcome

  • @hossamahmed5360
    @hossamahmed5360 3 หลายเดือนก่อน +1

    Honestly, your efforts are just priceless. This channel is like a ref to many testers around the globe including me.
    greetings from Egypt

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

      Thank you very much!

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

    Great video ...waiting for long times

  • @Manisha-ni7km
    @Manisha-ni7km ปีที่แล้ว

    finally waited so long for this

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

    Most awaited video

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

      Where can I find the dependencies document shared by sir for pom.xml. Please help me with that. 🙏🙏

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

    Awesome tutorial

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

    Was waiting for this session..Thank you so much sir 😊

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

      Always welcome

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

    Thank you pavan sir, along with java api automation , please do some sessions on api automation with python.

  • @InterviewPreparationWithAKB
    @InterviewPreparationWithAKB หลายเดือนก่อน +1

    Thanks for this! Really useful.

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

      Welcome

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

    Thank you so much for this, excellent explanation!

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

      You're very welcome!

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

    Hello Sir , Please also add how we can manage test data from different environments in framework.Also how we can manage test data for different markets in framework.

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

    Thanks a lot sir!!

  • @pubuduchathuranga8438
    @pubuduchathuranga8438 11 หลายเดือนก่อน +1

    good session

    • @sdetpavan
      @sdetpavan  11 หลายเดือนก่อน

      Thanks

  • @ShruthiS-gj9xe
    @ShruthiS-gj9xe ปีที่แล้ว +1

    Thank you for creating this Video ! Can you please let me know from where I can access the POM.xml that you have used in the project?

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

    Sir please attach notes in "Selenium with python(2022 new series)". Please sir it is much needed and most people has asked the same question. It will be very helpful for us. Thank you for all your efforts.🙏

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

    Thank you so much sir

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

      Where can I find the dependencies document shared by sir for pom.xml. Please help me with that. 🙏🙏

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

    Thank you, is there a Git repo where you keep the resources mentioned in your video?

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

    After a long ❤❤❤❤

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

      Where can I find the dependencies document shared by sir for pom.xml. Please help me with that. 🙏🙏

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

    Sir please do framework development and end to end project for Mobile Automation as well

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

    Please do videos on api automation with python .. it will be more useful to us

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

    Sir please plan to do series on api python automation as well we are waiting for longtime

  • @radhakrishnanjaligam93
    @radhakrishnanjaligam93 7 หลายเดือนก่อน

    Hi Pavan,
    Could you please start automation sessions with respective API Python
    That would be very helpful 😊
    Thank you so much

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

    Is that framework is sufficient to take automation qa job......?

  • @AnuRadha-ep9uz
    @AnuRadha-ep9uz ปีที่แล้ว

    Sir I am very much interested to learn Linux course from u...please let me know if u r planning to conduct any classes on Linux
    Please sir make videos I already watched Linux for testers I understand completely that's y I am asking for full course

  • @user-iw4su2jr4y
    @user-iw4su2jr4y 7 หลายเดือนก่อน

    Can we run UI automation test using 6x/4x slowdown and check for the performance of test with low end config?

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

    Urgent & Impt: Please share dependencies.

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

    @04.38 ,We need only swagger ,? Cant we use postman ?

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

    Could you please enlighten regarding API automation testing templates?

  • @RohanKumar-vc5ii
    @RohanKumar-vc5ii 3 หลายเดือนก่อน

    Hi Sir,
    Thanks for sharing this detailed video.
    I had one query, I was just replicating the same things whichyou taught in this lecture but facin issue while creatingData method in USerTest.java.
    while setting up the data usinf Faker its throwing error as:
    user.setId(faker.idNumber().hashCode());
    errror: the method setId is undefined for the PojoUser.java class.
    Can you please help why is it happening?

  • @giginabraham-vp5pl
    @giginabraham-vp5pl 4 หลายเดือนก่อน

    Sir..do we need to set query parameters in user class?

  • @IjjasAhamed-ot4lf
    @IjjasAhamed-ot4lf 7 หลายเดือนก่อน

    Hello sir how you are assigning user as Datatype for payload?

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

    sir, can you please provide tosca automation classes

  • @parulgarg8592
    @parulgarg8592 8 หลายเดือนก่อน

    Thank you so much for providing detailed information. I am trying to implement part 1, but it is not taking any dependencies. Can you please do let me know how to prepare environment setup.
    I am using IntelliJ IDEA CE tool.

    • @parulgarg8592
      @parulgarg8592 8 หลายเดือนก่อน

      I bought the course on Udemy.

    • @pablovelazquezmichel7260
      @pablovelazquezmichel7260 5 หลายเดือนก่อน

      I guess you have to click on Load Maven Changes, that work for me@@parulgarg8592

  • @rasikabondre9323
    @rasikabondre9323 4 หลายเดือนก่อน

    Hello sir, where is the dependencies doc which you will provide?

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

    Where can I find the dependencies document shared by sir for pom.xml. Please help me with that. 🙏🙏

    • @durgaprasaddevarakonda8623
      @durgaprasaddevarakonda8623 9 หลายเดือนก่อน

      I am also looking for POM.xml file, could you please share if you got by chance !!

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

    Hello sir,
    Can you please share the dependencies document. I'm not able to find it out.
    Thanks.

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

    Hi sir, ..Is this available in your udemy api testing course

  • @priyapatnayak2180
    @priyapatnayak2180 5 วันที่ผ่านมา

    Being in a IT company,if i want to submit API testing certification which one i can go for? Any suggestions please?

  • @jaxz4986
    @jaxz4986 11 หลายเดือนก่อน

    Great video. I've learned a lot from it
    However the dependencies for the pom.xml file is not attached to this video.

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

      yes I am looking for the same

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

    Pls help me someone... I'm using eclipse latest version and java 17 ... I'm not able to get the response....their is no mistake in code I'm following as it is pavan sir... So kindly suggest me the supported software versions

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

    Sir pls reply me. I hv a career gap of yr. Im completed my B. E in ECE. After that i worked as a guest lecturer in polytechnic because of my family prblm i couldn't go out of home. Now i want to start my career in IT. What to do sir. Pls reply for me. Thank u sir

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

    Sir may I use some other code editor like vscode to setup? .

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

      I think it's your choice, I use both, most Vscode, but if I can't do something in Vscode switch to eclipse and do that, then, switch again.

  • @hrithiksingh9592
    @hrithiksingh9592 7 หลายเดือนก่อน

    from where can i get the xml file.I need to add dependencies

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

    Everything is perfect sir but this is not the main concern..The main concern these days is Not getting interview calls please let us know what to do for this concern?

  • @sweetthirty2
    @sweetthirty2 4 หลายเดือนก่อน

    Hi sir please make framework development videos using RestAssured +Cucumber BDD from Scratch

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

    Hi Sir, Where can I find the dependencies document shared by you for pom.xml. Please someone help me with that. 🙏🙏

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

    sir i need to know how to build pipeline for this using rest assured framework for api automation

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

    Can you please share po.xml?I am facing some issues while adding depedencies

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

    Hi sir, could you please share dependency document

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

    how to pass nested json objects with this
    method?

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

    Plesae ,I want to ask for API test case template. Thank you!

  • @epicgamers1998
    @epicgamers1998 วันที่ผ่านมา

    Graphql automation framework please 🙏

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

    Maven dependencies folder not showing

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

    Hi sir can please provide pom.xml file of above framework please

  • @pankajmehta9204
    @pankajmehta9204 8 หลายเดือนก่อน

    can you please share the docs of this framework?

  • @user-jd9eo6mq2y
    @user-jd9eo6mq2y 7 หลายเดือนก่อน

    Where can I find the code ?

  • @rutujamohite1755
    @rutujamohite1755 9 หลายเดือนก่อน

    Sir can you send us dependencies and this project

  • @user-su9hd7xr6v
    @user-su9hd7xr6v 2 หลายเดือนก่อน

    need the links of All Required repository please

  • @user-yj4dt1je8m
    @user-yj4dt1je8m 10 หลายเดือนก่อน

    sir how to download notes

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

    GET API is not working for User Module…please provide solution

  • @durgaprasaddevarakonda8623
    @durgaprasaddevarakonda8623 9 หลายเดือนก่อน

    Hi Sir,
    Can you please share POM.xml file which includes the dependencies

    • @durgaprasaddevarakonda8623
      @durgaprasaddevarakonda8623 9 หลายเดือนก่อน

      4.0.0
      PetStoreAutomation
      PetStoreAutomation
      0.0.1-SNAPSHOT





      io.rest-assured
      rest-assured
      5.1.1
      test




      io.rest-assured
      json-path
      5.1.1
      test




      org.json
      json
      20220320




      org.testng
      testng
      7.7.1
      test





      com.github.scribejava
      scribejava-apis
      8.3.1
      test




      io.rest-assured
      json-schema-validator
      5.1.1
      test




      com.github.javafaker
      javafaker
      1.0.2




      com.aventstack
      extentreports
      5.0.9




      org.apache.poi
      poi
      5.2.2




      org.apache.poi
      poi-ooxml
      5.2.2

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

    Java script object notation

  • @nileshwaghmare4203
    @nileshwaghmare4203 4 หลายเดือนก่อน

    Sir please link for POM.xml

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

    Plain old jav object

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

    Hi pavan sir i recently got laidoff i have 1 year of experience and recession is running what should I do no project experience I'm poor people my father is a daily wage labour now I'm doing part time in supermarket in charge could you please give suggestion nd guide me what should I do now very critical situation happened please sir 🙏🙏
    Please reply or respond

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

      You Can learn automation testing and apply for automation testing role

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

      @@TestAutomationByJohn okay bro how many topics are there in that how many tools are there at least how many i need to learn tell please because I don't know so

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

      @@hackorg6828 there are morethan 100 topics i
      if you combine java ,selenium.testng,apache poi,log4j.

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

    I am not sure that guy who uses Windows Notepad is good source of technical information LOL

  • @Lets_Roam
    @Lets_Roam 3 หลายเดือนก่อน +1

    I am getting below error when i run the "userTests"
    ----------------------------------------------------------------------------------

    404 Not Found



    404 Not Found


    nginx

    FAILED: api.tests.userTests.testPostUser
    Please suggest if you have any soln for same..thanks

    • @user-yz5jy1yl8z
      @user-yz5jy1yl8z 2 หลายเดือนก่อน

      same here
      btw did you find the solution?

  • @user-wj7yv2dz5p
    @user-wj7yv2dz5p ปีที่แล้ว

    Hello sir,
    Can you please share the dependencies document. I'm not able to find it out.
    Thanks.

  • @maruthi580
    @maruthi580 2 หลายเดือนก่อน

    Hi sir, could you please share git hub link of this project