Answered question

Validation on Page with 'Dynamically execute the page resources'

I have a page whose 'resources' keeps changing and hence opted for 'Dynamically execute the page resources'. Now the question is how to validate something from the last resource that has been downloaded?
For instance, I have a page which 'sometimes' gets redirected to another page. I would like to validate something on the redirected page and take my future course of steps accordingly.

Sreenivasan S.
Sreenivasan S.

Sreenivasan S.

Level
0
71 / 100
points

Do you get the "random" redirection after the first request under that dynamic page?

You could configure your first request that is doing the first redirection with the "automatic redirection" option. That will disable the next redirection and NeoLoad will be able to follow any dynamic number of redirections.

If you put your validation on that request it will be apply on the last redirection executed. Be careful in a check virtual user NeoLoad will only display the last response that is not a redirection. That means you will not see the intermediate redirection responses but only the last HTTP 200 response from the server.

That option can be set in the request Advanced parameters -->Advanced settings tab.

Did you find this useful ?

No (0)

Yes (1)

100%

100% of users found this answer useful

Other answers

Sreenivasan S.
Sreenivasan S.

Sreenivasan S.

Level
0
71 / 100
points

Hi Nouredine
I presume you are referring to the Advanced Tab of the particular request (Attaching the page for confirmation 'AdvancedSettings.JPG).
How is it different to 'Dynamically execute the page resources' on the Page level setting (Attached DynamicallyExecutePageResources.jpg).

These two functionalities are completely different. The dynamic resources option is to retrieve automatically the resources under the page like css, images, Js etc...whereas the "automatic redirection" is to tell NeoLoad that we can have dynamic number of redirection.

For example in your script you may have one request and a second one that is configured to follow the redirection of that first request.

So the script is expecting only one redirection. If you have 2 redirections the script will not work since it's not expected. That "automatic redirection" option is here to handle such situation where you can have dynamic number of redirections (one or many).