Server-Sent Events are a technology for providing push notifications from a server to a browser in the form of DOM (Document Object Model) events. The Server-Sent Events EventSource API is standardized as part of HTML5.
After the recording, a User Path with the HTML5 Server-Sent Events (SSE) technology is displayed as follows.
Once processed by the NeoLoad Post-recording wizard, the User Path is modified as follows.
NeoLoad brings the following changes:
/loadtest/html5/sse_long_events.jsp. The request is included in a while action, for example
polling_while, which iterates until the
NL-stopPollingvariable generated by NeoLoad switches to
true. Also, the while action is itself in a secondary execution thread with the fork action, for example
push_fork. For more information, see Polling requests.
NL-stopPollingvariable, with the
falsevalue, to have the polling function work on every Virtual User iteration.
polling_delaypolling delay is extracted from the polling response. When the server sends a reconnection order, the variable is extracted. Otherwise, the default value is 3 seconds. The delay simulates the timeout between two requests.
stop_pollingvariable modifier makes it possible to stop the polling loop by changing the value of the