The following procedure describes how to find the link defined by the searchID
and page
parameters in the previous response. It will also allow you to dynamically play back the searchID
value during playback.
searchID
and page
.
drop-down list, change the HTTP request type from Manually define the request to Follow a link from the previous request.href
HTML tag. If this is not the case, click on the Change the referrer button and select the correct referrer.Server
and Path
combination points to the link in question. Here, you are telling NeoLoad to search for a link whose URL points to the selected server and specified path, such as <a href="http://jack:9090/loadtest/simple-search/index.jsp"..>..</a>
searchID
. Next, click on the option box The parameter must be present, whatever its value.<a href="http://jack:9090/loadtest/simple-search/index.jsp?page=2&searchID=.."..>..</a>
http://<jack>/loadtest/simple-search/index.jsp
, whose page
attribute is "2" and having a searchID
attribute (whatever its value), and dynamically inject it during the test.Path
expression, /loadtest/simple-search/index.jsp
in the example, also may be dynamic, its value being generated by your application each time the link is requested. In this case, you must tell NeoLoad to extract the value from the response and re-inject it before requesting the URL. If the link path is dynamic, click Regular expression and use the appropriate regular expression to indicate which path to extract. This may simply be .*
if there are no other links with the same parameters.Server
used by the request may also be dynamically generated by your application. In this case you must create a server manually, configuring the server host name with a regular expression that matches the server name. Then, you must set the server for this request to the server you have just created.