-
-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GlobaLeaks testing client for development #4
Comments
Following a chat on possible point "3": In GLClient/www/js/app/requests/ there are the following files: those are the data structure used by GLClient, directly specifying json objects. They get back object *.done() . |
We do not need this client to perform performances testing, but almost parallel requests need to be performed freely. actually I don't know how's the Storm behavior with parallels request. |
Yeah, but in any case that's a one off testing not part of the script itself. It can be done with: |
We are now using GLClient UI and unit-testing following a user-driven functional testing to reach a minimal alpha. |
After the recent refactoring the methods used by curtreg to generate the requests for use by emulating a globaleaks client from command line stopped working.
A Globaleaks client making request and automation is required to facilitate testing regardless of the availability of full globaleaks client interfaces and rest implementation.
The goal of the client is to facilitate the development.
Requirements:
We do not need this client for:
So, we now have 3 options:
This probably means changing the logic to hard-code data in the request.
Make scripting with command line tools such as curl or other pythonic cmdnline script like https://github.com/jkbr/httpie#json
Testing RESTful API with httpie
http://blogs.operationaldynamics.com/andrew/software/research/testing-restful-apis-with-httpie
Testing RESTFul API with curl/wget
http://blogs.operationaldynamics.com/andrew/software/research/testing-rest-the-hard-way
Javascript client can be executed from command line with phantomjs.
It can be automated with jasmine (below example of REST testing with jasmine:
http://blog.founddrama.net/2012/09/headless-javascript-testing-with-jasmine-and-phantomjs/
http://stackoverflow.com/questions/11429332/unit-tests-of-node-js-rest-services-with-mocha-or-jasmine
http://brianstoner.com/blog/testing-in-nodejs-with-mocha/
The text was updated successfully, but these errors were encountered: