March 15, 2020
We are excited to announce API Simulator version 1.6! It brings new features that make API Simulator more powerful and easier to use than ever:
- The API Simulator’s DSL (Domain-Specific Language) now allows for modeling more than one possible response for the same simlet. Whereas before it was required to define new simlets for small variations of a request, it is now possible to have those variations configured in one simlet.
- Added support for Rate Limiting and configuring response for rate limited request.
- Added support for selecting a response based on Random Sampling to simulate a percentage of the request/response exchanges failing. For example, returning “503 Service Unavailable”.
- Support for simulating unexpected closing of the connection: always or randomly, right away or after outputting certain number of bytes.
- Request Sampling for returning different responses based on the Request Sequence Number for a simlet.
- Fixed Rate Request Sampling for returning different responses for the selected requests.
- Added type conversion to an array for parameter values. That also fixed a problem with auto-converting URL query string parameters to an array of “dateTime” values.
- The size of responses over HTTP/2 is now captured in the Access Log.
- The response size in the Access Log is now the body size only for both HTTP/1.x and HTTP/2. Before, for HTTP/1.x, it was including the size of the status line and header fields as well. This now is more aligned with standard HTTP access logs.
- Adjusted the default memory size to 256MB. That can be changed up or down as needed.
- Added in the Linux startup script “-Djava.security.egd=file:/dev/./urandom” JVM argument for using non-blocking random generator.
- Upgraded several of the libraries API Simulator depends on to their latest versions.
Simulating disruptions, creating chaos, injecting faults…whatever you call it – API Simulator now supports various new disruptions in addition to simulating latency and/or returning status code that denotes a fault.
As usual, the documentation has more details on the new and modified features.
We invite you to learn more about API Simulator, download and install it, and run the examples included in the download. Why not even create API simulations to help your own testing and development?
Let us know what you think at [feedback at APISimulator.com]. Many thanks for your interest and support!
Happy API Simulating!