Software Testing Tools LoadRunner FAQ

Source: Internet
Author: User
Tags requires time and date time interval

1.LoadRunner recording script why not pop-up ie browser?

When multiple browsers are installed on a host, LoadRunner recording scripts often encounter situations in which browsers cannot be opened, which can be resolved in the following ways.

Start the browser, open the Internet Options dialog box, switch to the Advanced tab, remove the "Enable Third-party browser extensions (requires restart)" Check, and then run Vugen again to solve the problem

Tip: Usually install Firefox and other browsers, will check the above options, resulting in the normal recording. Therefore, it is recommended to run a clean test environment on the LoadRunner winner Machine.

2. When you record a Web script, how do you solve the garbled script that is generated?

Before recording the script, open the Recording Options Configuration dialog box Record-options, go to the Advanced tab, First tick "Support charset" and then select Support UTF-8. Recording again, there will be no Chinese garbled problem.

What's the difference between a 3.html-based script and a url-based scripts?

The script is recorded in the mode of "html-based script", and Vugen generates a separate step for each HTML action of the user, which looks more intuitive; When you record a script using "url-based script" mode, Vugen can capture all HTTP requests sent to the server as the result of a user action, and then generate a corresponding method for each request of the user.

Typically, browser-based Web applications use "html-based script" mode to record scripts, without browser-based Web applications, Web applications that contain Java applets that interact with the server, browser-based applications include Javascript/vbscript code that communicates to the server, and HTTPS security protocols are used in browser-based applications, and recordings are performed using "url-based script" mode.

4. Why was the check method Web-find added to the script, but the script was not executed when it was replayed?

Because the checkpoint function consumes a certain amount of resources, LoadRunner turns off checking text and images by default. To turn on the check feature, you must modify the runtime configuration Run-time Setting.

Go to the Run-time Setting dialog box, and then go to Internet protocol→preferences and check the "Enable Image and Text check" option under checks.

It is recommended that you use the Web_reg_find method when checking execution results.

5. What is the main effect of the pacing setting at run time?

Pacing is primarily used to set the interval between repeated iteration scripts. There are three methods: Start immediately after the last iteration, wait for a fixed time after the end of the last iteration, and start the new iteration at a fixed or random interval.

You can set the iteration according to the actual needs. Usually, there is no time interval that creates greater stress.

6. When the log tag is set at run time, if "Enable logging" is not checked, can the manual message be sent?

The Enable logging option affects only automatic logging and messages sent through Lr_log_message. Even if no check is made, the message sent by the virtual user script is still logged if you use Lr_message, Lr_output_message, and Lr_error_message.

The 7.LoadRunner 8.0 version of Vugen is all right while recording the script for the Web Services protocol, and the replay times out of error prompts "Error:server returned an incorrectly formatted SOAP Response ". That explains why?

The main reason for this is that the Vugen of LoadRunner 8.0 has a flaw in recording Web service protocol scripts: if the server's operating system is in Chinese, Vugen automatically changes the header of the WSDL file so that it has the error prompt above.

Solution: The "Lr80webservicesfpi_setup.exe" and "Lrunner_web_sevices_path_1.exe" two patches can be resolved.

Does 8.VuGen support Netscape's customer certificate?

Not supported. The current version of Vugen 8.0 only supports client certificates for Internet Explorer. When you record a script, you can export the required certificates from Netscape, import them into Internet Explorer, and ensure that the certificates are exported and imported in the same order. Also, repeat the previous procedure on each computer that will record or run the Web VUser script that requires the certificate.

Does 9.VuGen modify the proxy settings in the recording browser?

will be modified. When you start recording a browser-based web VUser script, Vugen starts the specified browser first. Vugen then instructs the browser to access the Vugen proxy server. To do this, Vugen modifies the proxy server settings on the recording browser. By default, Vugen changes the proxy server settings to localhost:7777 immediately. After recording, Vugen restores the original proxy server settings to the recording browser. Therefore, the proxy server settings cannot be changed during Vugen recording, otherwise it will not work properly.

10. How does the LoadRunner script output the current system time?

LoadRunner provides a char *ctime (const time_t *time) function that invokes a long integer pointer that holds the numeric representation of the return time.

The call statement and the return value are as follows:

typedef long time_t;

Action ()

{

time_t T;

Lr_message ("Time in seconds since 1/1/70:%ld", Time (&t));

Lr_message ("System Time and Date:%s", CTime (&t));

}

The output results are:

Time in seconds since 1/1/70:1185329968

System time and date:wed June 25 10:19:28 2007

11. Some Web virtual user scripts are replayed immediately after playback without any problems, but when the number of iterations is set to greater than 1 o'clock, if playback is performed, only one iteration can be successful. Why did the error start at the second iteration?

This is mostly due to the "simulate a new user on each iteration" and the following options "clear cache on" in the "Browse emulation" setting of "Run-time Setting". Teration "The meaning of these two options is to simulate a new user every iteration and clear the cache each iteration.

Because Init and end can only be executed once for script iterations, if each iteration simulates a new user and clears the cache,

The user logon information is cleared together, so an error may occur during the iteration.

12. What is the difference between the threads in the virtual client script "Run-time Setting" and how the process works?

If you select Run VUser as a process, the scenario runtime creates a procedure for each virtual user, and select Run VUser as thread to run each virtual user as a thread. See only one Mmdrv.exe in Task Manager, this way is more efficient and can create more pressure when the default option.

In addition, if IP spoofing is enabled, first select "Expert mode" under the Tools menu in controller and then "Options>general" under the Tools menu The IP address assignment in the tab page is also set to match the way VUser runs, either as a thread or as a process.

13. When running a web-related test scenario in controller, there are often a number of timeout errors, and how do you deal with such problems?

This is primarily caused by the default timeout setting for the script. When playing back web scripts, there are times when the server response time is longer and a timeout error occurs. You need to modify the Run-time configuration of the script.

After entering the Run-time Setting dialog box, go to Internet protocol→preference. Then click the "Options ..." button and go to the Advanced Settings dialog box to modify the default values for various timeout settings.

14. Why is the CPU, memory, and so on in the Windows system still sufficient, but the number of simulated users is not up?

Under the standard settings for Windows computers, the default limit for operating systems is only hundreds of VUser, which is independent of CPU or memory, primarily because the operating system itself sets the default maximum number of threads. To break windows this limit, you need to modify the Windows registry. Take Windows XP Professional for example.

(1) After opening the registry, enter the following keywords in the registry key HKEY_LOCAL_MACHINE: Systemcurrentcontrolsetcontrolsession Managersubsystems.

(2) Locate the Windows keyword, as shown in the following Windows keywords:

%systemroot%system32csrss.exe bjectdirectory=windows

sharedsection=1024,3072,512 Windows=on subsystemtype=windows serverdll=basesrv,1

serverdll=winsrv:userserverdllinitialization,3 serverdll=winsrv:conserverdllinitialization,2

Profilecontrol=off maxrequestthreads=16

The SHAREDSECTION=1024,3072,512 keyword is formatted as xxxx,yyyy,zzz. where XXXX defines the maximum value (in kilobytes) of the system-wide heap, YYYY defines the size of each desktop heap.

(3) Change the setting of yyyy from 3072 to 8192 (i.e. 8MB) and increase the SharedSection parameter value.

By making changes to the registry, the system will allow more threads to run.

As a result, you can run more vuser on your computer. This means that the maximum number of concurrent users that can be emulated will not be restricted by the Windows operating system, but only by hardware and internal scalability constraints.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.