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?
Solved! Go to Solution.
This is what they have replied for the issue :-
Thank you for reaching out.
I tried it on my end and this seems a bug. I have logged it. Unfortunately, there isn't a workaround for this bug.
The JIRA# is RIA-6725.
I have a comment on RIA-6725. According to the documentation - https://support.smartbear.com/readyapi/docs/testing/integrations/postman.html .
ReadyAPI currently supports only v1 collections and does not support v2 collections. So, RIA-6725 was converted to improvement request RIA-6640.
I found a workaround by exporting the Postman Collection as Collection v1 (deprecated). However, authorization credentials are not imported in this way and you have to manually enter and save them in Soap UI requests.
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