Javascript API Testing - Tutorial Series Overview

Поділитися
Вставка
  • Опубліковано 30 вер 2024
  • Support this channel by buying me a cup of coffee ☕️ -
    www.buymeacoff...
    #api #javascript #automation
    How to do API automation testing using Javascript? In this video tutorial series, I'll walk you through that step-by-step to get your Javascript API testing framework ready.
    So let's take a look at what we will be covering in this series:
    - Basics
    ○ What is an API?
    ○ What is REST API?
    ○ Different types of API Methods
    ○ What contains in an API Request?
    ○ What is API testing and the advantages of API testing
    ○ What technologies we will be using for API testing
    - Installation / Configuration
    - Write API automation tests with Javascript using Mocha, Chai JS, and SuperTest HTTP Library
    - Scale API automation test framework
    ○Writing advanced integration tests
    § Learn how hooks work and when to use it
    § Write some negative tests to increase our test coverage
    - Generate fake test data to make tests more dynamic
    - Generate HTML reports using Mochawesome reporter
    - Integrate tests with Jenkins
    ........................
    📧 Subscribe to my mailing list for all the latest updates -
    automationbro....
    ✒️ Check out my blogs at - automationbro.com
    🚀 Enjoying my content and would like to support my work? Why not buy me a coffee! or Subscribe to this channel! 🚀
    www.buymeacoff...
    www.youtube.co...
    Thanks for watching :)
    Automation Bro

КОМЕНТАРІ • 8

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

    Great content tutorial bro, can you also create a cypress API framework? Thanks

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

      Glad you enjoyed the content. Will definitely consider creating a video on it.

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

    Hi Dilpreet amazing content, I am automating API where I have too fetch the auth code generated by AWS for this
    1 step: When I hit the first API end point I get a URL to the web application, I have to access the URL and enter login details like username and password and hit submit, after validating the input AWS generates the code in the web URL in chrome ex:"d4c0xxxx-a1ae-4xe4-840d-caeb4xxx2a21"
    2 step: I have to pass that code from the displayed URL to second API end point which generates the IDToken
    Now how do I switch from API automation to UI for entering the login details and fetching the code responded through the web URL?
    Please explain how to automate this scenario. Thank you

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

      Hi Nivedita, it depends on how the auth is setup for web app, there's probably an API for the login as well which you can hit and get the response from. If not, then find out whats the logic for auto for the web app and you can still hit it from your API tests directly by passing auth details and perhaps scraping data from the HTML content.
      So it all depends on the Web App implementation, if I were you, I would start from there.

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

      @@sdetunicorns No API for login, the response which I get from first getCODEURL API returns the login screen url, where I have to manually enter the login details and get the code generated by AWS. That code I pass on to get token API to fetch the IDToken, Refresh Token.

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

    Hi Automation bro can you make video of Javascript required for testing.

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

      Yes, we will be covering 'require' in this series.

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

      @@sdetunicorns cool thank you 😎👍