Skip to content

[Issue #810] Add configurable delay executor - #814

Open
Shitanshu686 wants to merge 2 commits into
authorjapps:masterfrom
Shitanshu686:feature/delay-executor
Open

Shitanshu686 wants to merge 2 commits into
authorjapps:masterfrom
Shitanshu686:feature/delay-executor

Conversation

@Shitanshu686

Copy link
Copy Markdown

Summary

Implemented a configurable Delay Executor that allows test scenarios to pause execution for a specified duration in milliseconds.

Implementation

  • Added DelayExecutor and DelayExecutorImpl.
  • Introduced DELAY_CALL API type.
  • Added routing for util://DelayExecutor.
  • Integrated delay execution into the scenario runner.
  • Registered the executor using Guice dependency injection.
  • Added validation for null, empty, non-numeric, and negative delay values.
  • Preserved thread interrupt status when execution is interrupted.
  • Added JSON response containing status and delayMillis.
  • Updated README documentation.

Example

{
  "name": "wait_for_100_ms",
  "url": "util://DelayExecutor",
  "operation": "DELAY",
  "request": 100,
  "assertions": {
    "status": "Success",
    "delayMillis": 100
  }
}

Tests

  • Added 6 unit tests covering successful execution, zero delay, invalid inputs, and interruption handling.
  • Added an integration test for Delay Executor execution.
  • Added API type routing tests.

Test Results: 19 tests run, 0 failures, 0 errors, 1 skipped.

Closes #810.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a delay executor for configurable millisecond waits

1 participant