Quantcast
Channel: LoadRunner Practitioners Forum topics
Viewing all 3978 articles
Browse latest View live

LoadRunner TruClient - Aborted due to an error in a handler

$
0
0

Hi all,

 

I have created a script to randomly click on a link from a dropdown menu. I've created some JavaScript code to do this without using any parameters. The issue I have is that it will complete the code but on the next step it will fail due to the following message - "x ** was aborted due to an error in a handler".

 

The code I have is as follows:

 

var no=Math.random()*44;

no=Math.ceil(no);
window.alert(no); //Verify what number will be appearing (used for troubleshooting)

var Xpath = "/html/body/div[3]/div[2]/div/div[3]/div[4]/div/a["+no+"]";

evalXPath(Xpath);

 

If you are able to help me as soon as possible I would appreciate it a lot.

 

 

Thanks,


LoadRunner 12 and Windows 2003?

$
0
0

Is LoadRunner v12 able to run on Windows 2003?

 

I know the system requirements only mention windows 2008 is supported, but as we currently run v11 on Windows 2003 I'm investigating whether we can move to v12 before we upgrade windows server version.

 

Thanks.

 

 

 

 

 

Making web_reg_save_param robust

$
0
0

I am relatively new to correlation, updating existing scripts for a new release of our product.  The existing scripts extract correlation values like this one to get the value of the "name" attribute of an input tag:

 

web_reg_save_param("c_EB1", "LB=Duration (days): </span></td><td colspan=\"1\"></td><td colspan=\"1\" align=\"left\" valign=\"top\"><table cellpadding=\"0\" cellspacing=\"0\"><tr><td valign=\"top\"><input name=\"", "RB=\"", "ORD=1", LAST);

 

which depends a whole lot on all the (non-relevant) HTML between the display text and the input field tag. Any minor change in the style breaks this correlation (e.g. the cellpadding changed, a 'style' attribute was adeded, etc, and this script broke).

 

Is there some way to make this more robust against changes in the HTML? What I really want is an LB with a simple wildcard that would represent an arbitrary number of characters, e.g.

 

"LB=Duration(days): * <input name=\"

 

This seems so simple and obvious, I must be missing some easy solution...?

 

Thanks for any ideas...

Replay the Citrix LR script and always cause the LR/Citrix client crashed

$
0
0

I recorded the Citrix script for our application. Before it worked  fine yesterday when I replay.  When I replay the script today while debugging it, I always got error like Citrix client does not perform the step as LR script requested.  I forced to kill the citrix client and got error from LR as below

 

SharpDevelop Version : 4.1.0.0-00000000
.NET Version : 4.0.30319.18444
OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture : English (Canada) (en-CA)
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 267412kb
GC Heap Memory : 43147kb


An unexpected error occurred.

Click ‘OK’ to close this message. You may be able to continue working,
but note that this workflow may cause the error to occur again.
Click ‘Details’ to display technical details on this error which may help
you solve the problem, or can be used when contacting customer support.

