LoadRunner8.1 study Note 3

Source: Internet
Author: User
Tags error code 0xc0000005 ftp protocol
1. Run the script recording and an IE error occurs. The Display memory cannot be written;
Answer:
Application: Mercury LoadRunner 8.1x86

Environment: Windows + IE

Scenario: start IE with LR

Tool: Process Explorer

Truth: When LoadRunner calls IE, vugen.exe(virtual user generator uploads the preconfigured iphone.exe path (set in Program to record), URL (set in URL Address), and transmits the string parameter to the CMD command, run the following command:
"F: \ Program Files \ Internet Explorer \ ipolice.exe" http://www.microsoft.com/
Open the URL webpage and record the process.

Conclusion: LoadRunner should use command lines to enable system services and processes. It seems that all third-party automated testing software adopts this policy, such as QTP. If you use a third-party tool such as LoadRunner for automated testing, it is better to have resources to write your own support database, if the company has enough resources.

Q: Why does LoadRunner always use command line (under Win), that is, shell command to start system resources? Why not use system functions directly? In fact, in windows, Shell executes a program that calls the CreateProcess Activation Program to generate a process.

Case:
1. LoadRunner can support Standalone's IE7 script recording and pass the verification on XP SP2 + IE7;
2. LoadRunner is not compatible with Windows Vista,vugen.exe (Mercury Virtual User Generator) Startup failure. The error message "Action" is irrelevant to the UAC security feature. The initial analysis is related to the current User's Temp path change;
3. Unable to record IE6/7 on Windows 2003 SP2, resulting in an error event reported by IE crashboard, iedw.exe (IE Crash Detection), error code 0xc0000005, and ie in the address 00CD4548 push 1Ah segment interrupted. The preliminary analysis is that Windows Server firewall protects ieappsdep(data, and vugen.exe is in conflict with DEP.

The reason is:
No events recorded in VuGen when trying to record an application on Windows 2003 SP1 or Windows XP SP2
Windows 2003 & XP SP2 have a DEP (Data Execution Prevention) feature which prevents VuGen recording.

Solution:
Control Panel-> System-> "Advanced" tab-> Performance section "Settings" button-> "Data Execution Prevention" tab-> add the client program(vugen.exe) in "Turn on DEP for all programs and services before t those I select" or choose "Turn on DEP for essential windows programs and services only. "and a reboot is required.

Appendix:
1. long file names or paths must be enclosed by Spaces

2. Convert the long path of the file to the short path (dos format)
[C #]
Using System. Runtime. InteropServices;

Definition:
[DllImport ("kernel32.dll", CharSet = CharSet. Auto)]
Public static extern int getaskpathname (
[Financialas (UnmanagedType. LPTStr)] string path,
[Financialas (UnmanagedType. LPTStr)] StringBuilder implements path, int implements pathlength );

Reference:
StringBuilder export Path = new StringBuilder (80 );
Int result = getaskpathname (@ "F: \ Program Files \ Internet Explorer \ ipolice.exe", using path, using path. Capacity );
String s = export path. ToString ();
MessageBox. Show (s. ToString ());

Result:
F: \ PROGRA ~ 1 \ INTERN ~ 1 \ iexplore.exe

2. Despite the above steps, the IE still fails;
Answer:

The following url is incorrect. The website has been revised and the download process is very complicated. Go to the following URL.
Http://support.openview.hp.com/selfsolve/document/KM85552? SearchIdentifier =-12507534: 11a9eaa168c:-7fef & resultType = document & documentURL = KM85552 & resultsURL =/selfsolve/patches & allowReturn = true

Then you need to register. This is free registration. Then you can download the relevant patches, and all the patches are under 8.0, not under 8.04;

Internet Explorer 7 (IE 7) support for LoadRunner 8.1 Feature Pack 4, you must first install LoadRunner 8.1 Feature Pack 4
Patch Installation
To install this patch, run LR81FP4P125.exe, available from the Patches database.
Limitations
· Some versions of JInitiator may cause IE to crash when recording the Oracle NCA protocol on IE 7 platforms.
· Cannot record the FTP protocol upload or download operations on IE 7 platforms.
· Does not support tabbed browsing.
If you record using VuGen on IE 7 platforms, then Internet Explorer will open with this feature disabled.
· The current version of Mercury Diagnostics does not support IE 7. Diagnostics version 6.5 will support IE 7.

4. basic operating principles of Linux Shell
After the system starts, the core creates a process for each end user to execute the Shell interpreter. The execution process is basically as follows:
(1) read the command line input by the user's keyboard.
(2) analyze the command, use the command name as the file name, and transform other parameters into the form required by the system to call the internal processing of execve.
The execve () function will execute a program. Execve () is used to execute the file path represented by the filename string parameter. The second parameter is passed to the execution file using the array pointer, the last parameter is an array of new environment variables passed to the execution file.
# Include
Int execve (const char * filename, const char * argv [], const char * envp []);

(3) The Terminal Process calls fork () to create a sub-process of the current process.
# Include/* contains the definition of pid_t */
# Include/* include the description of the fork system call */
Unisigned int pid_t fork (void );

(4) The Terminal Process itself uses the system to call wait4 () to wait for the completion of the sub-process (if it is a background command, it does not wait ). When a sub-process calls execve () when it is running, the sub-process searches for the relevant file in the directory based on the file name (that is, the command name) and transfers it to the memory, execute this program (explain this command ).
# Include
# Include
# Include
# Include
Pid_t wait4 (pid_t pid, int * status, int options, struct rusage * rusage );

(5) if the end of the command has a "&" (background command symbol), the terminal process does not need to call wait4 () to wait, and immediately sends a prompt, asking the user to enter the next command and convert it to "(1. If no & sign exists at the end of the command, the terminal process will wait until the sub-process (that is, the process that runs the command) completes the processing and then terminate the process. report it to the parent process (Terminal Process, at this time, the terminal process wakes up and after necessary identification, the terminal process sends a prompt asking the user to enter a new command and repeat the above process.

5. Responsibilities of the Shell
The shell is ultimately responsible for making sure that any commands typed at the prompt get executed properly. Included in those responsibilities are:
1. Reading input and parsing the command line
2. Evaluating special characters, such as wildcards and the history character
3. Setting up pipes, redirection, and background processing
4. Handling signals
5. Setting up programs for execution

3. After the patch is installed, it cannot be recorded. If an error occurs, IE is automatically disabled;
Answer: Disable Internet Explorer related Add-ons: Web Protect released by China Merchants Bank;

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.