Friday, November 12, 2010

My load test 6

Prashanth in my case.
-Controller installed in one machine (server)
-Vugen installed in 4different machines

this means we dnt have LGenerators right??

so can i install LGenerators in those 4machines where Vugen is installed already???

if so how can i install, where can i get Lgenerator install component.
Your friend is wrong and has given you misleading information. The LG agent will be installed if you select the full installation of LoadRunner on the machine which would install Vugen,Controller and Analysis along with the LG agent.

In your case, you have only Vugen installed so it doesn't mean that the machine can be used as LG. You need to do the installation of the LG agent. you'll find this option in the loadrunner setup.Start the LR setup file and click on the Loadgenerator option.This will install the LG agent in addition to your existing Vugen. Do this on all the machines which you intend to use as LG
thanks again for taking time to reply me.
your words are crystal clear.

currently we are using LR 8.1
i will speak to my Lead to upgrade it to LR 9.5

___________
one more query:
i got confuse between Performance center & LR

LR & Performance center are different tools.

-Perf center dosen't have Vugen, am i correct?

so intially we have to create a script in LR Vugen then login to Perf center under Project--Vuser scripts we have to browse the script then by selecting the host machine the script will run in the selected host machine.
You dont require 9.5 for installing your LG. If you have the setup file of your current version of LR then you can do it on your current version itself without necessity of upgrading.

Performance center is a centralized testing infrastructure which can be used for load testing across locations. It is web-based and hence can be accessed by different users from different locations to run load tests.

How to parse parameter values to the Transaction Names - This thread has been closed
I want to parse the parameter values to the transaction names, so for every iteration I can obtain the transaction time for specific paramater supplied?

I am trying this code, but no success:

char *qrytime, *newqry;

qrytime = lr_eval_string "{Run_Query}" );

lr_save_string(qrytime,"newqry");


lr_start_transaction("{newqry}");

////////////////////////

lr_end_transaction("{newqry}",LR_AUTO);

Text from doc:

Dynamic transactions names are names that change
depending upon a parameterized value. If there are
several reports that are run randomly, the team can
define the transaction name dynamically using the
code below:

Char rname[10];

sprintf( rname, �Run_Report_%s�, lr_eval_string(�{report}�) );

lr_output_message(rname);

lr_start_transaction(rname);

lr_end_transaction(rname,2);

Dynamic Transaction Names in LoadRunner
Say you want the transactions to be named dynamically depending on a parameter being used. You can use sprintf and lr_eval_string functions to dynamically create the trn names. Here is the sample code


Action()
{

char trnname[10];

sprintf (trnname, "Item_%s", lr_eval_string("{TrnType}"));
lr_start_transaction(trnname);
web_submit_data("Payment Done",...... ) ;
lr_end_transaction(trnname, LR_AUTO);

return 0;
}
Port Numbers using by LR9.0
Hi,
We are using LR9.0 on a secured clinet network. In order to enable LR to access client specific applications, we need to ask Network guys to enable Firewall ports for LR. Hence; I require the port (TCP/UDP) number that are using by LR. Please provide the details ASAP.
Hello Krupa,

Can you please elaborate the problem?

Do you want to know the Controller - Load Generator communication ports?

Thanks!

Krupasindhu
Jun 23, 2009 14:34:33 GMT N/A: Question Author
________________________________________
Yes, I am looking for the port numbers using by both LR Controller & Load Generator. Thanks for narrow down the issue.

Shivaram Patil
Jun 23, 2009 14:35:55 GMT 9 pts
________________________________________
Hi,
you can refer this in Recording Options...

Tools->Recording Options->Port Mapping

You can make a new entry and speficy the connect type....Add the client certificate to the list.
Ex: IP, Port number, password etc...

Controller and load generator: 443

I suggest you to refer help file....

if you are using a secured client network.....you need to consider firewall, MI listner and SSL settings as well.

If you have installed the tool, documentation can be accessed..LoadRunner->Documentation.

HP Loadrunner and Java Application hosted on a Linux Server - This thread has been closed
We have got a new client request for doing performance testing for a Web Based Java Application(using JBoss) hosted in a Linux Server,however, the Load Testing would be done from a Windows platform as always.
Will LR support this? Are there any differences in the way LR would recognise the controls or the the way it behaves?
It should not matter what platform hosts a Web based application. If it runs in a browser and you can record with the Web protocol it should work fine. I have tested Java apps hosted on Windows servers, AIX servers, Solaris servers, and Linux servers and all of them were pretty much the same.
Hi Alan,

Are there any latency factors involved when we do the performance testing from a windows platform with the application being in a Linux Server?
Why would there be any latency problems. Are your load generators on the same subnet as the applications servers? If so, it should be the same regardless of what platform is used to host an application.
Just think of the load generators executing your web transactions just like they are executed when you use the browser manually. The only difference is that the scripts communicate with the application under test at layer 4 of the OSI model. This eliminates the browser.
Hats off to u Alan.
Just think of the load generators executing your web transactions just like they are executed when you use the browser manually. The only difference is that the scripts communicate with the application under test at layer 4 of the OSI model. This eliminates the browser.

