Thursday, 27 December 2012

Facing problems recording Ajax protocol

We are recording a script for an HTML application that has some Ajax elements, but some of those elements do not generate requests with protocol HTML Web and we are not able to retrieve some data using "Ajax Click and Script" protocol as well. Please provide us a eBackup link to provide you the scripts recorded.

The application that we are working at is having some issues and we are not able to fix the script that was having problems. So we are done with this case for the moment. Please proceed to close it and once the application is fixed we will raise another case.

Monday, 24 December 2012

Trouble scripting against a secure webservice that uploads files via MTOM

I am currently testing a secure webservice that uploads files to an IBM FileNet server via MTOM. The service uses two way authentication through a certificate which has been installed on the root of the machine I am scripting on.

The service is functioning when tested using SoapUI.

I have imported the WSDL using VUGEN for the service that i am testing.

I then added a call to the operation for uploading a file. I have also added the custom header with the username and password for the service.

When I run the service I am getting errors and the files are not uploaded to FileNet. Please note that I have successfully scripted against some of the other operations for same WebService, i.e. retrieve document details and this works ok so I dont think its an authentication issue that I am encountering.

From the documentation i have found so far I believe that VUGen supports MTOM. Can you advise the correct method of adding a webservice call to add an attachement via MTOM.

I will update my script as an attachement as well as the errors encountered. Not i have tried but Soap_Request and Web_service call.

When LoadRunner (LR) executes a Web Services/MTOM script it uses a Microsoft WCF router within the Load Generator machine for communicating with the Web server. This can be confirmed in the Vugen replay log. For example:

action.c(5): Web service call "Open_document_102" started
action.c(5): Creating handler
action.c(5): Searching for wcf router
action.c(5): Preparing router

The LR Controller picks up the Web Resource metrics such as "Hits per Second" and "Throughput" from the LR HTTP replay engine running on the Load Generator. However, the LR HTTP engine is bypassed in this case and these metrics are not available from an Microsoft WCF router. This explains why there is no data in the "Hits per Second" or "Throughput" graphs in the Analysis session containing a Web Services/MTOM script.

The web_add_header function can be used to specify a custom header in "simple" Web Services scripts where no scenario is specified (in the "Protocol and Security" tab in "Manage Services").

However if a scenario type is specified in the Web Services script, for example, "MTOM" is selected, the web_add_header function cannot be used to specify a custom header. This usage is not currently supported by LoadRunner.

An enhancement request has been submitted to add this capability to LoadRunner for the Web Services protocol.

Please install vugen 11 patch 3 that I have uploaded to the case FTP

the file name is: LRVUG_00015.exe

Saturday, 22 December 2012

How to record mobile applications in LoadRunner 11 patch 3

Loadrunner Mobile protocol:

With the new Mobile App (HTTP/HTML) protocol added to LoadRunner 11 in Patch 3, there are three recording options in the recording Wizard:

1.Record and Analyze Traffic - Use mobile sniffer agent to capture traffic and then analyze.

2.Analyze Traffic - Analyze traffic using existing capture file to generate script.

3.Record Emulator - Record script using a mobile device emulator.

Option 1 allows Vugen to connect to the mobile agent on the server or localhost and carry out the business process for recording.  

More information is available in the online help in:  Mobile Protocols > Mobile App (HTTP/HTML) > How to create a script by Recording and Analyzing Traffic.

Option 2 allows Vugen to scan a pre-captured network traffic (WinPcap) file and generate the code based on the traffic.

More information is available in the online help in Mobile Protocols > Mobile App (HTTP/HTML) > How to create a script by Analzying Traffic

and in Mobile Protocols > Mobile App (HTTP/HTML) > How to create a script by Analzying Traffic

Option 3 allows Vugen to record an emulator installed on the Vugen machine. With this option, you need to verify that you are able to bring up the emulator and navigate to a URL outside of Vugen to make sure the emulator settings are correct. 

More informaiton is available in the online help under: Mobile Protocols > Mobile App (HTTP/HTML) > Recording with Emulation

NOTE: The Mobile TruClient protocol is recommended for browser-based mobile applications -- Mobile TruClient protocol launches Firefox to record the business process.

Friday, 21 December 2012

Oracle nca protocol script recording issues

Oracle nca protocol script recording issues. Not recording event when java applet is being used.

The attached document Oracle NCA Vuser Guide is a troubleshooting guide for the Oracle NCA Vuser type. It covers the common problems encountered when working with this protocol.

Related articles that may be of interests:
Document ID KM170575 - How-to and troubleshooting guide for Multi Protocol (NCA/WEB) Vusers

Thursday, 20 December 2012

Web (HTTP/HTML) protocol not recording one flow in the application to be tested

We have HPSM application which needs to be tested and i am using web (http/html) protocol for recording the flows. I am able to record 5 out of 6 flows through VuGen using this protocol. but Every time one flow is getting stopped when i try to record.
I also try the same flow with different protocol like Ajax and web click and script but finding the same error, with these protocols as well.

Solution:  Make sure that the settings for Web recording are properly set
Many different reasons can cause this problem, but, most of all make sure that the settings for Web recording are properly set.
1. Are you recording against a SSL site that needs authentication? If so, you need to import the certificate to the recording machine to make sure that VuGen is forwarding the proper request to the server during recording.
   a. Go to your homepage manually.
   b. Click on the LOCK symbol on the bottom right corner of Internet Explorer window.
   c. Click on "Install certificate" and follow the screen to import the certificate onto the machine.
2. Do your need to go through a proxy to get to your homepage? If so, make sure that you set up the recorder properly. By default, VuGen changes the browser's proxy settings to localhost: 7777 and this may cause problem with your proxy.
   a. Check for the proxy information under Tools -> Internet Options -> Connections -> LAN Settings.
   b. Replicate the information into the VuGen Tools -> Recording Options -> Recording Proxy.
   c. If authentication is needed, click on the 'Authentication' button and put in your username and password. For NTLM, you can try the username and password of your machine. Otherwise, contact your Network Administrator.
   d. If the proxy needs any authentication, do not forget to specify that and select the "Restore proxy only when recording is complete" option.
3. Is your application using HTTP 1.1? If so, while recording, go to Tools-> Internet options-> Advanced-> HTTP settings and enable "HTTP 1.1 through proxy connection" once the browser is launched.
4. Sometimes, it could happen that the certificate for the site does not match the site to which the user was navigating. Netscape generally gives you a warning, but Internet Explorer may cause the above problem. If this is the case, from Internet Explorer, go to Tools -> Internet Options -> Advanced. Under Security, select "Check for server certificate revocation (requires restart)." This allows Internet Explorer and VuGen to go to the site.
5. Try to record using the multi-protocol recorder, with only web enabled. This recorder is available with LoadRunner7.51 or above and uses a different way to record comparing to the single-protocol web recorder. To record with multi-protocol recorder,
    a. Go to VuGen -> File -> New -> New Multiple protocol Script
    b. Select web from the list, click on right arrow button to add
    c. Click 'OK'
    d. On the 'Start recording' window, select 'Internet Application' on the 'Application Type' pull down menu.
    e. Specify the 'URL address' then click 'OK' to start the recording
6. The problem can be related to some applications running on the VuGen machine that interrupts Load Runner's recording mechanism. You need to find out if there is any antivirus, VPN, firewall, local proxy Spy ware or sniffer running on the machine and disable it. You can also use the application "Process Explorer" that you can download from to see what DLLs are loaded by VuGen while doing the recording. Refer to DocumentID 31731 - Troubleshooting guide for VuGen (not stable/crashes/freezes/GPF) for details of how to use process explorer.
7. If none of the above helps, try to record the application using the 'Manually launch an application" option. For further details, refer to DocumentID 13359 - Manually recording web application (setting proxy for VuGen).
Related articles that may be of interest:
Document ID 17115 -The Web Recorder is not recording any events
Document ID 23633 -Web Recorder's automatic recording is not working, no events recorded