Skip to content

Add a delay executor for configurable millisecond waits #810

Description

@authorjapps

Implement a DELAY executor that pauses execution for the requested number of milliseconds. This will allow test scenarios to wait for a specified duration before continuing.

Example scenario configuration:

{
  "name": "delay_3_sec",
  "url": "util://DelayExecutor",
  "method": "DELAY",
  "request": 3000,
  "assertions": {
    "status": "Success"
  }
}

Java class should looks like this:
'''
public class DelayExecutor {

public static Map<String, Object> DELAY(Long millis) throws InterruptedException {
    Thread.sleep(millis);
    return Map.of("status", "Success", "delayMillis", millis);
}

}
'''

Acceptance criteria:

  • The executor waits for the requested number of milliseconds.
  • It returns a result containing status: "Success" and the requested delayMillis.
  • The result can be used by scenario assertions.
  • Invalid delay values and interruption are handled consistently with the project’s existing executor conventions.

Activity

  1. jaya232 commented on Nov 6, 2026

    @jaya232

    Hi, thanks for the detailed report. I'd like to work on this issue.

  2. authorjapps commented on Nov 6, 2026

    @authorjapps
    OwnerAuthor

    Hi, thanks for the detailed report. I'd like to work on this issue.

    Assigned to you now @jaya232

    And thanks for picking this promptly

  3. jaya232 commented on Nov 7, 2026

    @jaya232

    Hi @authorjapps , thanks for assigning this to me. I see another PR (#813) has been opened for it, so I'll step back from this one to avoid duplicate work. Please feel free to unassign me.

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions