Write your first API test using JavaScript

preview_player
Показать описание
Support this channel by buying me a cup of coffee ☕️ -

#api #test#automation
How to write your first API test using JavaScript, in this video we will be learning just that.

🔗Video Resources:

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

# Timestamps:
0:00 - Write API Test using JavaScript
00:40 - Get token from the test site
1:10 - Which API to automate?
2:00 - Base test setup
4:35 - Write API Test
9:40 - Fail our test
11:30 - Handle async behavior
13:30 - Wrap up

You can check out my content here as well:

Thanks for watching :)

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

if you have '/public/v2/' and still fail this test, change this part to '/public/v1/' or expect(res.body). The v2 doesn't have the property "data" anymore.

kirilllyamzin
Автор

Thank you for your videos!

I am currently looking for knowledge and videos like yours!

Is there further videos that I can buy and learn from them.

I am QA Lead and I want to learn more and more JS and how to write API automation tests.

Thank you!

dechev
Автор

Awesome Tutorial. You are amazing teacher. thank you so much

smitsneh
Автор

wonderfull videos and great explanation. thanks

geethamaddirala
Автор

Great lesson! Great teacher! Thank you!
PS To answer your question: before that I used REST Assured with Selenium. I like do it with JavaScript!

tester
Автор

I have an application, need to capture API calls for each request in FE and need to compare API response with FE values, I am using webdriver IO framework for FE automation, after googling I found Intercept service plugin for the same, do you have any videos to implement this?

krupamohreddy
Автор

Great 👍. and best tutorial ever. Please can you do tutorial on Jest api testing 🙏

kaziyiola
Автор

my .mocharc.yaml file is givving me error. I created another project but still the same...
Incorrect type. Expected "object". do you have any idea what the problem is?

aktar
Автор

Hi how to type in message textbox using javascript


Element.innerHTML="Hi"
Button.click()


But click button doesnt work

(in textbox of Linkedin)

harshchauhan
Автор

Hi,

I have configured everything as it's explained in the video. For ES6, I have configured babel setup like you explained. However i still get "
SyntaxError: Cannot use import statement outside a module".
Not sure why.

One different thing i noticed is, The mocharc.yaml file is having '!' exclamatory icon for me, I could see in ur video it is having mocha logo for you. Wondering if there is something wrong with my configuration.

Pls help

indhunataraj
Автор

Great tutorial. I have one doubt which key board command you are using to get entire describe code and it code automatically.

hemanthsaibommuluri
Автор

Really useful playlist, thank you! Can you please share with Azure pipeline integration. Much thanks!

vishalis
Автор

I don’t see where is “/public-api/“ I have “/public/v2/“

NahianAhmed-uj
Автор

and my terminal I see "SyntaxError: Cannot use import statement outside a module"

aktar
Автор

the code does not run. until i run
npm install supertest --save-dev

saeedkhan
Автор

Great tutorial.
I am getting Error: unable to get local issuer certificate. can you please help me on that

nalamarusivasankar
Автор

Thankyou for the Tutorial👍🏽👍🏽.

I followed the tutorial and tried to run the test ...But I am getting error 'Self signed certificate in Certificate chain' . Can you help?

sajeevrajendran
Автор

Thank You for the awesome course. I just have some issue due to which cannot use this knowledge for now. TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters

iranamiriyeva
Автор

Why not use Postman? Why should I use this instead of Postman?

Zdrfk
visit shbcf.ru