HTTPS settings

Updated at:

For PTS load tests, you can configure the cyclically reset SSL state option and the SSL protocol in the HTTPS settings section of the advanced settings.

Enabling cyclically reset SSL state more realistically simulates user access to your backend service, but adds performance overhead to the agents. We recommend using this option with source IP extension. The SSL protocol setting lets you select a protocol version, such as TLSv1.3.

Cyclically reset SSL state

For HTTPS load tests, you can choose whether to reset the SSL connection state for each loop of a serial link. This setting controls whether the SSL context is reset between multiple API requests. By default, the state is not reset. If you enable this option, the load testing engine re-initializes the SSL state at the start of every loop in the serial link. This means a new SSL context is configured for each iteration, which allows you to more accurately simulate scenarios where each loop represents a different virtual user. However, enabling this option adds performance overhead to the agents.

Use cases

  • Scenario 1: You want to run an HTTPS load test that simulates 100 users logging in and then continuously accessing the system.

    In this case, each loop of the serial link simulates the actions of the same virtual user.

    You should set this option to 'No' and set the concurrency to 100.

  • Scenario 2: You want to run an HTTPS load test that simulates 100 new, unique users accessing the system at any given moment over a 5-minute period.

    In this case, each loop of the serial link simulates the actions of a different virtual user.

    To ensure a realistic simulation, you should set this option to 'Yes' and set the concurrency to 100. Because enabling this option adds performance overhead to the agents, we recommend expanding the number of agent IPs. For details, see Expand Agents.

SSL protocol

In an HTTPS load test, the connection begins with an SSL handshake between the client (the agent) and the server. The client informs the server of the highest SSL protocol version it supports. The server then selects the highest commonly supported version for the connection. The SSL protocol that you configure here is the highest SSL version that the client supports. PTS currently supports TLSv1.2 and TLSv1.3, with TLSv1.3 as the default.

Note

The SSL protocol used during a load test is negotiated between the load testing engine and the server. The 'SSL protocol' option in the advanced settings does not guarantee which protocol is ultimately used; it only indicates the client's preferred protocol.

The following table lists SSL version support for common browsers.

Browser

TLSv1.3 versions

TLSv1.2 versions

Chrome

70 and later

29 and later

Safari

14 and later

7 and later

Edge

79 and later

12 and later

Firefox

63 and later

27 and later

IE

Not supported

11

To simulate newer clients, we recommend selecting TLSv1.3. Conversely, to simulate older browser clients, we recommend selecting TLSv1.2.