IridiumApplicationTesting icon indicating copy to clipboard operation
IridiumApplicationTesting copied to clipboard

Extend Iridium to support API testing

Open mcasperson opened this issue 7 years ago • 1 comments

Iridium has a fairly comprehensive dialect for testing web applications, and there is some discussion around the possibility of extending this to support API testing.

To support API testing, we will need the following steps:

  • Requesting HTTP endpoints with the various HTTP verbs (GET, PUT, POST, DELETE, maybe others), dealing with headers
  • Building request bodies with templates that can access alias variables (Freemarker could easily access the alias table as a model)
  • Checks for response codes
  • Checks for response headers
  • Checks against the XML or JSON responses (maybe just schema validation?)
  • Extraction of XML or JSON values into aliases (XPath and JSONPath)
  • Authenticated requests (deal with schemes like OAuth and AWS request signing?)
  • Deal with SSL certs, as a lot of APIs being tested will have self signed certs

mcasperson avatar May 03 '17 06:05 mcasperson