Action()
{
int myrandomnumber;
myrandomnumber = rand()%100;
[PUT ACTION CODE HERE]

if(myrandomnumber<20){ [PUT SAVE CODE HERE] } return 0; }You could use blocks like pra said but then you'd not only have duplicate code, which means more work for you, but you'd also have the fun of having to reset all your run time settings in the scenario when you make any changes. May 13, 2009 16:27:43 GMT Unassigned ________________________________________ Trust me. It works. Open a new script and run the code below. It'll show you how often the execution path goes into the 'save' section and how often not. Expect about an 80 / 20 split. Action() { int myrandomnumber; int i,save, dontsave; for(i=0;i<100;i++){ myrandomnumber = rand()%100; if(myrandomnumber<20){ save++; } else{ dontsave++; } } lr_output_message("save: %d", save); lr_output_message("dont_save: %d", dontsave); return 0; } Getting the current state of a checkbox in LoadRunner VUGen for Oracle NCA Protocol am having a hard time writing a conditional statement for checkbox using Oracle NCA protocol. I want to first to check whether a checkbox is checked or unchecked. If it is checked, then I will uncheck it. Otherwise, I will check it. Can anyone help me with this? Here's the code that I wrote. I observed that if the checkbox if checked, it unchecks it. But if the checkbox is uncheck, it doesn't check it. if ("B_OP_SEQS_COUNT_POINT_FLAG_0" != "0") { nca_button_set("B_OP_SEQS_COUNT_POINT_FLAG_0", 0); } else { nca_button_set("B_OP_SEQS_COUNT_POINT_FLAG_0", 1); } Use the function nca_obj_get_info in the if loop for creating the condition, like if(nca_obj_get_info("B_OP_SEQS_COUNT_POINT_FLAG_0",object_checked) == E_OK) Thanks for your help. It gave me an idea how to solve the problem. I put the following coeds in my script: nca_obj_get_info("B_OP_SEQS_COUNT_POINT_FLAG_0", "object_checked", Countpoint); if (strcmp(Countpoint, "0") != 0) { nca_button_set("B_OP_SEQS_COUNT_POINT_FLAG_0", 0); } else { nca_button_set("B_OP_SEQS_COUNT_POINT_FLAG_0", 1); } Thanks for introducing me to ncs_obj_get_info function. Thanks a lot!!! Recording button that appears on selecting a choice in the dropwdown - This thread has been closed In my application there is dropdown with 3 choices. If i choose option 1 a button appears (Specify Product button). if i choose option 2 a dropdown list appears,..likewise for option 3. LR records the Specify Product button click with respect to the co ordinates. But while replaying the script the button doesnot appear and LR throws error. Its a .Net Application HP guys sent a patch like for handlnig this issue in LR 9.10 and this issue got solved in LR version 9.5 by default. int comp; char *city1, *city2; city1 = lr_eval_string( "{Departure}" ); city2 = lr_eval_string( "{Arrival}" ); comp = strcmp( city1,city2 ); if (comp == 0) { lr_next_row( "Arrival.dat" ); city2 = lr_eval_string( "{Arrival}" ); lr_save_string(city2,"NewArrival"); } web_submit_form("reservations.pl", "Snapshot=t4.inf", ITEMDATA, "Name=depart", "Value={Departure}", ENDITEM, "Name=departDate", "Value=03/31/2009", ENDITEM, "Name=arrive", "Value={NewArrival}", ENDITEM, "Name=returnDate", "Value=04/01/2009", ENDITEM, : : : LAST); Load balancing issue Yes. They were involved. They said that it's a script issue. Another person from my team took over the load testing. He commented out web_add_cookie() from the script. I would like to find out what exactly happens if these functions are commented out from the script and how this will affect the load balancing. The reaason why I am asking this question is because the network person is saying that the load is getting balanced in the servers after the script change was made( meaning the load test was done woth the script with the web_add_cookie() function commented. Below is the change they made. { web_cache_cleanup(); web_cleanup_cookies(); /*web_add_cookie("INF_COOKIE=R2923242701; DOMAIN=���.."); web_add_cookie("WT_FPC=id=198.45.19.20-1166439968.29964767:lv=1225858501053:ss=1225856505274; DOMAIN=�.."); web_add_cookie("__utma=48171320.1212086417.1225828676.1225856562.1225857569.8; DOMAIN=����.."); web_add_cookie("__utmb=48171320; DOMAIN=���.."); */ How will this affect the load balancing? Also, I do not have the details as to what load balancing they are using. Some comments from Bill: 1. VUGEN will sometimes create web_add_cookie() functions that are not needed. I routinely comment out these functions throughout the script because LR script playback will dynamically create and update cookie correctly for each vuser. 2. It is typical for load balancing technology to create a cookies to cause future requests from this user to be steered to a particular web/app/db set of servers. Your recording appears to have cookies for this purpose and thus every vuser was steered down the same path. By removing the web_add_cookie from your script will allow for each iteration to playback in a natural or life-like manner. IP Spoofing PC9.1 Win 2003 server Hi Gurus, IP Spoofing does not seem to be working for us in Performance Center. It seems our data center does NOT use DHCP to obtain IP addresses. An example of one of our servers IP configs is as follows: IP Address. . . . . . . . . . . . : 172.18.96.114 Subnet Mask . . . . . . . . . . . : 255.255.255.0 IP Address. . . . . . . . . . . . : 172.18.96.113 Subnet Mask . . . . . . . . . . . : 255.255.255.0 IP Address. . . . . . . . . . . . : 172.18.96.112 Subnet Mask . . . . . . . . . . . : 255.255.255.0 IP Address. . . . . . . . . . . . : 172.18.96.111 Subnet Mask . . . . . . . . . . . : 255.255.255.0 IP Address. . . . . . . . . . . . : 172.18.96.110 Subnet Mask . . . . . . . . . . . : 255.255.255.0 IP Address. . . . . . . . . . . . : 172.18.96.43 Subnet Mask . . . . . . . . . . . : 255.255.255.0 All the documentation I read says that I have to enable IP Spoofer in the controller. This is the same as making the selection in in the test (General Tab --> Advanced Frame --> Enable IP Spoofer)?

No comments:

Post a Comment