Diagnostics Test Hub
Click any action to generate test data in RuntimeIQ. Each trigger is an actual HTTP request — open the Dashboard to see results in real time.
△ Exception Generators
NullReferenceException
Dereferences a null string to simulate a null-ref bug.
GET /Diagnostics/ThrowNull
Trigger
ArgumentException
Throws when a required parameter is out of range.
GET /Diagnostics/ThrowArgument
Trigger
KeyNotFoundException
Accesses a missing key in a dictionary (missing entity pattern).
GET /Diagnostics/ThrowNotFound
Trigger
ApplicationException
Simulates a downstream service failure (payment gateway).
GET /Diagnostics/ThrowApplication
Trigger
OverflowException
Checked arithmetic overflow on int.MaxValue + 1.
GET /Diagnostics/ThrowOverflow
Trigger
KeyNotFoundException (MVC)
Requests a product ID that doesn't exist via a real controller action.
GET /Products/Details/9999
Trigger
InvalidOperationException (MVC)
Checkout on a non-existent order throws in OrdersController.
GET /Orders/Checkout/9999
Trigger
⏱ Latency Generators
Slow Action — 650 ms
Controller action with a 650 ms Task.Delay simulating an external call.
GET /Diagnostics/SlowAction
Trigger
Very Slow Action — 1500 ms
Simulates a heavy report generation or large data export.
GET /Diagnostics/VerySlowAction
Trigger
N+1 Query Pattern
Loads 30 orders then queries each product individually — 31 SQL round-trips.
GET /Diagnostics/NplusOneQuery
Trigger
Slow About Page
HomeController.About adds a 720 ms delay for a regular MVC page.
GET /Home/About
Trigger
Checkout Delay — 950 ms
OrdersController.Checkout simulates a payment gateway round-trip.
GET /Orders/Checkout/1
Trigger
◯ Slow SQL Generators
3-Way Cross-Join Count
Runs a cartesian product of all products with themselves (100³ = 1M rows) to force a query exceeding the slow threshold.
GET /Diagnostics/SlowSql
Trigger
Product Search (LIKE)
LIKE query across Name and Description with an eager-loaded orders JOIN.
GET /Products/Search?q=item
Trigger
Product Detail + Orders JOIN
Loads a product with all related orders via an EF Core Include (JOIN).
GET /Products/Details/1
Trigger
⇆ HTTP Dependency Generators
Each action makes an outbound HttpClient call to httpbin.org. RuntimeIQ's HttpDependencyObserver intercepts these and logs them to the Dependencies panel.
Fast Dependency
GET httpbin.org/get — completes well under the 500 ms slow-dependency threshold.
GET /Diagnostics/HttpDependencyFast
Trigger
Slow Dependency — 2 s
GET httpbin.org/delay/2 — exceeds the slow-dependency threshold, flagged in the dashboard.
GET /Diagnostics/HttpDependencySlow
Trigger
Dependency Error — 500
GET httpbin.org/status/500 — simulates a failing downstream service returning an HTTP 500.
GET /Diagnostics/HttpDependencyError
Trigger
▲ System Stress Generators
These actions spike CPU or memory so the SystemMetricsCollectorService background poller captures elevated readings in the Health panel.
CPU Spike — 3 s
Runs prime-sieve loops across all CPU cores for 3 seconds, driving CPU utilisation to 100 %.
GET /Diagnostics/CpuStress
Trigger
Memory Spike — 100 MB / 2 s
Allocates 20 × 5 MB chunks (100 MB total), holds them for 2 seconds, then releases and calls GC.
GET /Diagnostics/MemoryStress
Trigger