Skip to content

Test Plan

Renaud Subiger edited this page Mar 17, 2022 · 3 revisions

List test plans

List all test plans available in the application.

GET /rest/jmeter/test-plans

Response

Status: 200 OK
[
  "demo_test_plan",
  "ehrbase_load_test_data",
  "ehrbase_tp_01",
  "ehrbase_tp_02",
  "ehrbase_tp_03",
  "ehrbase_tp_04",
  "ehrbase_tp_user_scenario"
]

Upload a test plan

Upload a test plan in the application using multipart/form-data. It a test plan with the same identifier already exist, the existing file is overridden with the new one.

POST /rest/jmeter/test-plans

Response

Status: 201 OK
Location: http://localhost:8080/webtester/rest/jmeter/test-plans/demo_test_plan

Download a test plan

Download a test plan from the server.

GET /rest/jmeter/test-plans/{id}

Response

Status: 200 OK
Content-Disposition: form-data; name="attachment"; filename="demo_test_plan.jmx"
Content-Type: application/xml

Start test

Start execution of the given test plan.

POST /rest/jmeter/test-plans/{id}/start

If the test plan defines some properties, values must be provides using a key-value map like:

{
  "protocol": "http",
  "host": "localhost",
  "port": 8081,
  "threads": 1,
  "rampUp": 1,
  "loopCount": 10
}

Sample

Status: 202 Accepted
Location: http://localhost:8080/webtester/rest/jmeter/test-executions/3976ce4f-117b-4c1a-8f63-5ecce9dbac2c

Table of Contents

Clone this wiki locally