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

Problems with WCF Windows Web Services over nettcp bindings with callbacks in LR 12.02 and 12.50

$
0
0

I'm hitting a nettcp based WCF Service using LR VuGen 12.02 and Web Services protocol by importing the WSDL of the Service.

After composing a request and trying to send it, I'm getting the following error. which actually works fine from the WPF Client but fails from the LR VuGen Script

    Action.c(16): Error:The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:59:59.9949990'. 
Error: An existing connection was forcibly closed by the remote host 

Server stack trace: 
   at System.ServiceModel.Channels.SocketConnection.ReadCore(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, Boolean closing)
   at System.ServiceModel.Channels.SocketConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
   at System.ServiceModel.Channels.DelegatingConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
   at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper& timeoutHelper)
   at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper& timeoutHelper)
   at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
   at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
   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.WcfRouter.IUniversalContract.Send(Message message)
   at HP.WcfRouter.WcfRouter.DoRequestInternal(Boolean isOneWay, Dictionary`2 context)
Action.c(16): Error:InvokeMethod failure: External component has thrown an exception..
Action.c(16): Error:ExtractResultArg failure: Object reference not set to an instance of an object..
Action.c(16): Error:Web service call "GetTopicsByUserID" execution failed

I have tried out many suggestions relevant but with no luck For your reference: Increasing Timeouts and maxItemsInObjectGraph and many more such posts on StackOverflow such as Socket Connection Aborted-StackOverflow post

 

I have posted this on StackOverflow and James Pulley replied back but I'm not able to build a custom solution using Visual Studio as it is very complex

Can you please let me know if LR VuGen 12.02 is compatible with nettcp binding and callbacks and if yes how to fix the issue

 

This is how I configured the Security settings based on the WSDL Description 

AdvSettings_ManageServices_00.jpg

AdvSettings_ManageServices_00.jpg


Create Dynamic Request in Load Runner

$
0
0

Hi all,

 

We are in need to develop a load runner script that dynamically create request based in a initial request.

 

By example, there is an initial request which brings some data from the web server and we need to use the content of that response to dynamically create multiple request with different body.

 

In more detail the example will be, the initial request will bring a list of material for instance 10 and the client parse the list and it will trigger 10 request one for each of the materials retrieved from the initial request, which part of the body of this request will contain the material number to retrieve the data from the backend

 

If the list of materials changes from the initial request the number of request will change.

 

The web application handle this using JS and we need to simulate the behavior in load runner.

 

If somebody can provide me some pointers, it will be great.

 

Thanks in avdance,

 

Zareh 

TruClient Parameter from Site

$
0
0

Hello,

 

Is is possible to set a parameter from values on a page that TruClient navigates to?  I have a page with the following:

 

FirstName

LastName

Email

GUID

 

All are input boxes.  I want to pull the values from these boxes and write them to a parameter.

 

Any help is appreciated.

 

Thanks!

Cody-

Difference between VTS and parameterization ?

$
0
0

Could anyone please explain the difference between VTS and parameterization?

How can I integrate VTS in Performance center?

Salesforce scripting issue

$
0
0

When I try to record Salesforce.com, lots and lots of requests are missing. I’m using Fiddler to take those request, anyhow why context is missing. Using LR 12.

Trueclient script replay get successful even after changing credentials

$
0
0

Hi All,

 

I have recorded my script in trueclient script in VuGen successfully and works fine.

 

but I am observing the strange behavior of VuGen.

 

I have change the password of the user with which script is recorded and my script still runs and shows Login and logout transaction successful.

 

how is that possible, how should I investigate this.

 

The login transaction should get failed when the password of the user is changed in application.

 

Please help!

 

Regards,

Hanumant

LoadRunner 12.50 Webinar

$
0
0

Hi All,

HP Software RnD conducts a webinar on the new and exciting features of LoadRunner 12.50 release

The webinar will take place on October 27th.  To register simply email us with the subject “LR Webinar” to PLV_COST@hp.com

 

For more details, please see the attached PPT file.

 

Looking forward to seeing you,

PLV customer oriented RnD

Which protocol supports ePOS application in Load runner

$
0
0

Dear All,

 

Does anyone have any idea which protocol we can use for Performance testing for ePOS applications.

 

I have to do performance testing for an ePOS application. Any comments is appreciated.

 

 

Regards,

Rony.


TruClient Business Process Report

$
0
0

Hello all,

 

I have two questions to the Business Process Report with the TruClient Script:

 

1. Is there a way to rename the "truclient_step"?

___

By Default:

 

4.2 Step: truclient_step

User Operations:

  • '2'.

Should look something like this:

 

4.2 Step: Navigate to 'https://www.google.com'

User Operations:

  • '2'.

 

___

I could do that by hand, but that is not what i want to do everytime.

 

2. Can you customize the Business Process Report , so it Contains the Result Viewer results ? Passed / Failed for each step?

 

Kind regards

Tony

How to record and playback Power Builder desktopapplications

$
0
0

hello

 

I am unable to record power builder desktop application.  can you please help me.

 

Is load runner supports power builder desktop applications? if so what is the protocol we have to use for this.

 

Thanks,

Sainath V.

Using regex in web_reg_save_param boundaries

$
0
0

Hi all,

 

I am trying to write a script which will pick up a dynamic value from a drop down menu and submit it to go to the next page. The HTTP response looks like this:

 

\t\t\t\t\t<option value="Rose taupe" id="WD26"class="WD26">Rose taupe</option>\n

\t\t\t\t\t<option value="Myrtle" id="WD20"class="WD20">Myrtle</option>\n

\t\t\t\t\t<option value="Deep carmine pink" id="WD142"class="WD142">Deep carmine pink</option>\n \t\t\t\t\t<option value="Wild Strawberry" id="WD66"class="WD66">WildStrawberry</option>\n

\t\t\t\t\t<option value="Cream" id="WD72" selected="selected"class="WD72">Cream</option>\n

\t\t\t\t\t<option value="Tangerine yellow" id="WD94"class="WD94">Tangerine yellow</option>\n

 

I want to pick up the color that is selected in a drop down menu in the front end, in the response this color line has selected="selected" in it. This is however random for each instance hence the regex has to pickup the color name from the line which contains selected="selected".

 

I tried using web_reg_save_param_regexp with the regular expression <option value="([^"]*)" id="[^"]*" selected="selected but there are two dynamic values i.e. value and id.

 

I want to use a simple web_reg_save_param where I can use regex in the boundaries so as to pick up the color name from the response. So far what I have is:

 

    web_reg_save_param_ex("ParamName=SelectedColor", 
    "LB/IC=\t\t\t\t\t<option value=\"",
    "RB/ALNUMIC=\" id=\"[^\"]*\" selected=\"selected\"",
    "Ord=all",
    "Search=body",
    LAST);

 

OR


    web_reg_save_param_ex("ParamName=SelectedColor", 
    "LB/ALNUMIC=selected=\"selected\" class=\"[^\"]*\">",
    "RB/IC=</option>\n",
    "Ord=all",
    "Search=body",
    LAST);

 

However this gives me an error Action1.c(73): Error -26396: The "RB/ALNUMIC=" id="[^"]*" selected="selected"" argument (number 3) is unrecognized or misplaced   [MsgId: MERR-26396].

 

Can anyone please help me in using regex in the boundaries for this function? Thanks a lot, and kindly let me know if more details are needed!

Automate interaction with VUGen using UFT

$
0
0

For recording VUGen scripts, we automated the test scenario using QTP 11.5 and VUGen 11.x. We also automated the interactions with VUGen, e.g. choose the protocol, insert transaction, comment etc.

 

Now, we are using VUGen 12.02 and UFT 12.01 . The problem is to identify the particular GUI objects in VUGen 12.x. It is just a window. Menubar, buttons etc. can not be identified by UFT's object spy. Partially, we can use VUGen shortcuts using sendKeys in the UFT script. But it would be nice if HP's object spy (UFT) could identify GUI objects of HP's product VUGen ...

 

TruClient Test Results HTML

$
0
0

Hello,

 

when i Replay a Script, the Replay Summary-> Test Results contains all the Details i need to know.

But when i want to Export that to an HTML File, the output is just an empty Page with  "Test:    Report".

Does anyone know how to get around this ?

 

Kind regards

Tony

Any impact on Load Runner licenses if we upgrade from Winxp to Win7 in Controller machine

$
0
0

HI All,

 

I have a Controller machine with LR installed with licenses. Now I need to upgrade from Winxp to Win7.

 

During this upgrade will the liensing going to get impacted.

 

What is the right procedure to do this installation?

 

Can anyone advise on this. Is this the appropriate forum to discuss this.

 

 

 

Regards,

Rony

Unable to upload file greater than 2Mb from web_submit_data

$
0
0

Hi,

 

I am getting an error when I am trying to upload a file whose size is greater than 2MB.

 

The error that is comming is HTTP1.1/500 Internal server error.

 

The protocol is HTTP/HTML. I have tried increasing the request timeout time but still the error persist.

 

Can anyone suggest any ideas?

 

 

Thanks in Advance!!!


web_websocket_connect gives error while replay in vugen

$
0
0

Hi,

 

I have a web based application which communicates to another application through web sockets. The business process flow is pretty simple where the script logs into the website,selects few records(which opens through socket communication) and logs off. I am using Vugen 12.02 and after recording following fuctions are generated automatically

 

web_websocket_connect("ID=0",          

"URI=ws://xyz/websocket/events",          

"Origin=http://xyz",        

  "OnOpenCB=OnOpenCB0",          

"OnMessageCB=OnMessageCB0",         

 "OnErrorCB=OnErrorCB0",          

"OnCloseCB=OnCloseCB0",          LAST);

/*Connection ID 0 received buffer WebSocketReceive0*/   

  /*Connection ID 0 received buffer WebSocketReceive1*/    

 lr_save_string(WebSocketSend0, "WebSocketSend0");

 

 

web_websocket_send("ID=0",          

"Buffer={WebSocketSend0}",        

  "IsBinary=0",          LAST);   

  /*Connection ID 0 received buffer WebSocketReceive2*/

 

 

No while replay the script fails at the web_websocket_connect with HTTP400 Bad request error. There are two exra files generated WebSocketBuffer.h and WebSocketCB.c. I don't know how to handle these generated functions and how to fix the error. Please help

Unable to capture File Upload Response

$
0
0

I am developing the scripts for a Java based web application which is having a CSV file upload functionality. However, LoadRunner is not able to capture the response for the File Upload request which is crucuial from the business standpoint. Any suggestions are welcome.

Performance Testing a Windows applications... LR?

$
0
0

Hi,

 

I need some advice. I am trying to Performance Testing a non-web based application. The Protocol Advisor for LR12.02 tells me to use COM/DCOM and/or Windows Sockets. Neither of these protocols produce usable code to create/modify scripts from.

 

I asked someone who is more experienced than I , what to do and I was told that Load Runner cannot be used to do this type of testing. She also said I would have to use a tool like Junit.

 

Can someone please confirm that LoadRunner cannot be used for this? Also, coming from strictly a LR background, what tool can I try to use to create these performance tests.

 

I would really appreciate any type of advice and/or recommendations.

 

Thanks!

IP Spoofing info from Analysis file

$
0
0

Hello,

 

Is it possible to verify if "IP Spoofing" was enabled during scenario execution in Controller?

 

Thanks,

Koushik

Web Service: Java Keystore Load Runner Implementation

$
0
0
Hi All, I am building a script for web service testing in load runner. the Functional Team are using the SOAP UI tool in which they are using a Web service Security policy that has been setup at the SOAP UI Tool. They are invoking a Java Keystore file. They provide some username and password and more settings in the SOAP UI. The Header part in the SOAP UI message is empty whereas when we monitor the traffic going outside the SOAP UI in the HTTP Log the username, Password, the key (using the JAVA Keystore), the URL pointing to the policy and stuffs are getting passed in the tag. 1. How do i implement the same in the Lod runner script? 2. I am able to build the script, but the key is getting generated when the XML gets to the server (using the .jks file). How can i generate the key for each iteration. should i include any JAVA code. Please help me folks...!!!!
Viewing all 3978 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>