API Testing Using Python - Requests Package
Vložit
- čas přidán 2. 02. 2021
- In this video, we will discuss how to automate API in Python using the requests package.
What is API
• How To Automate Rest A...
Official Link
requests.readthedocs.io/en/ma...
Prerequisite - Python Basics
• #1 What Is Python- Pyt...
Selenium With Python Series
• Selenium WebDriver Tut...
Official Link
selenium.dev/
Connect with us:
Linkedin- / mukesh-otwani-93631b99
Instagram- / mukeshotwani
Facebook Group- / 256655817858291
Facebook Page- / seleniumwebdrivermukesh
Twitter- / mukeshotwani
Blog- learn-automation.com - Věda a technologie
Excelent video to start doing api testing with python ! Thanks
Thank you Mukesh. Very easy and so clear.
superb Explanation Mukesh.....
Thank you for this tutorial Mukesh. It helps
Thanks Mukesh for this video, it's really helpful.
Humble request to please put a video on Request Library with Pytest Framework for API Automation.
Very easy to understand and useful.
Thanks for made a video on python API testing for us mukesh .. it's useful to us ..
Thank you, Mukesh
Amazing video. Thanks
very helpful for the overview of request lib in automation
Thanks Herbert.
Thanks Mukesh for making this video..it really helped me in understanding it ..if possible can you make on bearer token usage ..
Thanks for this video. Very helpful to understand and get started
Glad it was helpful! Thanks Bhargavi
Nice tutorial. Thanks
Very easy to understand and useful. Thank you bro👍🔥🔥🔥
Glad to hear that Thanks Dilshod
Best explaination of API testing seen so far 👍👍
Sir i need to do testing of api response with the data stored at DynamoDb. Can you help me in this or do you have any videos on this.
very clear explanation with examples .thank you
I am glad it helped you. Keep learning.
one of the best videos on Api testing 😃
Thank you Surender ji
Good 👍 one... thankyou
Super Mukesh!!!
Mukesh,Can u please share the link where u have shown how to autoate with token based API
Fantastic
nice one
Great stuff 👏👏, have you made any videos for error handling like connection error, new connection error ?
thank you very much
Really helpful. Continue the great work.
Thanks Akash bhai
Hi Mukesh , Thanks a lot for your video . Can you please tell if we can use rest assured in python ?
Great Stuff :)
Thanks Mukesh, this vedio was really helpfull.. Just have one question in validating JSON suppose i want to validate a response JSON which has student details and student id being primary key of tht data set. How can i make sure the each student id in JSON is unique ?? Right now i am converting the response JSON into dataframe and checking the uniqueness of student id column .. But is there a way to check the uniqueness of the student id at JSON level ??
What about code coverage for by those API calls. How do i do that coz request are hitting on another machine.
Hi sir, i have some doubts i am beginner to python automation testing, using python security, performance,load, stress, regression, smoke how to do?
Great video, thanks a lot sir!
Glad it was helpful! Thank you
Mukesh, some apis have authorisation how can I auth them so that “token is missing” error not show.
Thanks for sharing your knowledge.
I would like to know how to create a random data in this file json.
In your example, we can have:
"name":"XXXX"
"JOB:"random number - My question is here. How can we do it?
nice video ...easy and simple way
Thank you 😊 Bhavesh
Thank you so much 👍
You are welcome
Hi Mukesh, I want to get the entire information of the first 10 index in the response data not just json_response["data"][0]["email"] , how to get it
Hi Mukesh, can you please suggest me how to start with rest api automation testing? Which programming language should I learn? I just know bit about programming and I have interest in api automation as i can apply this my current job.
Please help me out, awaiting for your respond
Should we learn API testing with python or with java? Currently I am learning Selenium with python, I want to learn API testing but I am not able to decide which one I should learn? Can you please suggest me.
Thank you very much for this awesome tutorial. Do you have a written explanation for that tutorial?
Hi Yaseer Not yet! as of now I have only in video format.
Thanks
Thanks for very clear explanation ... 33.50 how to test with multiple set of data in json, is it same way ?
Yes
Hi Mukesh,
Please also explain the design pattern and framework using pytest and python for API automation where u can demonstrate integration tests and also mock some services. Need to learn this real thing.
Sure Arti, will do that. Glad to see your comment after long time.
Glad to see your reply. Currently I have got a project to work on api automation testing for integration tests. And the company uses tox library to mock. But I do not know ABC of this part. I have learnt a lot from ur framework videos and I would like to learn this as well from your tutorials.
This info is helpful.. thank you so much..
I have putty/super putty logs validation most of the time in my testing.. can we automate that using this
Hi Lavanya, if you can get this logs via API then you can use requests which I used in video. In case you have logs independent as file then in python you can use open method to read logs too. Here is the video
czcams.com/video/Pj2YDQw10k8/video.html
Can you please share a example of sending xml as data in POST request.
Hi Mukesh ..... developer add there dummy projects on link din and showing there work ,As automation tester ...what we do to engage our link-din network and show or project skill to recruiter
Hi Girish, We cant do anything here much but yes I noticed the same on Linkedin. We can focus more on our technical skills only and prove ourself in interviews.
how to add pre-request script of postman in python requests
Please help me in configuring maven like build tool in python
Excellent knowledge sharing video... Earlier I used postman test assertion. R & D using python is helpful. Can we use pytest framework for automating APIs?
Yes PyTest is test framework and can be used with API, Web or any kind of test. Next video I will change them to Pytest.
@@Mukeshotwani Thanks
@@Mukeshotwani eagerly waiting for this. And a big hug and thank you for making automation easy🤗 Learnt alot from you and Naveen.
Guys hit like,share & subscribe to their channels.
Hi Mukesh, Can you please make a video of API testing in PyTest Framework? Thanks in advance
Here is the video czcams.com/video/snDSB9b8v_E/video.html
Hi please upload a detailed video how can we send authentication headers with our api call and how can we save our credentials in an encoded format
Hi Pulkit, Sure I will try cover in part 2 of this video.
Hi Mukesh, thanks for the video. How can we achieve the same using pytest?
Hi Sampath, inside method you can have anything I mean API test, web test, mobile test etc.
If PUT is creating a non-existent record. Then in response we'll get createdAt or updatedAt ?
If not exist then created at and if already present then updated at.
@@Mukeshotwani TnX
How can I update dummy data in post request and the dummy not to be stored in database ?
How can I achieve it ?
Can RestAssured library be used with Python?
RestAssured is for Java. For python user its request module.
How can I implement OAuth 2 in python?
Hi Preety check this www.devonblog.com/test-automation/api-testing-using-robot-framework/
Is this one video is enough for fresher who wants to learn api testing with python
no. practice it handson
Hi Sir can do video how to send payload as pojo like rest assured in python
Hi Lakshmi, I will try to create video on this too.
@@Mukeshotwani Thank you sir
Hello Sir, Is there any contact details to place our queries
Could you please share karate framework for api testing
Hi Seema, I don't have much experience with the Karate framework. I used for POC only.
@@Mukeshotwani Thanks Mukesh for response. Can you suggest some easy material or tutorial for reference
Sir, I am stuck in the first line. my pip is not getting installed. I cant even see api project written on my terminal.
Hi mate is python configuration is done ?
Follow below video to get started with python n pip czcams.com/video/6xClFPoh3ts/video.html
@@Mukeshotwani Thank you so much for the prompt reply. i will check
@@Mukeshotwani Mukesh, I have mac. this is error i am getting on terminal: ImportError: No module named typing
Thanks Mukesh.. Its done now!!
Why should we prefer api Testing with pytest.
Really Great !!! Can we compare our json response with DB in python...
Yes Parmindar you can.
How to pass the headers?
SSL: CERTIFICATE_VERIFY_FAILED. Followed all your steps still this error.
Requests.get(url, verify=False)