Scenario Get

Repeatedly call a specific URL and report timing and check the response code.

See Scenario overview for a list of all scenarios.

Steps of the scenario

  1. Call the URL provided via the on the CLI with HTTP GET and check the status code to be 200.

See the source code at Get.scala for details.

Running an example scenario

Prerequisites

  • Target URL known.

Running the scenario

The following scenario runs with the default settings for 30 seconds.

See Configuring benchmarks for additional CLI options.

bin/kcb.sh \
  --scenario=keycloak.scenario.basic.Get \
  --basic-url=http://localhost:8080/ \
  --log-http-on-failure