cancel
Showing results for 
Search instead for 
Did you mean: 

error when importing a postman collection

SOLVED
Highlighted
Occasional Contributor

error when importing a postman collection

I tried to import a postman collection (JSON format) in SoapUI/ ReadAPI, but I encounter the following error:

 

net.sf.json.JSONException: JSONObject["requests"] is not a JSONArray

 

Can someone please help me?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Contributor

Re: error when importing a postman collection

I've encountered this today and on my end, the issue was fixed by selecting "V1" even if it says "deprecated" at Postman's export page. It seems Postman's v2.1 cannot be processed properly into SoapUI as well. For more details on the steps for fix, you can refer to this page: https://www.soapui.org/docs/postman-collections.html

 

"an Engineer without a degree, a QA tester without any official certification (just yet 😉 ) "

View solution in original post

13 REPLIES 13
Highlighted
Super Contributor

Re: error when importing a postman collection

I have imported your file which you have enclosed with the problem. Seems like, there is no problem with the JSON file. It works fine. Below is the screenshot after I imported the JSON. Try using latest version of postman.

postman.PNG

Highlighted
Occasional Contributor

Re: error when importing a postman collection

Thanks for replying. sorry I didn't mention it clearly. I mean I was trying to import the postman collection file in the SoapUI or ReadyAPI via File/Import Postman collection. Both of them give the error.

Highlighted
Occasional Contributor

Re: error when importing a postman collection

there is no problem if I directly import in Postman.

But I suppose the importing should also work in SoapUI since there is the function called "Import postman collection" in SoapUI.

Super Contributor

Re: error when importing a postman collection

This is probably a bug, Please report to the support team. I tried with different collection file also, same error is coming up for me also. Log a ticket for that.

 

 

Highlighted
Occasional Contributor

Re: error when importing a postman collection

How to report to support team?

Highlighted
Super Contributor

Re: error when importing a postman collection

Highlighted
Super Contributor

Re: error when importing a postman collection

I have raised ticket for this. 

Highlighted
Occasional Contributor

Re: error when importing a postman collection

thank you!

Highlighted
New Contributor

Re: error when importing a postman collection

Any update on this?  I have the same issue.

New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
The new challenge is here!

Create a script to сhange an XPath Match assertion to a JSONPath Match assertion for the TechCorner tag!


Scripts created in July:
- A script to generate an email when an assertion fails
- A script to change the request body before sending it to the server
Top Kudoed Authors