Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Common problems and Solutions of loadrunner

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

LoadRunner monitoring windows system "network path not found" problem solving

1 ensure that monitored windows system servers turn on two services

Remote Procedure Call(RPC) and Remote Registry Service

2 Management Tools-> Local Security Policy-> Security Options-> Network Access: Local Account Sharing and Security Mode: Access Mode changed to "Classic" mode, so that you can log in as administrator

Second, LoadRunner recording script does not pop up IE browser?

When multiple browsers are installed on a host, LoadRunner recording scripts often encounter situations where browsers cannot be opened. The following methods can be used to solve this problem.

Start the browser, open the Internet Options dialog box, switch to the Advanced tab, uncheck the "Enable third-party browser extensions (restart required)" box, and then run VuGen again to solve the problem.

Tip: Usually after installing Firefox and other browsers, the above option will be checked, resulting in abnormal recording. Therefore, it is recommended to keep a clean test environment on the host running LoadRunner.

III. When recording Web scripts, there are garbled characters in the generated scripts. How to solve this problem?

Before recording a script, open the Record-Options configuration dialog box, go to the Advanced tab, check "Support charset" first, and then select Medium Support UTF-8. Record again, there will be no Chinese garbled code problem.

If the non-UTF-8 encoded web page is set to Tools ==》 Recording Options ==》 Advanced check Support Charset and select UTF-8.

You should uncheck UTF-8 and re-record the footsteps.

What is the difference between HTML-based script and URL-based script?

Write scripts using the "HTML-based script" mode, where VuGen generates separate steps for each HTML action the user takes, which looks intuitive;

When you record scripts using URL-based script mode, VuGen captures all HTTP requests sent to the server as a result of user actions and generates methods for each user request.

Browser-based Web apps typically record scripts using the HTML-based script mode, whereas web apps that do not have a browser, web apps that contain Java applets that interact with servers, browser-based apps that contain JavaScript/VBScript code that communicates to servers, and browser-based apps that use HTTPS security protocols record scripts using the URL-based script mode.

5. The check method Web-find was added to the script, but it was not executed when the script was played back.

Because checkpointing is resource intensive, LoadRunner turns off checking text and images by default. To enable the check function, you must modify the run-time configuration Run-time Setting.

Enter the "Run-time Setting" dialog box, go to "Internet Protocol→Preferences" in turn, and check the "Enable Image and text check" option under Checks.

The web_reg_find method is recommended for checking execution results.

VI. In the Log tab of runtime settings, if "Enable logging" is not checked, can manual messages be sent?

The Enable logging option affects only automatic logging and messages sent via lr_log_message. Even if not checked, virtual user scripts that use lr_message, lr_output_message, lr_error_message will still log messages sent by them.

How does the LoadRunner script output the current system time?

LoadRunner provides char *ctime(const time_t *time) function, the call parameter is a Long type integer pointer, used to store the return time numerical representation.

The following is an example of the invocation statement and return value:

typedef long time_t;

Action()

{

time_t t;

lr_message("Time in seconds since 1/1/70: %ld\n",time(&t));

lr_message("System time and date: %s",ctime(&t));

}

The output is:

Time in seconds since 1/1/70: 1185329968

System time and date:Wed Jul 25 10:19:28 2011

VIII. What is the difference between threads and processes in the virtual client script "Run-time Setting"?

If "Run Vuser as a process" is selected, a process will be created for each virtual user when the scene runs; if "Run Vuser as a thread" is selected, each virtual user will be run as a thread, and only one mmdrv.exe will be seen in the task manager. This way is more efficient and can cause more stress. This is the default option.

In addition, if IP spoofing is enabled, select "Expert Mode" under the Tools menu in Controller, and then set the IP address allocation mode in the "Options>General" tab under the Tools menu to be consistent with the Vuser operation mode, which is also thread or process mode.

Error -35061No match found for the requested parameter... "

Add the function web_set_max_html_param_len("999999") in front of the parameterized function web_reg_save_param_ex; then run it twice to send the email successfully, and prompt the same error on the third run, and report this error after increasing the length.

Cause: The left and right boundaries are incorrectly selected during association. After re-recording the footsteps, re-associate the solution. Refer to LR Manual Association http://www.example.com for the association method. gtest.blog.51cto.com/5191200/1575798

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report