I’ve built a GAE app using the User API.
I’ve built some Selenium test apps that login by manipulating the browser to type in the username and password, that works fine.
I’d like to build a command line python app (most likely using the Requests library) to do more performance/scalability testing of some APIs that are behind the login. How do I login with a custom, non-browser client?
Is it simply a matter of submitting a form to https://accounts.google.com/ServiceLoginAuth while keeping track of all the cookies?
You can use the
HttpRpcServerclass provided ingoogle.appengine.tools.appengine_rpcto make authenticated requests against your AppEngine app. It keeps track of the cookies for you.