[Source Translation] Web

xiaoxiao2021-03-06  50

Web_url (); steps contain thinking time, even if there is no specified case.

Solution:

Even if you don't specify your thinking time, the system will automatically specify the think time for the web_url ("default.asp" step.

This step will be paused in 10 seconds when replaying the thinking time is enabled. Ignore the thinking time allows it to access it immediately.

In Analysis If the included Time option in the filter is selected, you can see the thinking time in the results.

The following is the details of the service request:

"When running scripts in some cases, LoadRunner will join its own thinking time. One of them is when receiving a 401 error. When the requested cookie setting is incorrect, sometimes the application server will return 401 errors. LoadRuner Once it receives this error message, it will wait for 10 seconds and reclaim the resources. This LoadRunner will send the correct cookie to the server to access. "

"The 401 error presence requires the site to run normal. It works like this. The first time I request a URL or return URL with a new session. The server needs to authenticate or specify a session ID for this URL or specify a session ID, so Will set a cookie information at the wrong request clock. Then you will reclaim it, this time is a valid cookie, then the server sends the information you requested. "

"If you don't return 401 errors, you can't generate a new cookie. If you don't have new cookies, you cannot access the server."

"Here we want to do this is to let LoadRunner immediately resend the request without waiting for 10 seconds. In order to achieve this, please add the following statement in the default.cfg file under the script folder:"

Retry401thinktime = 0

"After setting up, run the script again from Vugen or add it to a new scene or remove it in an existing scene, and then run after re-requested resources, wait for 10 seconds."

转载请注明原文地址:https://www.9cbs.com/read-82597.html

New Post(0)