Quantcast
Channel: All LoadRunner Practitioners Forum posts
Viewing all 12134 articles
Browse latest View live

Re: How to read content from a file and storing it in a string variable?

$
0
0

>char buffer[4096]="";

 

There is no need to initialize all 4K bytes with Nuls.

 

>length = fread(buffer, sizeof(char), 4096, fp);

 

Instead of hardcoding 4096, just use: sizeof(buffer)

(Provided it isn't a pointer.)


Re: Mobile Performance Testing

$
0
0

Well, if you are going to record a mobile device traffic with VuGen as a proxy, it means that first of all you need to start proxy recording in VuGen (for example IP: ABCD, port 8888). Then you want your mobile device to send all its traffic to the internet via this proxy. So second you will need to configure ABCD:8888 as the proxy on your mobile device (usually it can be done in network settings, here is iOS example). Once done, all device traffic will go thorugh VuGen and will be captured. Eventually after stopping the recording a script will be generated in VuGen. Of course, both the device and the VuGen machine need to be on the same network, but it shouldn't be an issue if you are connecting both to same WiFi network and disabling cellular traffic on the device.

All the above is explained in product documentation.

Re: "Notify: max connections per server" What does this mean?

$
0
0

Hi Sir,

Thanks. I am trying to find the solution for your post i.e

Notify: max connections per server" What does this mean?

 but it is saying that i do not have access to find the solution. This would solve my issue as well. Please let me know how to get the access.

Re: Trying to select Radio Button in Truclient

$
0
0

Penn,

Thank you for your assistance.  I am still getting Object not found.  I have pasted the original data below and the JS created per your suggestion.  I am not sure how to handle the GT signs and the data at the end.  Please review and provide and suggestions or corrections.  Again your assistance is greatly appreciated.

Original Input data

//input[@type="radio" and @value="551212>621212>FS>CMP>false"]

JS data

var PackageID=ArgsContext.TC.getParam("PackageID");
var LoanREQID=ArgsContext.TC.getParam("LoanREQID");

var str = '//input[@type=\"radio\" and @value=\"' + LoanREQID + '\">\"' + PackageID + '\">FS>CMP>false\"\"]';
evalXPath(str);

Re: How to read content from a file and storing it in a string variable?

$
0
0

>The initialization do not set the whole memory area with nulls, it will only set it to a null terminated char array.

 

That is NOT what the C99/C++ Standards say.

If static storage duration, it is all initialized.  Function or block scope, every byte is initialized, if you initialize any.

(Assuming LoadRunner meets the C Standard.)

So you are better off just assigning the first byte: buffer[0] = '\0';

Unless dealing with security or you write the whole array and don't want random data.

HPE Performance Engineering news - Aug 2016

$
0
0

Hewlett Packard Enterprise StormRunner Load 2.0 has just been released!
Hewlett Packard Enterprise StormRunner Load 2.0, cloud load testing software, has just been released. Although it may be a small step for us at HPE, it has been a giant step for Enterprise Performance Testing. Born almost two years ago, and with release cycles every two months, StormRunner Load has emerged as a leading cloud performance testing solution. This software packs new and existing features with each release to become a more robust and mature enterprise-ready testing tool. StormRunner Load is simple - because it really takes just few minutes to sign up, upload scripts and start running tests. The software is smart - because it has powerful analytics and enhanced integration with many and various open source and proprietary software solutions. And it is scalable - because you can easily add 1M+ VUsers to make sure your app can handle the load. Read more…

 

The power of load testing IoT: requirements and tips
The Internet of Things is growing at an astronomical rate. This is why load testing these devices and the networks that serve them is vital. We recently had a discussion with a company looking to install smart (IoT) devices. Keep reading to find out what they discovered.

 

Velocity 2016 Santa Clara: 9 reasons this event is impactful for Performance Engineering
Waiting for the O’Reilly Velocity NY, learn more about the Santa Clara event and other cities coming to you soon here. You will also find: Schedule, Speaker slides and Recorded keynotes available. Read more...

 

Get a new way to manipulate JSON with load testing in LoadRunner
Hewlett Packard Enterprise LoadRunner load testing software supports JavaScript as scripting language since release 12.50, however if a user wants to manipulate JSON within an existing C-script, this is more challenging. LoadRunner 12.53 introduces a series of new APIs to manipulate JSON in C language script, making the scripting process easier and quicker for the script developers. Read more...

 

LoadRunner and Continuous Integration: configuring Jenkins jobs in 5 easy steps
If the methodology of your product development includes continuous integration, you should be running performance tests as part of your build cycle. This post explains how you can configure a Jenkins job to run Hewlett Packard Enterprise LoadRunner tests as a build step, and establish service level agreements (SLAs) that will cause the build to fail should these not be met. Follow these few steps to easily run performance testing within your environment.

 

Utilizing the NV Insights report during the performance testing process
How is the network affecting the application? What’s the difference in user experience while accessing the site from different geographical locations? The answers to these questions may be obtained by using a new feature in the integration of Hewlett Packard Enterprise Performance Center with HPE Network Virtualization, called the “NV Insights Report”. Read more…

 

Upcoming Webinars

Aug 9 – 1:00 PM EDT - Performance Engineering and Proven Practices

Sept 6 – 2:00 PM BST - Continuous Testing: The Key To Increasing Delivery Speed And Quality In Your DevOps Pipeline

Past Webinars

Webinar: What’s New in HPE LoadRunner and HPE Performance Center 12.53

Webinar: Performance Engineering and Your End Users

 

HPE Performance Engineering Solutions

HPE StormRunner Load

HPE Network Virtualization

HPE Service Virtualization

HPE LoadRunner

HPE Performance Center

 

Download the Market Guide to Performance Testing by Gartner

 

Try StormRunner Load Now!

 

Syntax for passing array values in JSON request using Vugen.

Need help with Correlation in LoadRunner 12.53

$
0
0

 Hi There,

I have a couple of questions regarding correlation in VuGen script and very much appreciated if I can get some help from you.

I have below parameter to correlate in VuUser script and need to parameterise the value in red.

 

web_url(

"URL=....%27VIS%27+icx_ticket=%27.6PrlVj5DFynvraqctdxJ_w..%27+resp=....",

"Referer=....icx_ticket&gv15=6PrlVj5DFynvraqctdxJ_w..&gp2=resp_app&gv2=",

)

nca_connect_server(".... icx_ticket='.6PrlVj5DFynvraqctdxJ_w..' ....");

 

My Questions are,

1. Since it does not have fixed LB and RB, I can't use web_reg_save_param or web_reg_save_param_ex

but I should use web_reg_save_param_regexp to cope with various paterns. Please tell me it I'm wrong

 

2. If YES from #1, then how to set RegExp= for the various paterns? I tried to use pipe but it did not help and ran into below error. ( IE, "RegExp=icx_ticket=%27.(.*?)%27+resp= | icx_ticket&gv15=(.*?)&gp2=resp_app&gv2= | icx_ticket='(.*?)'")

 Error -35061: No match found for the requested parameter "CorrelationParameter_1". Either the specified boundaries were not found in the response or the matched text is longer than current max html parameter size of 81920000 bytes. The total length of the response is 4717035 bytes. You can use "web_set_max_html_param_len" to increase the max parameter size.   [MsgId: MERR-35061]

 

3.If NO from #1, then how to parameterise the value in red?

Your comments or hint will be very much appreciated as I have already wasted a lot of time to resolve the issue.

 

Cheers,

 

Jason


Re: How to read content from a file and storing it in a string variable?

$
0
0

Interesting, there is always something new to learn. :-)