---- Post-error application state information:
Installed 3rd party AddIns: [UTT Configuratio UI 11.50.0.0], [Debug Pad Wrapper Extension addin for UTT 11.50.0.0], [UTT Debug Basic implementation addin for UTT 11.50.0.0], [UTT File Dialog 11.50.0.0], [UTT File Dialog 11.50.0.0], [HPUttIdeCommands 11.50.0.0], [UttBookmarkPad 11.50.0.0], [UttErrorListPad 11.50.0.0], [UttOutputPad 11.50.0.0], [UttTaskListPad 11.50.0.0], [Vugen.ConfigurationUI 11.50.0.0], [VuGen Debugger addin based on UT Debugger 11.50.0.0]
Workbench.ActiveContent: HP.LR.VuGen.ReplaySummary.ReplaySummaryViewContent
ProjectService.OpenSolution: [Solution: FileName=C:\Users\x173609\AppData\Local\Temp\LRStudio\6916\Untitled.ltsln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [VuGenProject: CitrixICA]

---- Recent SharpDevelop log messages:
16:08:35.425 [23] ERROR - CloseAllClients error
--> Exception:
System.ServiceModel.CommunicationException: There was an error writing to the pipe: Unrecognized error 232 (0xe8). ---> System.IO.IOException: The write operation failed, see inner exception. ---> System.ServiceModel.CommunicationException: There was an error writing to the pipe: Unrecognized error 232 (0xe8). ---> System.IO.PipeException: There was an error writing to the pipe: Unrecognized error 232 (0xe8).
at System.ServiceModel.Channels.PipeConnection.StartSyncWrite(Byte[] buffer, Int32 offset, Int32 size, Object& holder)
at System.ServiceModel.Channels.PipeConnection.WriteHelper(Byte[] buffer, Int32 offset, Int32 size, Boolean immediate, TimeSpan timeout, Object& holder)
--- End of inner exception stack trace ---
at System.ServiceModel.Channels.PipeConnection.WriteHelper(Byte[] buffer, Int32 offset, Int32 size, Boolean immediate, TimeSpan timeout, Object& holder)
at System.ServiceModel.Channels.PipeConnection.Write(Byte[] buffer, Int32 offset, Int32 size, Boolean immediate, TimeSpan timeout)
at System.ServiceModel.Channels.BufferedConnection.WriteNow(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, BufferManager bufferManager)
at System.ServiceModel.Channels.BufferedConnection.Write(Byte[] buffer, Int32 offset, Int32 size, Boolean immediate, TimeSpan timeout)
at System.ServiceModel.Channels.ConnectionStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.Net.Security.NegotiateStream.StartWriting(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.NegotiateStream.ProcessWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
--- End of inner exception stack trace ---
at System.Net.Security.NegotiateStream.ProcessWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.NegotiateStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.ServiceModel.Channels.StreamConnection.Write(Byte[] buffer, Int32 offset, Int32 size, Boolean immediate, TimeSpan timeout)
--- End of inner exception stack trace ---

Server stack trace:
at System.ServiceModel.Channels.StreamConnection.Write(Byte[] buffer, Int32 offset, Int32 size, Boolean immediate, TimeSpan timeout)
at System.ServiceModel.Channels.FramingDuplexSessionChannel.CloseOutputSessionCore(TimeSpan timeout)
at System.ServiceModel.Channels.TransportDuplexSessionChannel.CloseOutputSession(TimeSpan timeout)
at System.ServiceModel.Channels.TransportDuplexSessionChannel.OnClose(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.OnClose(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan timeout)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System.ServiceModel.ICommunicationObject.Close(TimeSpan timeout)
at System.ServiceModel.ClientBase`1.System.ServiceModel.ICommunicationObject.Close(TimeSpan timeout)
at System.ServiceModel.ClientBase`1.Close()
at HP.Utt.DebuggerDomain.Client.UttDebuggerDomainClientFactory.CloseAllClients() in e:\LT\UTT\win32_release\11.50.132.1\src\Infra\app\UttDebuggerDomainClient\UttDebuggerDomainClientFactory.cs:line 157
16:08:35.430 [6] ERROR - The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.
--> Exception:
System.ServiceModel.CommunicationException: The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.

Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at HP.Utt.DebuggerDomain.Interface.IUttDebuggerDomain.StopDebugging()
at HP.Utt.DebuggerDomain.Client.UttDebuggerDomainClient.<StopDebugging>b__2f() in e:\LT\UTT\win32_release\11.50.132.1\src\Infra\app\UttDebuggerDomainClient\UttDebuggerDomainClient.cs:line 345
at HP.Utt.DebuggerDomain.Client.UttDebuggerDomainClient.NoFaultExceptionCall(Action action) in e:\LT\UTT\win32_release\11.50.132.1\src\Infra\app\UttDebuggerDomainClient\UttDebuggerDomainClient.cs:line 352
16:08:36.616 [1] ERROR - Unhandled WPF exception caught
--> Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ServiceModel.CommunicationException: The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.

Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at HP.Utt.Debugger.UttDebuggerImp.DebuggerCrash(Exception error) in e:\LT\UTT\win32_release\11.50.132.1\src\Infra\app\UttDebugger\UttDebuggerImp.cs:line 380
at HP.Utt.Debugger.UttDebuggerImp.<DebuggerCrash>b__4(Exception err) in e:\LT\UTT\win32_release\11.50.132.1\src\Infra\app\UttDebugger\UttDebuggerImp.cs:line 357
--- End of inner exception stack trace ---

 

 Don't know why it pointed to e: driver. I even don't have e: driver.

Any thoughts? Thanks

Loadrunner 9.1: Error -27778: SSL protocol error when attempting to connect with host

$
0
0
Hi All,

I am trying to run a Vugen script to connect to a web based application with username and password.I tried using web_set_certificate_ex () for SSL certificate but still I am getting the error
Error -27778: SSL protocol error when attempting to connect with host
Warning -26000: Empty or no response from server

I have cretaed scripts earlier also for similar web apps ,but they never required certificate function web_set_certificate_ex.

Can you help me?

Regards,
Preeti

WinSock protocol

$
0
0

I am trying to build a script for testing a python based desktop application which sends files to the server.

I have created the script after recording the actual application.

How can I send the contents of different file to the server (instead of sending the same data while recording) each iteration.

 

The code for init is 

 

/*********************************************************************
 * Created by Windows Sockets Recorder
 *
 * Created on: Thu Jan 29 02:22:11
 *********************************************************************/

#include "lrs.h"
#define SEEK_SET 0 /* beginning of file. */
#define SEEK_CUR 1 /* current position. */
#define SEEK_END 3726

vuser_init()
{
    char *recvbuf;
     int recvlen=0;
    int rc;
    lrs_startup(257);
    
    lr_start_transaction("VV_01_AMT_000_Conn_socket");

   rc=lrs_create_socket("socket0", "TCP", "RemoteHost=am-us-tos-vvsit.hughestelematics.net:15557",  LrsLastArg);
   
    if (rc != 0 ) 
    {
        lr_output_message("%s","Unable to connect to host");
        lr_end_transaction("VV_01_AMT_000_Conn_socket", LR_FAIL);
        return 0;
    }
    
    lrs_send("socket0", "buf0", LrsLastArg);

    lrs_receive("socket0", "buf1", LrsLastArg);
    
    lrs_get_last_received_buffer("socket0",&recvbuf,&recvlen);
    
    if(recvlen==53)
    {
        lr_output_message("%s","Unable to connect to host");
         lr_end_transaction("VV_01_AMT_000_Conn_socket", LR_FAIL);
        return 0;
    }
    
    lr_end_transaction("VV_01_AMT_000_Conn_socket", LR_AUTO);
     

    return 0;
}

 

for Action is

 

/*********************************************************************
 * Created by Windows Sockets Recorder
 *
 * Created on: Thu Jan 29 02:22:11
 *********************************************************************/

#include "lrs.h"


Action()
{
    char *recvbuf;
     int recvlen=0;
     int rc=0;
    char filename[100];
    char *file_contents;
    int input_file_size;
    long packetFile;
//    strcpy(filename,lr_eval_string("{P_FileName}"));
//    packetFile= fopen(filename,"rb+");
//    if( packetFile == NULL )
//    {
//      lr_output_message("Error while opening the file.\n");
//    }
//    file_contents = (char*)malloc(3726 * (sizeof(char)));
//    fread(file_contents, sizeof(char), 3726, packetFile);
//    fclose(packetFile);
    
//    lr_output_message("%s",file_contents);

        

   lr_start_transaction("VV_01_AMT_010_SendPacket");
   
//    lrs_set_send_buffer("socket0",file_contents,3726);
//    rc=lrs_length_send("socket0", "buf2",0,"Encoding=0",LrsLastArg);
    rc=lrs_send("socket0", "buf2", LrsLastArg);
    
 
    
    if(rc==WSAECONNRESET || rc==WSAECONNABORTED)
    {
        lr_stop_transaction("VV_01_AMT_010_SendPacket");
        lr_output_message("Connection Lost midway trying to reconnect Error=%d",rc);
        ConnectHost();
        lr_resume_transaction("VV_01_AMT_010_SendPacket");
//        lrs_set_send_buffer("socket0",file_contents,3726);
        rc=lrs_send("socket0", "buf2", LrsLastArg);
    }
    
       rc=lrs_receive("socket0", "buf3", LrsLastArg);
    
    lrs_get_last_received_buffer("socket0",&recvbuf,&recvlen);
    
    if(recvlen>=15)
    {
        lr_output_message("Received Buffer = %s",recvbuf);
        lr_end_transaction("VV_01_AMT_010_SendPacket", LR_PASS);
    }
     else
     {
         lr_error_message("Unable to send packet Error =%d",rc);
         lr_end_transaction("VV_01_AMT_010_SendPacket", LR_FAIL);
     }


//    lr_think_time(300);
    
    return 0;
}

 

the above line in orange sends the recorded data(i.e. a file data).

How can we send custom data from specified file??

is HP Load runner can be installed on a RHEL 6.4 server

$
0
0

is HP Load runner can be installed on a RHEL 6.4 server ?

 

Have gone through Installation deck, as per 11.5 version it can be installed on Windows and Load generator can be installed on Linux which will connect to Load runner to generate the Vusers.

Trial version doesn’t seem to work with Delphi Application

$
0
0

Hi I Downloaded this trial version but it doesn’t seem to work with Delphi Application. I get the following message (No Correlation occurrences and no script is generated) It works fine with Websites but not with Delphi application even I selected different protocols.

 

I press the record button after specifying the path of the applicaton in my c drive. The application is opened successfully but it doesnt record any clicks.

 

Does it only support Websites or can it work with Delphi applications? I didn’t see any on the Protocols list

 

Thanks


File upload is not recorded using SAPGUI protocol

$
0
0
Hi,

I am recording a scenario in Loadrunner 8.1 using SAPGUI protocol,where I need to upload a flat file in SAP-BCS.The recording stops as soon as the window for file selection opens and resumes once that window closes.The uploading of the file part is not recorded.So if I am replaying the script is stops after opening the file selection window.How to capture the uploading of a file in the loadrunner script?

Awaiting early reply.

Thanks,
Sindhu

LoadRunner 12.50 Beta Program

$
0
0

Hello everyone,

 

As valued LoadRunner customers, we would like to give you the first access to LoadRunner 12.50 beta program.

The main objectives are passing smooth installation and executing your main flows, as well as validating the new features on your environment.

The program is scheduled to start around the end of March, so an early response is appreciated.

 

If you are interested in participating in this exciting program, please send an email to plv_cost@hp.com  

Looking forward to hear from you soon.

 

PLV COST Team

saving parameter in VuGen 12

$
0
0

Hi expert,

I  am new to vugen and finding hard time to save parameter for htm response code:

I WANT TO CAPTURE VALUE 188 IN BELOW CODE AND I AM USING

 

 web_reg_save_param("num","LB=<div class=\"results-header\">\r\n","RB=\r\n            Results    \r\nfor                <b>life insurance","ORD=ALL", 
LAST );

 

Not sure why it is not getting saved.

*************************************
 <div class="results-header">
                188
                Results
for                    <b>life insurance</b>

*************************************

Compatibility of Loadrunner 11.52 and Google Chrome 39.0.2171.95 m

$
0
0

Hi team,

   I am currently trying to record a web application which runs only on Google Chrome.When i tried recording, i am unable to do it as i see nothing when the script gets generated except for transaction names.(I even tried to record google but again,i can see events increasing while recording but once the script gets generated i see no content).Can you please let me know how i should proceed further? below are the details of the LR and Chrome which i am using.

 

Application: Web Application

Load Runner Version: 11.52

Google Chrome Version: 39.0.2171.95 m

 

Thanks and regards

Nag

How long to setup LR12.02 on winserver 2012?

$
0
0

Hi,

 

We are currently running LR 11.52 on winserver2003 and planning to setup LR12.02 on winserver 2012, within the next month possibly.  We will have one controller and 2 additional servers for Load Generators.  Is this an easy setup in one day or are there going to be some gotchas ?  I have already downloaded the LR12.02 and awaiting for my 3 winserver2012 VMs.

 

Any tips to offer ?

 

Thanks

P

LoadRunner and VMware Hosted Applications

$
0
0

Can you test VMware Hosted Applications using LoadRunner? Is there any documentation you can direct me to on how to get this working?

Manually making values into a dynamic server parameter

$
0
0

First I am new to Loadrunner, but I have used Silk Performer in the past.

 

I have a web application that I was able to script in Silk Performer but I am running into the same issues with Loadrunner.

There is a call that has a very large string, in Silk Performer I had to compare the recording vs the reply and it would find the differences between the 2. I then had to manually select the entire string and parse that into a variable and then use the variable in the script and not the actual string.

 

Is this type of thing easy to do in Loadrunner?

I have been playing with the Correlation feature but it does not find this string.

 

Any thoughts or help would be great.

Thank you


You dont have a license for this Vuser type. Please cntact HP software to renew your license

$
0
0

Hi, 

I have downloaded Loadrunner free version for 50 user - version no :12.02

I am trying to use controller and the app is throwing this error "You dont have a license for this Vuser type. Please cntact HP software to renew your license"

Details of how the controller is used:

1. Site for which I have generated script is - Make my trip

2. Number of Vusers - 10

3. Load Generator - Localhost

Screenshot attached.

I have tried to run controller with other sites scripts as well but everytime it says this type of Vuser cannot be used for this liecense.

Thanks and regards, 

Shailja

Hp Load runner 11-Vugen takes too long to launch the browser resulting in browser time out

$
0
0

I have installed Vugen 11, I try recording scripts  but it takes so long to launch the browser that I get a timeout message.

 

Please help me as this is very urgent.

Waiting for reply.

Regards,

Swati

 

On each replay why does a cache file getting saved in the script folder location

$
0
0

Hi All,

 

Why does a cache file getting saved with each run into the script location (script folder)

 

the file name is something like -

 

 ccache.<username>.3696.9236

 

I doubt if it is something wrong.  or impacting the desired behaviour to pick up the user credentials from the parameter file only.

 

Note: the username and password are already parameterized.

Also, runtime settings to clear cache are off.

 

Eagerly waiting for the responses.

 

Thanks

Varun

 

 

 

Sync on text failed on agent side

$
0
0

I have a requirement where i need to validate the page with sync _on_text function in citrix protocol. I have installed the LR citrix agent (11.52.496.0) on the citrix server and using vugen (11.52.4391.0) for recording. I am able to insert sync_on_text during recording. But during replay getting warning & error message.

 

Action.c(27): Start notification arrived from the Agent, Agent version = "11.50.2216.0"

WARNING: The Citrix Agent is not the same version as the Citrix Recording Client, which is "11.52.4391.0".
You are advised to install the same version of the software on both client and server machines
Action.c(27): Error: ctrx_sync_on_text(118 , 180 , 65 , 20 , "Internet" , "*") failed. Sync on the text failed on the agent side

 

The warning message says that the agent version is 11.50.2216.0 which is diiferent than what i have installed.

 

Is this error because of the agent and vugen version  mismatch?

 

Any one faced similar kind  of issue please help me....

What are the unnecessary files need to delete in Script folder.

$
0
0

Hi,

 

We need to delete the unnecessary files in the script folder because the script folder contains 23MB data,

Which it may causes Nodata issue in BSM. So please suggest us what are the files or folder need to be delete in the script folder. This script was recorded using multi  protocol Citrix ICA and Http/HTML

 

Regards,

Praveen.

Viewing all 3978 articles
Browse latest View live




Latest Images