Maybe anyone known how can I import postman collection into the SoapUI rest project. I just find reverse import way here: http://blog.getpostman.com/2016/04/27/importing-soapui-projects-into-postman/
May be I should import Postman collection in intermediate state(for example *.xml or *.json format) and after that import in to SoapUI?
Smartbear developed a postman plugin for Ready!API:
https://github.com/SmartBear/readyapi-postman-plugin
Since the question is specifically about SoapUI, here are a few options:
upgrade to Ready!API;
get the trial version of Ready!API and import all your collections before the trial expires;
adapt the source code from GitHub to generate a soapUI project (xml) file from the json postman export.
One thing to note, a project saved in Ready!API can be opened in SoapUI and vice-versa.
I know it's been years, but if someone has a similar problem, here is an explanation specifically for SOAPui and not by using ReadyAPI: https://www.soapui.org/docs/postman-collections.html
You also have to have the latest version 5.5 of SOAPui.
Related
How to download all the datasets in .csv, .xlsx, .json format from a website using python. I need to download thousands of files, after finding them, to my computer. Could you please help me to automate the process. The data is by city so it can be generalized for further uses.
How about Using MECHANIZE?
I would recommend you to use selenium webdriver, it will be the best way for web scraping without a limit. But you need to be more specific what you ask. If there are links to download only in one url, it is easy. But if all download links are in different url's, it will take a little time, I guess.
import selenium
from selenium import webdriver
browser = webdriver.Firefox()
browser.get(website)
browser.find_element_by_name("file_name_to_download").click()
That's it. Of course, you need to create a simple loop to click all download links one by one.
I would like to work with the Google Admin SDK and get information about our domain's email settings per user. I refer to Developer's Guide | Email Settings API
I am comfortable approaching the problem in Java, Python, and C# and all three languages have examples included in the documentation.
Where can I get all these libraries shown in the documentation?
C#
using Google.GData.Apps;
using Google.GData.Apps.GoogleMailSettings;
using Google.GData.Client;
using Google.GData.Extensions;
Java
import sample.appsforyourdomain.gmailsettings.GmailSettingsService;
Python
import gdata.apps.emailsettings.client
They are located here:
https://developers.google.com/admin-sdk/directory/v1/libraries
If you work through the Java QuickStart, these three imports aren't included and the provided quick start code won't compile.
import com.google.api.services.admin.directory.DirectoryScopes;
import com.google.api.services.admin.directory.model.*;
import com.google.api.services.admin.directory.Directory;
It seems the Java portion of this project is in need of an update.
Note the Maven and Gradle builds on the Java download page - https://developers.google.com/api-client-library/java/apis/admin/directory_v1 - show this error message:
This library is in the process of uploading to the central Maven repository. Please check back in a few hours.
I've seen that message there for a couple months now.
There are basically 2 kinds of APIs for Google Apps. The old style "GData" Atom based APIs and the new API Discovery Service compliant "Google APIs" (modern infra).
The Email Settings API is an old style GData API so you need the GData API client libraries.
The GData API client libraries are available for download from here:
https://developers.google.com/gdata/docs/client-libraries
I am attempting to follow Tutorial: Adding Facebook/Twitter/Google Authentication to a Django Application. The only thing I am doing differently is that I am running DjangoAppEngine on the Google App Engine development server, otherwise everything is exactly as per the tutorial.
When I get to Step 4 and actually try to authenticate with Facebook, I am getting a runtime error:
error('illegal IP address string passed to inet_pton',)
Request Method: GET
Request URL: http://localtest.com:8080/o/complete/facebook/?redirect_state=FG4K...UG1k
Django Version: 1.6.11
Exception Type: RuntimeError
Exception Location: /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py in _MakeRealSyncCall, line 235
Python Executable: /usr/local/opt/python/bin/python2.7
Python Version: 2.7.11
Obviously FB is passing an approval back to my app, as the request URL includes the callback path.
It appears that something in the GoogleAppEngineLauncher is trying to look up an address and is not receiving the right data in? I'm not really sure.
In trying to resolve this, I've come across a single comment somewhere suggesting to a user that SimpleAuth might be a better way to go, but I don't understand why and I'm not really sure I want to start over if I am just missing something obvious.
Does anyone know why I am getting this error and what I can do to correct it?
It happens because the Facebook SDK depends on the awesome requests library. However, requests doesn't work on Google App Engine since the platform has some restrictions. You have to use their urlfetch APIs to fetch external contents on Google App Engine.
So yes, the official Facebook SDK won't work. You have to roll your own solution or find one that works. SimpleAuth is one of the solution that is known to have worked.
UPDATE: the original answer (starting with 'HOWEVER') is no longer necessary, just use requests 2.10.0 or above, urllib3 1.15.1 or above, and requests_toolbelt 0.6.2 or above and perform the following in your main():
from requests_toolbelt.adapters import appengine
appengine.monkeypatch()
HOWEVER if you're using older versions of requests and/or urllib3, then you need the patches below:
This can be accomplished using a patched version of requests along with the requests-toolbelt package. Threads that apply:
HTTPS not working on Google App Engine #1905
urllib3 / Contrib Modules / Google App Engine
Fixes the AppEngineManager to work within the requests framework #763
Add AppEngineAdapter for GAE users #114
Adds a monkeypatch() function that ensures all Sessions use the AppEngineAdapter compatibility class. #119
I've applied all of this and now have python-social-auth and facebook-sdk working in both local test (the dev server) and production (full App Engine).
In your vendored libraries, ensure that you have requests_toolbelt. (pip install -t lib requests_toolbelt). Then "monkeypatch" appengine support before python-social-auth ever calls requests. In my project/wsgi.py, I added the following lines:
from requests_toolbelt.adapters import appengine
appengine.monkeypatch()
python-social-auth depends on requests, so it should also exist in your vendor directory.
You must also ensure you are using requests version >= 2.10.0. This has not been released yet, so you can fake it. Edit lib/requests/__init__.py so that __build__ = 0x021000. You also must upgrade the packaged version of urllib3 in the lib/requests/packages/ directory to the latest version.
This is what worked for me.
My team and I use Postman when we work on a project with a REST server.
I'm generally the one that builds out the REST server and has all the requests mapped in Postman which I export the collection and commit it in git so the rest of the team stays up-to-date and can do their own tests whilst developing the clients to consume the REST server.
I have been looking at PAW for a while and I have two questions:
Can you create a project and share it with a team which it syncs to everyone on the project OR can you export a project and put it in git which the team can import updates to stay up-to-date?
As I'm not sure if everyone in the team will out lay the money to buy the app, can you export from Paw and import into Postman?
Thanks
In response to:
As I'm not sure if everyone in the team will out lay the money to buy the app, can you export from Paw and import into Postman?
You can import your Paw requests into Postman using cURL requests.
Just make sure to grab the cURL Code Generator from the Paw Extension page, and export your cURL Request.
Then import it into Postman as shown:
Export from Paw:
File -> Export All Requests ->
You get presented a short list of already installed exporters followed by the section Available Online showing more export formats. Choose Postman 2.0. The plugin is installed on-the-fly and a JSON file is exported.
Import to Postman:
Import -> Import File ->
Drag exported JSON file into import window.
If I am not too late, you can now do all of the above using Postman Cloud.
https://www.getpostman.com/plans/cloud-basic
I have develop a simple app to learn Django rest framework and then uploaded it into Google app engine. But each time I try to access my data it shows me "no module name rest_framework". it works ok if I dont use Google App engine and stop working if I use (both local install or deploy the codes). I am using django 1.4 and using Cloud SQL. Can anyone please tell me what might be the problem?
regards
Samin
screenshot:
A bit late but might help someone else, I was also trying to get a solution for this error then I came across this link which has all the thirdparty apps, google app engine support. It doesn't have rest_framework.
So a as a solution you will have to copy the third-party library's pure-Python source code into your application's source code.
here is a solution in detail.
Hope that helps!