API Automation Testing Full Course | JavaScript API Automation

preview_player
Показать описание
#automationbro #javascript #apiautomation
How to do API Automation Testing using Javascript with Supertest & Mocha? In this full course, I'll walk you through that step-by-step to get your Javascript API Automation framework ready.

So let's take a look at what we will be covering in this series:
- 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

🔗 Check video Resources in the description of the links attached below:

📧 Subscribe to my mailing list for all the latest updates as well as get access to Private Facebook Community -

🚀 Enjoying my content and would like to support my work? Why not buy me a coffee! or Subscribe to this channel! 🚀

Chapters:
0:00 - API Automation Testing Full Course Introduction
1:39 - Which libraries & frameworks to use for Javascript API Automation
7:33 - Installation & Setup
13:12 - Write your first API test using Javascript
27:37 - API tests for HTTP GET method
39:02 - API tests for HTTP POST method
50:44 - API tests for HTTP PUT method
59:26 - API tests for HTTP DELETE method
1:04:50 - API Tests Optimization
1:16:58 - Using Async/Await with Supertest
1:36:15 - Writing negative API tests
2:00:09 - Mochawesome Reporter
2:07:31 - API tests Jenkins Integration
2:21:04 - Course Wrapup

Follow me on other social platforms:

Thanks for watching :)

Automation Bro
Рекомендации по теме
Комментарии
Автор

If you like this video, make sure to subscribe to the channel and share this video :)

sdetunicorns
Автор

Amazing tutorial!!! So clear and concise. Thank you so much, Dilpreet

nadiaerdynieva
Автор

Hello, can you also add jsonSchema validation in the existing project, it will be helpful.

MyDIVYENDU
Автор

I was given an assignment for a Job Interview! I completed it with the help of this course and I got a call for the next round :) Now I am prepping for it! Thanks @dilpreetjohal

surbhiarya-hx
Автор

Amazing and extremally useful video. Thank you!

sunmoon
Автор

Using Async/Await section, I was getting the Error:

User Post
"before all" hook for "/posts":
TypeError: (0, is not a function

To fix this I had to change the user_helper export to

Hope this helps anyone else that may come across the same error when following along :)

Dilpreet, awesome content and so clear and precise! I will look further into why I needed to add module for it to work as its not the first time I've come across this, for which I come across something similar with ava (from what I've seen so far the export is to allow something to be public), but any pointers into the right direction to get a better understanding would be great, I suspect this is related to nodejs with modules and versions of ES, and certain packages (I could be wrong), but I will be sure to do some further learnings after finishing this tut. Thank you for the awesome content!

MrDaz
Автор

Hi Bro, Is this applicable for now? the API link URL has updated to version 2

criscarlod
Автор

Are there plans to create a video that uses Oauth 2.0 to authenticate? That would be super useful.

richardmeadows
Автор

Can you please make a video on using the basic auth instead of bearer token

mangatjass
Автор

This is exactly what I wanted to implement in my project. Thanks for this video.
Is there any documentation available for Chai and Mocha? There are few more things i need to understand before I start working.

mandarajgaonkar
Автор

Thanks for the detail video on API autoamtion i have limitied knowledge on this, but with this am able to get knowledge and able to relate to the project, tq u so much can i get the reply from u having few more doubts can i ask on api automation

manasatweets
Автор

Some times I get the error "Error: Timeout of 2000ms exceeded.". If any one get the same error just add on the end of descripe block timeout(10000).
describe('nameOfDescribe', () => {}).timeout(10000).

hasankarimjonov
Автор

Hello daljit I have doubt .
1. Why you use Babel here . Balel use for transfer ES6+ code to ES5 code for old browser but why you install and configure babel

pradeepkumarful
Автор

Hi Dilpreet
How can we rerun a specific test case if it fails because of 500 issue?

akshayhalurkar
Автор

People say that learn Java for API Automation testing most of companies use that. What should I do? Do I need to learn JavaScript for API automation orJava?

satyajitligade
Автор

I'm very new to testing, and they told me to learn more about performance, load and stress testing. What do you suggest me to do?!
Can you explain it in short terms what it is, what are the best tools to use etc... I'm more in javascript langugage. Thanks!

etrajnime
Автор

When I tried to log response body it's returning as [object, object]...But all assertion get passes

minakshifarakate
Автор

Thank you Automation Bro. Much helpful. Can you tell how can we read the JSON file in supertest and pass it to POST request body? I have a request body that has 100 lines of data. My idea is to read the JSON file from the local drive and pass it to the post command. How can we do this?

uniqueramya
Автор

Thanks for the video Dilpreet.
When I write blocks it or descripe(on vs code) there is not pasted automatically brackets or other symbvols. How to correct set up plugin?

hasankarimjonov
Автор

is deserialization of response possible in this framework? Like in Java Rest Assured.

swatikakkar