But the running point here is that all (automatic) variables needs to be initialized.

"In the absence of explicit initialization, external and static variables are
guaranteed to be initialized to zero; automatic and register variables have undefined
(i.e., garbage) initial values."
The C Programming Language 2nd Edition - Kerningham, Ritchie

This rule of thumbs is even more important to programmers not that experienced in C, like the thread creator.

Also if the time taken for clearing a 4k memory area is important, then I think we on a unsuitable Operating system ;-)

Re: Need help with Correlation in LoadRunner 12.53

$
0
0

Hi Jason

I think that your problem is trying to correlate in the wrong place. The correlation should capture the values when they are returned from the server the first time, and not in the call where they are used.

So you must find when and the data is returned by the server and then used it in the call like:

web_url(
"URL=....%27VIS%27+icx_ticket=%27.{correlation_param_1}%27+resp=....",
"Referer=....icx_ticket&gv15={correlation_param_1}&gp2=resp_app&gv2=",
)
nca_connect_server(".... icx_ticket='.{correlation_param_1}' ....");


br /ola
---------------------------------------------------------------------
Please mark post as solved if your problems or questions is/are resolved.
If this post was valuable to you, please consider kudo it.

Error during executing a scenario of C VUser script imported from SeeTest

$
0
0

I recorded a script using Experitest SeeTest Automation tool for mobile performance testing and then copied the code to C Vuser protocol in HP loadrunner.

