Timeslots (Create, Get all timeslots)

Description

Adds a timeslot or retrieves a list of existing timeslots.

URL

/LoadTest/rest/domains/{domainName}/projects/{projectName}/timeslots

Remarks

Body of the request should contain a resource folder description in xml or json format.

HTTP Method

POST: Creates a timeslot.

GET: Returns the timeslots in the body of the response.

Request

Headers:

One of:

Cookies:

LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie};

Request Body:

POST: An XML containing the timeslot reservation.

GET: No request body.

Fields that can be used in the request body during timeslot creation:

Element Description
StartTime The UTC date and time (in hours and minutes) that the timeslot starts.
DurationInMinutes The duration of the timeslot (in minutes).
Description A description of the timeslot.
Name Name of the timeslot.
Demands

The type of demands for timeslot creation. Can include:

  • ControllerDemandManual. Fields include: HostID (mandatory), IsLoadGenerator (optional)

  • ControllerDemandAutomatic. Contains no fields; any host can be allocated as a Controller.

  • LoadGeneratorDemandManual. Fields: HostID (mandatory)

  • LoadGeneratorDemandAutomatic. Fields: HostsToReserve (mandatory), LocationID (optional)

VusersNumber The number of Vusers requested for the timeslot.
VudsNumber The number of VUDs that are defined in the linked test.
PostRunAction The action to be taken when the test run is complete.
LoadTestInstanceID Enables you to link a performance test instance to the timeslot.
IsTestAutostart The linked tests or test sets automatically start running at the start of the timeslot, without any manual intervention (true/false).

Response

Headers:

One of:

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes

HTML Body:

GET: Returns the data on the entity in the response. See Timeslot XML.

See Also

Timeslots (Delete a timeslot)
Timeslots (Check availability)
Timeslot XML