Plan to build API Explorer

Problem Statement: How to test API?

Example: Java JAR file is having Math library. How to test it without coding?

As of today I don’t know any tools, who provide UI to test jar files. If you know anything, please let me know.

I had seen people used XUL to build tools.

Using XULs is one option.

Another option is using JSON.

Provide API exploring option by reflection on all interfaces. Provide two text areas.

1. Provide data in the form of JSON. App provides skeleton.

2. Get the data, form the input params, instantiate class and pass them.

3. Get the result and convert it back to JSON and display in bottom text area.

If it is web based, it is very useful to teams to try the API from single deployment.

-o-

These are all ideas….don’t have time to implement.

Reference:

http://en.wikipedia.org/wiki/XUL

https://developer.mozilla.org/en-US/docs/XUL

http://googletesting.blogspot.com/2012/08/testing-googles-new-api-infrastructure.html

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s