PyTest • REST API Integration Testing with Python

preview_player
Показать описание
In this tutorial, you'll learn how to use PyTest to write integration tests for your REST APIs (in Python).

📚 Resources

📽 Chapters

00:00 Introduction
02:58 Testing Plan
04:26 Making an HTTP request from Python
07:46 Writing our first test
12:06 Testing the Create() endpoint
19:13 Testing the Update() endpoint
23:54 Testing the List() endpoint with unique users
32:40 Testing the Delete() endpoint
36:33 Completed test suite

#pytest #python
Рекомендации по теме
Комментарии
Автор

Good day, sir! I'm getting back to some automated tests with python after, well, 4 years. I have to say - this video is a great refresher for me. Thank you.

oleksii-kozak
Автор

This is a great work! I would recommend the course to everyone and I would like to see more videos like this from the author

DilyaraGedrimene
Автор

Nice tutorial! Thank you! Got me through a tricky textbook problem.

Trackpaddin
Автор

tremendmous experience, I didn't ever seen any tutorial & clear crytsal explanation, Waiting for more videos for Automated series

blessycheriyan
Автор

This is wonderful sir
This is what I am exactly searching for to automate the API testing but I didn't find any videos except this..all the while I am thinking of markers, fixtures, parametrizing..glad my sleepless night didn't go futile..
thank you so much

entity
Автор

You are legendary for sharing this, explained simply.
Thank-you bro!!
😎👊🏾🔥💙

profyle
Автор

Really great video. Good tempo and coverage. keep Rocking it.

brendanpeterson
Автор

great video to learn and practice integration testing. Thank you so much

bactran
Автор

Great video! I'm actually struggling with testing APIs for productive systems where I can't create or delete test resources. Are you planning on doing a video with Mocking? 😇
Keep up the amazing work!

mrvknqe
Автор

I have a config.json file with a list of scenarios I wish to test, is there a way I can easily create tests for each scenario?

sherlockholmes
Автор

Great video, just wanted to check how are you getting the auto suggestion of snippets in your tests? which extension is that? Thank You.

the_s_gamer
Автор

Hey, thanks for the video, do you think designing a framework in POM design pattern is a good idea for this? I am getting confused what to put in different pages and test files as the requests are dependant on each other.

karan
Автор

I'm getting back into testing APIs and am using TestCafe with Javascript while following along with your video. Is it safe to assume the /update-task/ endpoint is incorrect in being a put rather than a patch? Also that it doesn't take in an existing task_id to update? With it being a put and no existing task to reference, we're just creating a new task, right?

JrayRift
Автор

This is awesome to watch and understand better. Can I ask you what code snippet tool you use in vscode to populate the suggestion code? TIA.

lawrencechandrasekar
Автор

Great video! The code suggestions are by copilot?

ipelezikis
Автор

Awesome content! I am data scientist working mainly with Python and PyTorch. I want to be full stack MLE, I want to be able to build applications using ML. I am wondering what I need to build end 2 end application. Which stack should I learn? Thanks a lot for your help

ml-techn
Автор

Whats the VS Code plugin that suggests "auto-complete" code after comment?

DarnastTFT
Автор

bro, I have one doubt regarding in creating sceneario u have applied put request, Im right ? but actually Is it post in that case right?

blessycheriyan
Автор

I'm stuck behind corporate firewall. I can get to the todo from browser but not via python. I tried setting proxy etc. still no dice. video looked good ut I got stuck unfortunately

clownboy
Автор

Why are we using PUT instead of the POST to create a new task?

NikhilKumar-tuiy