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

  Рет қаралды 69,268

QA Box Let's Test

QA Box Let's Test

4 жыл бұрын

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 - groups/27997...

Пікірлер: 37
@srinivasvaranasi6474
@srinivasvaranasi6474 Жыл бұрын
Can we upload file along with json data using multipart-form
@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 kzfaq.info/get/bejne/g52fmcSlmMCtZKc.html
@devid-oi1tt
@devid-oi1tt 5 ай бұрын
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
@satheesh.jayabalan
@satheesh.jayabalan 3 жыл бұрын
Hi, I have some 20 files that needed to be uploaded. Can I parameterize using json file ?
@QABoxLetsTest
@QABoxLetsTest 3 жыл бұрын
Yes. Watch Part 10. kzfaq.info/get/bejne/gtmedqWVtJnem6s.html
@kashmirtechtv2948
@kashmirtechtv2948 5 ай бұрын
But what about multiple files and work from our app?? What about headers configuration then??
@niharikadeshmukh3914
@niharikadeshmukh3914 3 жыл бұрын
Can we submit attachment in parameter or parameter in body a?
@QABoxLetsTest
@QABoxLetsTest 3 жыл бұрын
Please watch kzfaq.info/get/bejne/gd6TpamjstnJeps.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 kzfaq.info/get/bejne/gtmedqWVtJnem6s.html for making your request data driven.
@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.
@myk4229
@myk4229 3 жыл бұрын
How to write multipart file upload test script in postman,could you please share the code for file upload tests.
@QABoxLetsTest
@QABoxLetsTest 3 жыл бұрын
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
@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.
@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
@nassreddineltmaddah2544
@nassreddineltmaddah2544 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.
@nassreddineltmaddah2544
@nassreddineltmaddah2544 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?
@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.
@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 ??
@bhaswanthgudimella6954
@bhaswanthgudimella6954 3 жыл бұрын
Can we send video in post request
@QABoxLetsTest
@QABoxLetsTest 3 жыл бұрын
Yes, like on KZfaq. Videos are usually large and developers create streams to upload these. In api docs you will find how to setup such requests.
@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 kzfaq.info/get/bejne/g52fmcSlmMCtZKc.html
POST form-data file upload + JSON
4:18
Valentin Despa
Рет қаралды 159 М.
Part 6 - Postman - HTTP PUT AND DELETE
4:23
QA Box Let's Test
Рет қаралды 1,1 М.
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 35 МЛН
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 197 МЛН
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 6 МЛН
Gym belt !! 😂😂  @kauermtt
00:10
Tibo InShape
Рет қаралды 16 МЛН
Part 11 - Rest Assured - PUT Request
16:52
QA Box Let's Test
Рет қаралды 930
Java Is Better Than Rust
42:14
ThePrimeTime
Рет қаралды 130 М.
Part 15 - Rest Assured - JSON Schema Validation
12:49
QA Box Let's Test
Рет қаралды 2,6 М.
Part 12 - Rest Assured - PATCH Request
13:51
QA Box Let's Test
Рет қаралды 1,1 М.
Economist fact-checks Scott Galloway’s Anti-Boomer TED Talk
26:05
Money & Macro
Рет қаралды 46 М.
How To Access Any Forked GitHub Repositories Data
9:31
Mental Outlaw
Рет қаралды 42 М.
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,9 МЛН
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 2,2 МЛН
Лазер против камеры смартфона
1:01
NEWTONLABS
Рет қаралды 705 М.