It is not able to identify client

While executing the script in another machine, which have loadrunner(VUGen), is giving error:


ic_api.h(103): Error: An exception was raised while calling invocation function in interpreter extension cciext.dll: System Exceptions: Uknown.

Please help me in this issue as soon as possible.

And how to initialize a client in different machine in loadrunner C Vuser script?

I have provided the ip address in place of localhost in script. 

Re: Need help with Correlation in LoadRunner 12.53

$
0
0

Hi OlaBerggren,

Which recording level should I select? HTTP based script? or URL based script?

I have recorded it in HTTP based script level ( by default) but couldn't find capturable data for correlation and below is only part where the value (6PrlVj5DFynvraqctdxJ_w) is searched. 

web_url(

"URL=....%27VIS%27+icx_ticket=%27.6PrlVj5DFynvraqctdxJ_w..%27+resp=....",

"Referer=....icx_ticket&gv15=6PrlVj5DFynvraqctdxJ_w..&gp2=resp_app&gv2=",

)

nca_connect_server(".... icx_ticket='.6PrlVj5DFynvraqctdxJ_w..' ....");

I believe there must be a section where I can search "6PrlVj5DFynvraqctdxJ_w.." before web_url() so that script will capture the value from there and substitute {correlation_param_1} in web_url but unfortunately I can't find it in my current script.

Please advise

Cheers,

Re: Need help with Correlation in LoadRunner 12.53

$
0
0

Hi

Yes, there is other places to look. The values visible in the script is only what you send to the server and not what is coming back.

If snapshot was enabled, they can be found in the snapshot tab in the bottom. Or you can look in the output tab in the bottom and shift to the "code generation". Here all sent and recieved data is searchable.

 

Try reading some here about manual correlation and click around.

http://lrhelp.saas.hpe.com/en/latest/help/WebHelp/Content/VuGen/t_HowToManualCorrelateScripts.htm

 

Re: Trying to select Radio Button in Truclient

$
0
0

Hi Idebner,

It seems you didn't combine your str correctly, try to copy&paste this one as your str:

    var str = '//input[@type=\"radio\" and @value=\"' + LoanREQID + '>' + PackageID + '>FS>CMP>false\"]';

BTW, please make sure your two parameter table contains the correct value of the PackageID and LoanREQID.

 

if my solution works for you, please mark it as final solution :)

 

Re: Trying to select Radio Button in Truclient

$
0
0

Penn,

Thanks for correcting my JS str.  I am still getting a target not found issue.  Why is it looking at the name field instead of the JS code?

 

 

 

 

 

 

 

Object not found.PNG


Re: Importing WSDL into LoadRunner using a certificate

