API Testing using Python - Write Test Case - POST Request

preview_player
Показать описание
✪✪✪ API Testing using Python - Write Test Case - Write Test Case - POST Request ✪✪✪
In Python we use requests library for REST API Testing
➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
✪✪✪ 90% Discounted Coupons for Full Course ✪✪✪
🌟 Roadmap for Python Automation 🌟
➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖

🌟 Robot Framework - Python 🌟
➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
API Testing using Python video | How to Write First API(POST REQUEST) Test Case using Python programming with requests library

✪SUBSCRIBE & Click Bell to get resgular updates of Testing World✪

Pre-requiste :
✍Install Python
✍Install Pycharm
✍Install Robot Framework
✍Create Project on Pycharm
✍Create Python file

** REST API Testing Introduction using Python**
Write Python Code to send a POST Request
Send JSON Content in Request Body
Display Status Code coming in Response
Display response body content

POST Request : POST method (in REST API) is used to Add new data to the application

✪Install Request Module, Json and Json Path module
✪Here we are going to make a POST Request of Rest API
✪Whatever response we are going to get, Store that response in a variable
✪Display Status Code
✪Display Response Content


You can get lifetime access to all 30+ Video courses (Selenium, JMeter, SoapUI, Python and many more) in RS 7000/- Only.
✆Call or WhatsApp now at +91-8743-913-121


✪✪✪ Robot Framework - API Testing ✪✪✪

#API Testing #Python Automation #API Automation #TestingWorld #Robot Framework

✪✪✪ Check out the video playlist here ✪✪✪

Robot Framework – Python: All Video Course Links

Robot Framework: All Video Course Links ✪✪✪

API Testing using Postman: All Video Course Links

Thank you for watching the videos. Please subscribe to our channel Testing World!
Happy Learning!
Рекомендации по теме
Комментарии
Автор

Hi. Thank you. the video was helpful. One thing I always do is instead of importing jsonpath, I do read the json (loads) format in the form of dictionary object in order to obtain any values in the response. (key-value pairs)

vaibhavponkshe
Автор

Very nice video.. Could you plesae explain how to pass dynamic value in Json body? Thanks

vandana
Автор

Good i use bulk data into same json file and import with this code, because i have to check my APi with lot of data with different scenarios

MalegaonDiary
Автор

Thanks for an amazing video! I've built a restAPI using python Flask and tried to test POST request however keeps on giving me `response Error 500` I am running Flask server locally and sending POST request locally.

haneulkim
Автор

Hi, Nice Videos. Can you explain me how to create a file in the project and call the file from the project instead creating it in your local folder.

haripriyameruva
Автор

Where do you put the token that you already have? and connect to destination

channels.mylove
Автор

Do we always have to read from file, when using POST and PUT ? if not how else we can use it?

amarrookie
Автор

when i write the code in post method i am facing issue in commandprompt "collecting 0 items" when i checked in the database there is no call happening to this particular store procedure

swaroopgarlapati
Автор

Hi, could you help what I do wrong? It is exactly what you did in video but is an Error :Traceback (most recent call last):
File "C:/Users/vladv/PycharmProjects/pr1/com/qa/seleniumsessions/POST_request.py", line 11, in <module>
request_json = json.load(json_inpt)
File "C:\Users\vladv\AppData\Local\Programs\Python\Python36\lib\json\__init__.py", line 296, in load
return loads(fp.read(),
AttributeError: 'str' object has no attribute 'read'

Process finished with exit code 1

vladv
Автор

You just cannot test an api sending data. This way your api will get full of dirty. Use mocks man

leniedor
visit shbcf.ru