LR Support Tip: Issues in replay due to redirections
If your application have redirections in URLs then you might find some issues while replaying as shown below:
"Action1.c(x): Redirecting "http://xxx.xxx.xxx.com " (redirection depth=0)
"Action1.c(x): Error: Failed to connect to server..."
This happens because the redirection depth is set to zero.
There are 2 ways to change this value; one is to change the config file or using a function in your script.
The first option is mentioned below:
1. Go to the \template\qtweb directory.
2. Edit default.cfg using a word editor.
3. Locate the [web] section.
4. Add the entry for MaxRedirectionDepth.
MaxRedirectionDepth=x; where x is the number of redirections desired.
Perform the above steps for the default.cfg in script folder also.
The second option is to use the web_set_option function as shown below:
web_set_option("MaxRedirectionDepth", "4", LAST); // Sets the maximum redirection depth to 4.
Daniela Gómez Alvarado
Customer Support Engineer
If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.