Skip to content
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

Extend Iridium to support API testing #102

Open
mcasperson opened this issue May 3, 2017 · 1 comment
Open

Extend Iridium to support API testing #102

mcasperson opened this issue May 3, 2017 · 1 comment

Comments

@mcasperson
Copy link
Contributor

mcasperson commented May 3, 2017

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
Copy link
Contributor Author

This functionality would most likely be done in a seperate JAR that is imported into customised builds of Iridium: https://dzone.com/articles/extending-iridium-with-custom-step-definitions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant