0

Is there a tool like Dredd (for API blueprint) that can be used with Swagger schema?

I would like to use such a tool to automate testing - have swagger schema files document my API, and then use such a tool to automate tests. The tool should have the following ability:

  • Define the endpoint (including host and port) to run the test against
  • Have descriptors or meta data for each test that define which schema file to use and what example payload to use, and what is the expected response
user229044
  • 232,980
  • 40
  • 330
  • 338
Yair Zaslavsky
  • 4,091
  • 4
  • 20
  • 27

2 Answers2

4

There's a Swagger2Blueprint converter (https://github.com/apiaryio/swagger2blueprint), you could use it to setup your workflow with Dredd and Swagger files.

manojlds
  • 290,304
  • 63
  • 469
  • 417
zzen
  • 1,259
  • 10
  • 13
  • Yes, we are considering to move out from blueprints. And I happen to find dredd a bit flaky, especially around hooks that need to populate DB entries. – Yair Zaslavsky Oct 27 '15 at 02:00
  • What exactly you mean by flaky around hooks? So we can improve it. –  Nov 02 '15 at 12:43
2

I'd suggest using SoapUI for doing so. You can import a swagger definition and create a number of tests automatically. See here for the source, and you can always download the application pre-built.

fehguy
  • 6,724
  • 25
  • 23