It validate everything. From rest call to dbvalidation to system commands to unit tests. Just almost everything.
Just defined the request, with all entries eg url, method, body, headers then after execution, debug the response.
Yes, can pipe the sessions. So that you can pass the session variables to another execution.
allrounder -p=pipeFile.json myfile.json
You can re-use a component (set of test cases) in a number of test suites. So you don't have to write same test case everywhere. Plus when its to modify, its a single place change.
It uses templist engine to resolve the variables at run time.
You can chain a set of variables from one test case to another and even on other test suite
You can setup the various assertions with easy to use jsonpath syntax, as all the results are always available as json format.
As you provide json file for your test cases and all sort of configurations, allrounder supports purely data driven approach.
You can fetch the json file from remote server as well.
You can loop through a set of array or number for single or batch of test cases
Execute a request right on command line, with the simplest format
allrounder -e [method] https://myrestcallurl?withquery=parametersifany [<JSON-stringified-headers-or-jsonfilepath>] [<JSON-stringified-paylaod-or-jsonfilepath>]
dbin test and provide a
dbconfig, and payload in request entry.
commandin test and provide a payload as string of complete command in request entry.
requireas which file to require,
methodas which method to test,
payloadas the arguments to pass,
asyncto instruct if the call is async or not,
constructorto tell if we are creating a new instance and so on.
Say you want to do REST validation, db validation, also want to do unit testing, and also want to execute system commands, you don't need to hunt for various different tools, just go for
allrounder. Its an all in one tool.
You can provide jsonpath syntax to debug very specifically what you want to debug
You can setup condition based execution for any test case, with the property
conditionwhich is evaluated dynamically.
Internally it uses mocha to display the results and diff beautifully on command line.
Its easy to understand a json file rather lines of code. So keeping data in jsonfile is always a smart choice. Yes, when it comes to utility functions in rare advance cases, it requires a little learning. But anyways the positive side is the freedome of customization.
Don't you think that being programming language independent is good move.
$ npm install [-g] allrounder
A very general usage is below. There are many more other options available.
$ allrounder my-json-file.json $ allrounder my-json-dir
Sorry folks. Haven't got much time as of now. If you want to initiate, please feel free to contact me or raise a PR.