$
0
0

Hi,

Same problem here, V 12.53. I'm trying to import a service using an online WSDL, but I need to authenticate with a Certificate (not User/Pwd). I can't find the way to use my certificate, and when I try to import the service VUGen prompts me for user/password. Any ideas?

Thanks in advance,

Luis.

Re: Loading 50 Users failing in Controller and passed in Vugen replaying with 50 iterations(50 users

$
0
0

I am using Trial version on Laod Runne which has maximum of 50 users.

Re: Loading 50 Users failing in Controller and passed in Vugen replaying with 50 iterations(50 users

$
0
0

Are you running this on you own PC?  If so, bring up task manager and see what your system resources are doing.  I know when I do this on my own PC the max I can run is 20.

 

Larry

Re: Loading 50 Users failing in Controller and passed in Vugen replaying with 50 iterations(50 users

$
0
0

Hello Katpally 

There are 3 major reasons why you cannot get more than 30 Vuser on a one time

1.  The "Appliction under test" cannot hand the load of 30+ users

2. The load generator(s) do not have the Windows Resources (CPU. RAM, etc.) to handle 30+ vusers

3.  There is a logic or data issue within your script(s)

It could be one or more of the above reasons. Are you monioring the Windows Resourses of your LGs and Citrix servers?

NOTE:

  • IF you are use a multi-protocol script the Vusers  will use 1 license PER protocol.. A script with both Citrix and web(http/html) protocol will use 2 license per Vusers (thus a max of 25 vuser using 50 license)
  • The Controller (localhost) should not be use as a Load Generator.

Did you use the "Load generator calulator" to see what the max number of Vusers is for you LG and Script?

 

 

 

Help with TruClient Retries

$
0
0

i have some TruClient scripts developed with VuGen 12.02. i am running them in BAC/BPM 9.25.

i noticed in some of the BAC page component breakdown reports that there are several web page components, like .png objects, that are referenced with an __RETRY_#01 designation at the end of the URL. interestingly, i did not see any retry time listed in the Transaction Response Time Breakdown of the BPM performance over time report.

then, i ran the scripts from the BPM admin page, with extended logging enabled. i found examples of the __RETRY_#01 URL objects there, too. below is a portion of the report.

i would like to understand what these retries represent? how to control whether it retries, and how many times it retries? how to specify how long it waits for a page object? and whether these are settings typically in a browser or are something just in TruClient? (note that these objects are not something we have a TruClient WaitforObject on, and are not full BAC transactions).

09/08/2016 15:41:11 Notify: Transaction "https://my-server/images/logo.png" started. [MsgId: MMSG-16999]  
09/08/2016 15:41:11 Notify: Transaction "https://my-server/images/logo.png" started. [MsgId: MMSG-16999]  
09/08/2016 15:41:11 Notify: Transaction "https://my-server/images/logo.png" ended with a "Fail" status (Duration: 0.0003). [MsgId: MMSG-16873]  
09/08/2016 15:41:11 Notify: Transaction "https://my-server/images/logo.png" has 0 error message(s). [MsgId: MMSG-16818]  
09/08/2016 15:41:11 DEBUG BPM: transaction_handler: end transaction: 'https://my-server/images/logo.png'. Handle: '24', parent handle: '23' [MsgId: MMSG0]  
09/08/2016 15:41:11 DEBUG BPM: GetIsClientBreakdown: 0 [MsgId: MMSG0]  
09/08/2016 15:41:11 DEBUG BPM: GetIsTransactionBreakdown: 0 [MsgId: MMSG0]  
09/08/2016 15:41:11 DEBUG BPM: GetIsPropertyBagServersIPName: 0 [MsgId: MMSG0]  
09/08/2016 15:41:11 DEBUG BPM: GetIsPropertyBagData: 0 [MsgId: MMSG0]  
09/08/2016 15:41:11 Notify: Transaction "https://my-server/images/logo.png" ended with a "Pass" status (Duration: 0.0003). [MsgId: MMSG-16873]  
09/08/2016 15:41:11 DEBUG BPM: transaction_handler: end transaction: 'https://my-server/images/logo.png'. Handle: '23', parent handle: '2' [MsgId: MMSG0]  
09/08/2016 15:41:11 DEBUG BPM: GetIsComponentBreakdown: 0 [MsgId: MMSG0]  
09/08/2016 15:41:11 DEBUG BPM: GetIsClientBreakdown: 0 [MsgId: MMSG0]  
09/08/2016 15:41:11 DEBUG BPM: GetIsTransactionBreakdown: 0 [MsgId: MMSG0]  
09/08/2016 15:41:11 DEBUG BPM: GetIsPropertyBagServersIPName: 0 [MsgId: MMSG0]  
09/08/2016 15:41:11 DEBUG BPM: GetIsPropertyBagData: 0 [MsgId: MMSG0]  
09/08/2016 15:41:11 Notify: Transaction "https://my-server/main.css" started. [MsgId: MMSG-16999]  
09/08/2016 15:41:11 Notify: Transaction "https://my-server/main.css" started. [MsgId: MMSG-16999]  
09/08/2016 15:41:11 Notify: Transaction "https://my-server/main.css" ended with a "Pass" status (Duration: 0.0031). [MsgId: MMSG-16873]  
09/08/2016 15:41:11 DEBUG BPM: transaction_handler: end transaction: 'https://my-server/main.css'. Handle: '26', parent handle: '25' [MsgId: MMSG0]  
09/08/2016 15:41:11 DEBUG BPM: GetIsClientBreakdown: 0 [MsgId: MMSG0]  
09/08/2016 15:41:11 DEBUG BPM: GetIsTransactionBreakdown: 0 [MsgId: MMSG0]  
09/08/2016 15:41:11 DEBUG BPM: GetIsPropertyBagServersIPName: 0 [MsgId: MMSG0]  
09/08/2016 15:41:11 DEBUG BPM: GetIsPropertyBagData: 0 [MsgId: MMSG0]  
09/08/2016 15:41:11 Notify: Transaction "https://my-server/main.css" ended with a "Pass" status (Duration: 0.0031). [MsgId: MMSG-16873]  
09/08/2016 15:41:11 DEBUG BPM: transaction_handler: end transaction: 'https://my-server/main.css'. Handle: '25', parent handle: '2' [MsgId: MMSG0]  
09/08/2016 15:41:11 DEBUG BPM: GetIsComponentBreakdown: 0 [MsgId: MMSG0]  
09/08/2016 15:41:11 DEBUG BPM: GetIsClientBreakdown: 0 [MsgId: MMSG0]  
09/08/2016 15:41:11 DEBUG BPM: GetIsTransactionBreakdown: 0 [MsgId: MMSG0]  
09/08/2016 15:41:11 DEBUG BPM: GetIsPropertyBagServersIPName: 0 [MsgId: MMSG0]  
09/08/2016 15:41:11 DEBUG BPM: GetIsPropertyBagData: 0 [MsgId: MMSG0]  
09/08/2016 15:41:11 Notify: Transaction "https://my-server/images/logo.png__RETRY_#01" started. [MsgId: MMSG-16999]  
09/08/2016 15:41:11 Notify: Transaction "https://my-server/images/logo.png__RETRY_#01" started. [MsgId: MMSG-16999]  
09/08/2016 15:41:11 Notify: Transaction "https://my-server/images/logo.png__RETRY_#01" ended with a "Pass" status (Duration: 0.0043). [MsgId: MMSG-16873]  
09/08/2016 15:41:11 DEBUG BPM: transaction_handler: end transaction: 'https://my-server/images/logo.png__RETRY_#01'. Handle: '28', parent handle: '27' [MsgId: MMSG0]  
Viewing all 12134 articles
Browse latest View live


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