Skip to main content

Shared Data Server - Clear All

This Eggplant Performance Test Controller REST method clears all keys and values in the Shared Data Server.

note

For this method to work, Shared Data Server must be running on the same machine as the Test Controller REST server. This is usually accomplished by enabling the Start the Shared Data Server at the beginning of the test option on the Test View > Shared Data Server tab in Studio.

URL

/test_controller/api/1.0/shared_data_server/clear_all

HTTP Method

POST: Clears all keys and values in the Shared Data Server

warning

Unlike the other methods (Get, Set, Increment, Decrement), this method will clear all shared variables and shared lists in Shared Data Server.

POST Data Parameters

None

Response Parameters

ParameterTypeDescription
InfoStringA message to confirm that all keys have been cleared (removed).

Example Request

http://localhost:5001/test_controller/api/1.0/shared_data_server/clear_all
POST Data
{}

Example Response

{
"Info": "All keys have been cleared (removed)"
}