LoadRunner Lists

Connecting to Oracle DB using LR Vugen

GoogleGroups lr-loadrunner - Thu, 04/21/2016 - 11:09
Hi I am looking for sample script using C VUser or ODBC protocol, please advise.. I tried to use this function: lrd_open_connection, I was not sucessful thanks
Categories: LoadRunner Lists

Re: correlation parameter helps

GoogleGroups lr-loadrunner - Wed, 04/20/2016 - 18:01
Hi I try to correlate a param as: web_reg_save_param("KEY1", "LB=WHR_SELF_SERVICE.WHR_JOBREQ_APPR.GBL?Page= WHR_JOBREQ_APPR&Action=U&KEY1=", "RB=&TargetFrameName=None", LAST); web_reg_save_param("KEY11", "LB= whrsys2_2/SS/HRMS/c/WHR_SELF_SERVICE.WHR_JOB_REQ_WEB_V.GBL?Page= WHR_JOB_REQ3
Categories: LoadRunner Lists

Re: How to record business actions which involves more than 1 browser

GoogleGroups lr-loadrunner - Wed, 04/20/2016 - 13:40
Set a global proxy that promotes all traffic from the browsers to the LoadRunner proxy recorder. I recommend explicit transaction names which begin with "BrowserX_" with X being the instance number. On Tuesday, April 19, 2016 at 9:53:44 AM UTC-4, sathish Ram wrote: > > All, > > > Kindly help me
Categories: LoadRunner Lists

How to define regex (including $) in Vugen

Stackoverflow LoadRunner - Tue, 04/19/2016 - 11:02

when I am writing the following code, it is failed at runtime But without end string char '$' at the end of the regex, the script is being passed.

lr_xml_find("XML={response}", "Query=/soapenv:Envelope/soapenv:Body/p4:TechParm/p3:SessionID", "UseRegExp=yes", "Value=^[A-z0-9]{8}[-][A-z0-9]{8}[-][A-z0-9]{8}[-][A-z0-9]{8}$", LAST);

Please let me know how to resolve this issue

Categories: LoadRunner Lists

Get RFH2 usr area name-value pairs from MQ queue using Java

Stackoverflow LoadRunner - Tue, 04/19/2016 - 10:25

Using Java, I want to build a MQ message that has MQMD,RFH2 usr area (with few name-value pairs). I am able to connect to Qmgr and able to read a message from one queue. I want to retrieve all header values (MQMD,RFH2 usr etc) and build one such message based on the retrieved message Can anyone please help me out in this ?

FYI: I am doing a load testing using Loadrunner tool that puts loads of messages on inbound queue and they will be processed and will be sent to outbound queue. And the tool will read the current queue depth of the outbound queue to check the total processing time.

Any suggestion are welcome

Images : MQ Message headers Image

Unsupported Version at MQRFH2

Categories: LoadRunner Lists

Finding recorded script Recording Options

GoogleGroups lr-loadrunner - Tue, 04/19/2016 - 09:53
Hi Team, I have recorded a Thick client application script uisng LR 12.0 Web(HTTP/HTML) protocol and script recording is success. After few days I have tried again to record the same scenario but in recording pane events are showing but nothing is recorded in the script. Can any one help me in
Categories: LoadRunner Lists

Re: [lr-loadrunner] Re: LoadRunner for Cloud Application SaaS

GoogleGroups lr-loadrunner - Sat, 04/16/2016 - 09:50
As far as I know, there is no difference in recording or running the tests. You have to ensure your load generators are colocated with application servers (in this case cloud) and your controller can ping to generators to avoid network hops. Sent from my iPhone On 14-Apr-2016, at 10:14 PM,
Categories: LoadRunner Lists

Getting error message after stop the recording in loadrunner

Stackoverflow LoadRunner - Fri, 04/15/2016 - 14:58

I am new in loadrunner.

When record sample project web tour in load runner, after stop the recording its showing error: "one of the post generation procedure has failed. failed procedure: performing scan for correlation post generation operation"

Can anyone help to resolve this issue. I am stuck here and not able to work further.

Categories: LoadRunner Lists

Re: Regular expression help

GoogleGroups lr-loadrunner - Thu, 04/14/2016 - 17:33
You need training. You are attempting to correlate where a value is being sent back by LoadRunner, not where the value is being generated and sent by the server. This architectural misperception needs to be addressed through training on the tool and mentoring, with an HP certified instructor.
Categories: LoadRunner Lists

How to combine async and blocking requests in VuGen?

Stackoverflow LoadRunner - Wed, 04/13/2016 - 14:14

I'm working on a load test for my long-poll chat-like service. The use case I want to test is fairly simple:

  1. Open a long-poll GET connection
  2. Send a message using POST request
  3. Assert that connection opened in step 1 has received the same message

I managed to implement steps 1 and 2 (and I can see in server access logs that requests are made) but on step 3 I'm getting following error:

Error -27653: Attempted read from an unconnected socket ("Connection: close" specified but server-side closure not detected). URL="https://{Env}/chat/poll/" [MsgId: MERR-27653]

Warning -27764: Request "https://{Env}/chat/poll/" failed [issued at Action.c(76)] [MsgId: MWAR-27764]

Can I combine async requests with blocking requests?

My test code is

int done; Action() { int HttpRetCode; int i = 5; // Initialize the global done state variable, and start the async transaction variable done = 0; lr_start_transaction("async-call"); // Define the request to be handled asynchronously // Specify the callback functions that will be called when the response is returned. // The callback functions are defined below. web_reg_async_attributes("ID=Poll_0", "URL=https://{Env}/chat/poll/", "Pattern=LongPoll", "PollIntervalMs=200", "RequestCB=Poll_0_RequestCB", "ResponseBodyBufferCB=Poll_0_ResponseBodyBufferCB", "ResponseCB=Poll_0_ResponseCB", LAST); // now make the async call. // note that the script will not block on this call. processing will continue on past this step while the request is handles asynchronously web_url("Poll_0", "URL=https://{Env}/chat/poll/", "Resource=1", LAST); lr_force_think_time(10); // Send interop message lr_message("Send interop message"); lr_start_transaction("/chat/.POST.201"); web_add_header("X-Session-ID", "sessionA"); web_custom_request("Push interop message", "URL=https://{Env}/chat/", "Method=POST", "Resource=0", "Mode=HTTP", "Body=DJIGURDA", LAST); HttpRetCode = web_get_int_property(HTTP_INFO_RETURN_CODE); if (HttpRetCode != 201) { lr_error_message("Unexpected return code: %d", HttpRetCode); lr_end_transaction("/chat/.POST.201", LR_FAIL); } else {ev lr_end_transaction("/chat/.POST.201", LR_AUTO); } lr_message("Waiting for response"); // To capture the response time of the async call, wait until the callback is called. // Without this, the script would move past and complete the iteration before the callback is called. //web_sync("ParamCreated=ready","RetryIntervalMs=18000","RetryTimeoutMs=3600000",LAST); // To capture the response time of the async call, wait until the callback is called. // Without this, the script would move past and complete the iteration before the callback is called. while (done==0 && i-- > 0) { lr_force_think_time(1); } // once the callback has been called, end the transaction to get the response time. lr_end_transaction("async-call", LR_AUTO); // stop the polling web_stop_async("ID=Poll_0", LAST); return 0; } /* * Callback Implementation * * */ int Poll_0_RequestCB() { //enter your implementation for RequestCB() here lr_message("in Poll_0_RequestCB request callback"); return WEB_ASYNC_CB_RC_OK; } int Poll_0_ResponseBodyBufferCB( const char * aLastBufferStr, int aLastBufferLen, const char * aAccumulatedStr, int aHttpStatusCode) { //enter your implementation for ResponseBodyBufferCB() here // when the response is received, update the global variable done = 1; // print out the response body and length lr_message("in Poll_0_ResponseBodyBufferCB response body callback"); lr_message("in Poll_0_ResponseBodyBufferCB response body callback, lastBufferLen=%d", aLastBufferLen); return WEB_ASYNC_CB_RC_OK; } int Poll_0_ResponseCB( const char * aResponseHeadersStr, int aResponseHeadersLen, const char * aResponseBodyStr, int aResponseBodyLen, int aHttpStatusCode) { //enter your implementation for ResponseCB() here lr_message("in Poll_0_ResponseCB response callback, headerLen=%d, bodyLen=%d", aResponseHeadersLen, aResponseBodyLen); lr_message("in Poll_0_ResponseCB response callback, header=%s", aResponseHeadersStr); lr_message("in Poll_0_ResponseCB response callback, body=%s", aResponseBodyStr); return WEB_ASYNC_CB_RC_OK; }

And the log output is:

Action.c(19): Notify: Transaction "async-call" started. Action.c(25): web_reg_async_attributes started [MsgId: MMSG-26355] Action.c(25): Warning -26318: When "Pattern" is not "Poll", "PollIntervalMs" is ignored [MsgId: MWAR-26318] Action.c(25): web_reg_async_attributes highest severity level was "warning" [MsgId: MMSG-26391] Action.c(36): web_url("Poll_0") started [MsgId: MMSG-26355] Action.c(36): "ID=poll_0" && "Pattern=LongPoll" now applied to URL="https://{Env}/chat/poll/" (RelFrameId=1, Internal ID=3) [MsgId: MMSG-35172] in Poll_0_RequestCB request callback Action.c(36): Retaining cross-step download of URL="https://{Env}/chat/poll/" (RelFrameId=1, Internal ID=3) [MsgId: MMSG-27658] Action.c(36): web_url("Poll_0") was successful, 0 body bytes, 0 header bytes [MsgId: MMSG-26386] Action.c(41): lr_force_think_time: 10.00 seconds. Send interop message Action.c(46): Notify: Transaction "/chat/.POST.201" started. Action.c(48): web_add_header("X-Session-ID") started [MsgId: MMSG-26355] Action.c(48): web_add_header("X-Session-ID") was successful [MsgId: MMSG-26392] Action.c(50): web_custom_request("Push interop message") started [MsgId: MMSG-26355] Action.c(50): Retaining cross-step download of URL="https://{Env}/chat/poll/" (RelFrameId=1, Internal ID=3) [MsgId: MMSG-27658] Action.c(50): Retaining cross-step download of URL="https://{Env}/chat/poll/" (RelFrameId=1, Internal ID=3) [MsgId: MMSG-27658] Action.c(50): Retaining cross-step download of URL="https://{Env}/chat/poll/" (RelFrameId=1, Internal ID=3) [MsgId: MMSG-27658] Action.c(50): web_custom_request("Push interop message") was successful, 0 body bytes, 377 header bytes [MsgId: MMSG-26386] Action.c(58): web_get_int_property started [MsgId: MMSG-26355] Action.c(58): web_get_int_property was successful [MsgId: MMSG-26392] Action.c(64): Notify: Transaction "/chat/.POST.201" ended with "Pass" status (Duration: 1.3904 Wasted Time: 0.0033). Waiting for response Action.c(76): lr_force_think_time: 1.00 seconds. Action.c(76): Error -27653: Attempted read from an unconnected socket ("Connection: close" specified but server-side closure not detected). URL="https://{Env}/chat/poll/" [MsgId: MERR-27653] Action.c(36): Warning -27764: Request "https://{Env}/chat/poll/" failed [issued at Action.c(76)] [MsgId: MWAR-27764] Action.c(76): Notify: Deleting Conversation Information with ID="poll_0" Action.c(76): lr_force_think_time: 1.00 seconds. Action.c(76): lr_force_think_time: 1.00 seconds. Action.c(76): lr_force_think_time: 1.00 seconds. Action.c(76): lr_force_think_time: 1.00 seconds. Action.c(80): Notify: Transaction "async-call" ended with "Pass" status (Duration: 19.0076 Think Time: 16.5943 Wasted Time: 0.0043). Action.c(83): web_stop_async started [MsgId: MMSG-26355] Action.c(83): Warning -26000: Failed to find conversation with ID="poll_0" for stopping [MsgId: MWAR-26000] Action.c(83): web_stop_async highest severity level was "warning" [MsgId: MMSG-26391] Ending action Action.

I'm using VuGen 11.52 and C API

Categories: LoadRunner Lists

How to capture Text from Web object using True client protocol in Loadrunner Vugen?

Stackoverflow LoadRunner - Wed, 04/13/2016 - 06:57

Need to capture text from Label object into parameter and save it in text file. How to capture text using Javascript in trueclient protocol ?

Categories: LoadRunner Lists

Overloading Load Generators will impact response times of transactions?

Stackoverflow LoadRunner - Tue, 04/12/2016 - 08:50

I know overloading of load generators will impact execution times and volumes(No.of transactions per hour) but I am not sure whether it will impact response times as well, my hypothesis is it won't impact the response times, if i am wrong please let me know how it will impact response times?

Categories: LoadRunner Lists

LoadRunner 12.50 recording issue

Stackoverflow LoadRunner - Tue, 04/12/2016 - 06:51

Running 12.50 in a VM under Windows Server 2012 R2 Datacenter with 6gb RAM. Since upgrading from 12.02 to 12.50 (5 days ago) I am unable to get anything to record in the new installation. Using WEB/HTTP protocol, once recorder starts, the IE browser just returns "This page cant be displayed" error. On clicking 'Fix Connection Problems' in the browser display, it just says there are no connection issues. No actual errors are logged in the log file so I have no idea where LR has an issue.

Running scripts that worked under 12.02, I got 404 not found returned, but after faffing around with the proxy settings and set the browser emulation to IE 10 it seemed to fix the re running issues.

Wierd thing is I can connect to the affected URL's outside LoadRunner using IE, so IE seems to work OK but wont connect in record mode.

Update : Set IE version 11 in runtime settings as per LR installation prerequisites. For some reason, was set to 10 by default.

Categories: LoadRunner Lists

How to do load testing?

Stackoverflow LoadRunner - Fri, 04/08/2016 - 16:47

I have been working on performance testing for a while. I want to ask if there is any difference between running the test for 500 virtual users using the same username and password or should we be using different user for each virtual user. If the test was executed with the same user, will the user data be cached on client or server sides and the results won't be accurate?

Thanks!

Categories: LoadRunner Lists

Re: Handling Octet Stream using Loadrunner

GoogleGroups lr-loadrunner - Wed, 04/06/2016 - 11:56
Based on the picture I conclude that it is NOT encrypted but (ASCII) text encoded as a hexdump. For example: copy the text into Notepad++ and use Plugins / Converter / HEX -> ASCII. André On Wednesday, 30 March 2016 06:38:09 UTC+2, RANJAN M R wrote: > > Hi, > > I have been facing a difficulty in
Categories: LoadRunner Lists

Re: [lr-loadrunner] Client Side Scripting

GoogleGroups lr-loadrunner - Tue, 04/05/2016 - 12:48
Hi Brother, Loadrunner is not like ur automation tools like UFT or RFT where every user action (like click or Mouse moments etc...) will be recorded. So, if something is not recorded it doesn't mean that tool is not capturing all the events. Remember, LR captures traffic between client and
Categories: LoadRunner Lists

Re: [lr-loadrunner] Re caching issue handling in load runner

GoogleGroups lr-loadrunner - Tue, 04/05/2016 - 12:48
In the run time settings, use the settings in browser tab to clear the cache. Or Use following piece of code at the start of the script Web_clear_cache() On 31-Mar-2016 9:38 PM, "timothy ma" wrote: > > Hi > > We have a web application where we need to clear browser cache for
Categories: LoadRunner Lists
Syndicate content