We have sets of json data stored in excel file.
I'm using POI apache library and classes to call the excel specific column. And parse it as API request body.
Does postman has such feature which allow me to do the same way?
Example:
json data for POST is stored in excel column A1
At Postman test script, call the data from excel
Parse it as request body
Related
I am using Jinja Template and WeasyPrint for PDF generation.
While calling a API, I have prepared the data in the back-end and export that data into PDF file.
I want include chart(Column Chart/Bar Chart) in the pdf file. I don't know how to include chart while exporting PDF. Because the data preparation and export everything should be happened in Back-end with single API.
Thanks in Advance.
Postman let’s you upload files via multipart/form-data or as a binary. What’s the difference between these two?
Binary data
Binary data allows you to send things which you can not enter in
Postman, for example, image, audio, or video files. You can send text
files as well.
Form-data
multipart/form-data is the default encoding a web form uses to
transfer data. This simulates filling a form on a website, and
submitting it. The form-data editor lets you set key-value pairs
(using the data editor for your data.) It also lets you specify the
content type for each part of a multi-part form request individually.
You can attach files to a key as well.
When you repeatedly make API calls that require sending these files
again and again, Postman persists your file paths for subsequent use.
This also helps you run collections that contain requests requiring
file upload.
Uploading multiple files each with their own Content-Type is not
supported yet.
Good read: Postman Learning Center
I am currently testing APIs used in my tool using Postman Collections. I am able to see the current & previous results in the Recent Runs section. However there is no way to track this or export this outside postman. I would like to be able to export these results in a format such that another person without Postman can also view the results (say in a browser).
I have been using newman and the export feature in Newman which allows me to export the test results in a csv or html format.However I would like to know if such feature exists in Postman. Also where would I be able to find the program data for Postman in case I need to write a custom reporting module.
Actually there is no Feature like this in newman.
But: In Postman Runner you can export your results in a JSON Format. And In the Postman Client you can save your responses if needed.
Here's the deal: I had a excel table that fulfills a MySQL table. I already made a procedure in server side who receives the sheet, read it and put it on the database. Saddly the sheet and data table doesn't have the same structure, so I need to use a php object/script in server side to manipulate it. I have a interface to upload the file (excel file), so the PHP program can read it...
...but my boss job isn't make my life easier, is it? NO! He says that is a lot of work have to upload every excel file by the web interface. So, he asked me to make a button in the sheet that he might click after his "job" is done. That would replace the web interface.
But, the system itself is a interface that would be saled one day (well, it's the plan!). So, I just can't just role out the web interface.
WHAT I'M ASKING IS: There's a way that I could send a file (the sheet itself) in a post method straight from the VBA Macro without using XML files and name each data that I'm sending, like a form post?
So far, I've found some tutorials or even some SO posts that made me get somewhere. But all of them were talking about a XML, and I already have a method that receives a HTTP POST (from a form) and work. I aiming to reuse the same method. From my VBA script I'm already able to make the request (not a big deal) and post it. But, in the server-side script, I'm expecting a POST come out from a form, so it calls a field's name. I don't seen to be able to do that from a VBA post. =/
Here's the answer... the two first functions/methods define how to send a file to a web service. You only need the file path and the URL from service. It has answered even more than I expected. :D
I noticed recently that ELMAH has support for exporting details of an exception via JSON and XML. Out of sheer curiosity, why would anyone use this?
If I was storing my data in a SQL DB, why not retrieve the value from there? Additionally, the errors are stored in a pseudo xml format already... why export something that's already in xml to xml?
Just wondering...
The JSON and XML export features were added to enable and encourage anyone to develop a client to ELMAH using simply HTTP for access rather than relying on the choice of back-end storage. A client can be, for example, written to provide alternative and richer views (dashboards or using Ajax) in addition to the built-in ones, perform analytics, full-text search and more.
A basic client would need to take one or more “home” URLs of ELMAH deployments and build a TOC of the log. This is easily done by simply downloading the CSV off the home URL. Each record in the CSV provides a URL to the detailed entry, which in turn can be used to get the full details of an error in XML or JSON.