In NeoLoad, the search process for generic dynamic parameters is entirely automated. It allows NeoLoad to search for the dynamic parameters in an application and to modify the scenario accordingly, without using predefined rules.
When the test scenario is recorded, NeoLoad records all the HTTP/S requests sent by the browser to the server. During this recording, NeoLoad also records the current value of all the parameters sent by the browser to the server.
When searching for dynamic parameters, NeoLoad plays back the scenario to find the dynamic parameters present. In each request played back, NeoLoad looks for the corresponding link or form in the previous server response. If the link or form exists, it indicates that all the parameters have remained unchanged between the recording and the moment NeoLoad replayed the scenario, so there are no dynamic parameters for the request. If the link does not exist, it indicates that a parameter value probably has changed between the recording and the time NeoLoad played back the scenario. NeoLoad therefore analyzes the server response to find which parameter value has changed and configures the scenario to handle that parameter.
Depending on the case, NeoLoad uses either variable extractors on the dynamic parameters or link/form extractors to handle dynamic parameters.
An interesting example may be an application containing the dynamic parameter
id computed by the server and added as a parameter to a page links. The links in the server response look like this:
id is dynamic, it has a different value when executed by each Virtual User. After recording the page, NeoLoad creates a request that includes the parameter value at the time of recording:
During a dynamic parameter search, NeoLoad fails to find this exact link in the server response. However, it will find an identical link with a new value for parameter
id. Consequently, NeoLoad offers to manage this dynamic parameter in your scenario:
Once the suggested changes have been applied to the scenario, the amended definition of the request concerned by this dynamic parameter will be:
In this amended definition, NeoLoad has changed the request manual definition into a Link Extractor by setting the parameter
id as a dynamic parameter (value
<MUST BE PRESENT>). Furthermore, NeoLoad will place the value of this dynamic parameter into the variable
id when the scenario is run so the variable can be used later on in the scenario.