Тёмный

Part 5 - Postman - Http Post (JSON Body And File Upload) (Raw and Multipart Formdata) 

QA Box Let's Test
Подписаться 9 тыс.
Просмотров 70 тыс.
50% 1

In this video we are making POST request with : -
1. Request Payload - Normal Object/ JSON Document (Content-Type Header equal to application/json)
2. Request Payload - Complex Object - JSON Document and File (Content-Type Header equal to multipart/form-data)
If you like this video, please subscribe to this channel if not already subscribed and press bell icon to receive notifications everytime I upload a new video.
JAVASCRIPT
• JavaScript Tutorial fo...
FRAMEWORK, ASSERTION, REPORT
• JavaScript Testing Fra...
ELEMENT LOCATOR
jQuery -
• jQuery - find UI eleme...
CSS SELECTOR
• Learn CSS Selectors (i...
XPath
• Master XPath for UI Au...
Nodejs Basics • Nodejs Basics
WEB & API CONCEPTS
Important API Testing Concepts - API TESTING 101
• Important API Testing ...
Cypress Tutorial - : • Cypress Tutorial - Web...
join me on facebook - www.facebook.c...

Наука

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 37   
@srinivasvaranasi6474
@srinivasvaranasi6474 2 года назад
Can we upload file along with json data using multipart-form
@kashmirtechtv2948
@kashmirtechtv2948 8 месяцев назад
But what about multiple files and work from our app?? What about headers configuration then??
@devid-oi1tt
@devid-oi1tt 7 месяцев назад
I want to upload a file along with a requestbody. Is there any way?
@krishnareddy3044
@krishnareddy3044 Год назад
Is this possible to pass ci. Yml file remotely with the curl command
@work3501
@work3501 2 года назад
reminder: For S3 presigned URL, you need to use "put" instead of "post"
@abhiksingh1999
@abhiksingh1999 3 года назад
Hello, Could you send the link or tell me the methods, how to upload the files in postman (Which you have already discussed here) but how they stored in the drive using the WebAPi
@QABoxLetsTest
@QABoxLetsTest 3 года назад
I've also created a similar api system. You can find the same here github.com/qaboxletstest/demo-api-testing Also, you can refer to this video as well to know more about this api system ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-M7ofat3ZI4s.html
@satheesh.jayabalan
@satheesh.jayabalan 4 года назад
Hi, I have some 20 files that needed to be uploaded. Can I parameterize using json file ?
@QABoxLetsTest
@QABoxLetsTest 4 года назад
Yes. Watch Part 10. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-LsnCBdO3zkw.html
@niharikadeshmukh3914
@niharikadeshmukh3914 3 года назад
Can we submit attachment in parameter or parameter in body a?
@QABoxLetsTest
@QABoxLetsTest 3 года назад
Please watch ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-KxcrFrMseJg.html In this you would see how this file attachment is managed internally by postman within the collection. So, if you do like so then you too can do it. And watch ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-LsnCBdO3zkw.html for making your request data driven.
@srishtishirgavi1316
@srishtishirgavi1316 3 года назад
Can I use the endpoint url you have mentioned, to upload an image/video? If not then how can I find some online server which exposes endpoint to upload image?
@QABoxLetsTest
@QABoxLetsTest 3 года назад
I've shared another rest api on GitHub for practice purpose github.com/qaboxletstest/demo-api-testing And from the following video you can see how it is set up ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-M7ofat3ZI4s.html
@dhruvijiyani7531
@dhruvijiyani7531 3 года назад
Thanks for this video. How do I Automate File upload API collection in POSTMAN ?
@QABoxLetsTest
@QABoxLetsTest 3 года назад
In part 21 and 22 I've talked about test cases. Kindly visit the same.
@TiaDzn
@TiaDzn 3 года назад
How can I understand the key:value combination in the payload? Thanks
@QABoxLetsTest
@QABoxLetsTest 3 года назад
A payload is an object which contains set of key and value combinations. A key represents a property which is a noun and value of that key is adjective. So we can say every key is a combination of noun and adjective.
@mounikreddypeddy1945
@mounikreddypeddy1945 3 года назад
Thanks for the session, but ur missed to show api code i searched for it
@QABoxLetsTest
@QABoxLetsTest 3 года назад
This api code isn't hosted publicly. But I've another api code shared on GitHub for practice purpose github.com/qaboxletstest/demo-api-testing
@LowgicYes
@LowgicYes 3 года назад
hello how to do that with an application like burp suite
@QABoxLetsTest
@QABoxLetsTest 3 года назад
Good question, however that is related to security testing of APIs. Postman is for doing api automation testing. Having said that, you can setup a proxy in such a way that your security testing tool intercept this request and then you can take it forward. Give it a try.
@LowgicYes
@LowgicYes 3 года назад
@@QABoxLetsTest Thanks for the great answer bro,I am testing a bug bounty program,and I need to upload a file with the json format with post request any advices?
@myk4229
@myk4229 4 года назад
How to write multipart file upload test script in postman,could you please share the code for file upload tests.
@QABoxLetsTest
@QABoxLetsTest 4 года назад
I've created two separate videos on tests, part 21 and 22. Those are applicable to both multipart and normal post since both are APIs only at the end of the day. Hope that helped
@crazyworld_2.078
@crazyworld_2.078 3 года назад
how to send both image and data in postmon
@QABoxLetsTest
@QABoxLetsTest 3 года назад
It's stays as multipart ... For file I selected file...right..for text you just leave it to default... Add 2 rows as default and one row with file selected from the dropdown
@gurpreetsingharora8018
@gurpreetsingharora8018 3 года назад
Hi can you please help me out, how can I upload JSON data and image at a single post request. for example { "name":"Gurpreet", "age": 25 "profileImg": }
@QABoxLetsTest
@QABoxLetsTest 3 года назад
It's stays as multipart ... For file I selected file...right..for text you just leave it to default... Add 2 rows as default and one row with file selected from the dropdown
@gurpreetsingharora8018
@gurpreetsingharora8018 3 года назад
@@QABoxLetsTest Ok I understood. But in my web api controller data is not bind when I user [FromBody], but when I use [FromHeader] its works fine. Now in my requirement I have 19 Properties and 2 image upload. Should I use FromHeader? Is it best practice to send lots of data via https header ??
@RohitSingh-ko2cz
@RohitSingh-ko2cz 3 года назад
i trying to send form data to datbase and postman status is successful but data is not sending.
@QABoxLetsTest
@QABoxLetsTest 3 года назад
If the status is successful and data haven't reached database, it sounds like a bug to me in API. To cross check you can use other tools like axios or Restassured and confirm whether the issue is in API under test or the way you have set up your request in postman. Also, at times we set the request properly but forget to change the method to post from default get.
@rohitrockytgaming8966
@rohitrockytgaming8966 3 года назад
@@QABoxLetsTest i m trying to send image file and in database i create file column and buffer datatype .it's right?
@QABoxLetsTest
@QABoxLetsTest 3 года назад
In database we store files as blob.
@bhaswanthgudimella6954
@bhaswanthgudimella6954 3 года назад
Can we send video in post request
@QABoxLetsTest
@QABoxLetsTest 3 года назад
Yes, like on RU-vid. Videos are usually large and developers create streams to upload these. In api docs you will find how to setup such requests.
Далее
V16 из БЕНЗОПИЛ - ПЕРВЫЙ ЗАПУСК
13:57
How Many Twins Can You Spot?
00:17
Просмотров 22 млн
File Uploads - with Django REST Framework!
32:39
Просмотров 4,5 тыс.
Postman Api Testing Tutorial for beginners
16:45
Просмотров 39 тыс.
File upload as JSON base64 encoded
11:45
Просмотров 30 тыс.
#15 Spring Web Http methods GET and POST
20:55
Просмотров 22 тыс.
Cómo pensaba que sería el iPhone 16 😭
0:12
Просмотров 1,9 млн
Заказал Li 7 из Китая
0:59
Просмотров 129 тыс.