Auto generate and run tests using swagger/OpenAPI spec, no coding needed
Meqa generates and runs test suites using your OpenAPI (formerly Swagger) spec in YAML. It makes REST API testing easy by generating useful test patterns - no coding needed.
There are two steps. * Use your OpenAPI spec (e.g., petstore.yml) to generate the test plan files. * Pick a test plan file to run.
The commands are: * mqgo generate -d /testdata/ -s /testdata/petstore.yml * mqgo run -d /testdata/ -s /testdata/petstore_meqa.yml -p /testdata/path.yml
The run step uses petstoremeqa.yml, which is a tagged version of the original petstore.yml. * Search for meqa in petstoremeqa.yml to see all the tags. * The tags will be more accurate if the OpenAPI spec is more structured (e.g. using #definitions instead of inline Objects) and has more descriptions. * See meqa Format for the meaning of tags and adjust them if a tag is wrong. * If you add or override the meqa tags, you can feed the tagged yaml file into the "mqgo generate" function again to create new test suites.
The run step takes a generated test plan file (path.yml in the above example). * simple.yml just exercises a few simple APIs to expose obvious issues, such as lack of api keys. * path.yml exercises CRUD patterns grouped by the REST path. * object.yml tries to create an object, then exercises the endpoints that needs the object as an input. * The above are just the starting point as proof of concept. We will add more test patterns if there are enough interest. * The test yaml files can be edited to add in your own test suites. We allow overriding global, test suite and test parameters, as well as chaining output to input parameters. See meqa format for more details.
For more details see the docs directory.