Friday, November 12, 2010

my load test 5

It includes first buffer time. You are referring to Average response time, and the metrics in page breakdown graph is not an average. Also check the granularity you have mentioned
Thank you for the reply. I have seen the max response time for that transaction,it is not more than 3.87 secs for 74 users (i.e. 74 passed transactions). Now if the response time include first buffer , the times are not matching because First buffer is 13 secs and the maximun response time during the transaction is 3.87 secs. Could you please clarify. Thanks
Performance center installation

I have reached the Server Configuration page on my admin server and I need to set up the hosts,
I have populated my Database and File server (I used the admin server as my file server)
But I am not sure what do I need to enter for the:
Utility Server

Or:
SiteScope Configuration
SiteScope Server:
SiteScope Port:
Use HTTPS:
Use Account:
Account:


We have build
2 host machines
2 controllers
1 db server (SQL)
1 admin server

I am not sure where would the Utility Server fit in?

Any help is appreciated.

The sitescope servers are optional and is for monitoring PC. The utility server is mandatory and needs to be installed.

The performance center server installation includes web(user/admin), file and utility server installations. You can customize the installation and select the utility server option to install and add it to your PC installation
Thanks,
I know see the utility server in the install patch and had it all along on my admin server I just didn't know what server to put under the utility server during server config section :-)

LoadRunner 9.51 – unable to record with Citrix object detail recording - This thread has been closed
Hi,

I am new to recording Citrix protocol.

I am trying to use object detail recording in VUGen, i.e LR can see some of the objects of the application and can perform actions such as syncing on text.

So far I have setup the following
Installed Citrix agent for presentation server as per LR setup instructions.
Installed Citrix client v11 and installed the patch for client v10+ on LoadRunner server
Citrix input for code generation option is turned on

Details of my environment -
Citrix agent for PS version: 9.50
Citrix Presentation Server version: 4.5
Citrix client version: 11
LoadRunner version: 9.51, installed on Win2003 server SP2, DEP disabled.

When I record, I remote desktop (RDP) to the LoadRunner server , run VuGen and then record using Citrix_ICA protocol. I can record and replay no problem. I just can’t get LR to recognise any context sensitive stuff e.g obj_mouse_click.

Where have I gone wrong?

Did you select "use citrix agent input for code generation" option in recording options?
"use Citrix input for code generation" option is turned on

Citrix administrator did a silent install of the agent and did not install properly.

He reinstalled the agent manually; issue resolved.

Citrix agent was not installed properly using silent install. Server administrator re-run the installation and worked OK.

how to add "Insert text check" btn to floating toolbar?
I've seen Vugen 9.x demo where the user had a "insert text check" icon on the floating toolbar that appeared when he was recording a session.

Clicking that btn caused a "web_reg_find()" function to be inserted.

Unfortunately my Vugen client does NOT have that btn on the floating toolbar. Any ideas on how I can add it?

Thanks in advance...

What is the protocol you are using? For few protocols you may need to manually add the text check after the recording. Eg. Web (Click&Script)

Yes, I'm using Web(Click&Script). So, what's the trick for adding the "insert text check" btn when using that protocol?

There is no trick here. After recording the script, add the web_reg_find to the script manually. This is the only trick.
Hmm, does web_reg_find() really work with Web (Click & Script) protocol?

Ie, maybe they removed the shortcut from the floating toolbar for a reason...?
It should work. In C&S text automation is manual. Let me know if you face any issue.
Thanks for the quick reply. Actually I am facing a wierd issue. I've got a very simple Web (click & script) script that works until I add in the web_reg_find().

All it does is go to the ITRC and log in. that part works find.

But... when I add web_reg_find(), I then get the red error: "Error -27216: Invalid Argument number" n the replay log. This appears to be my web_reg_find(). I'm uploading a screen snapshot.

Any suggestions?

----
Also, do you happen to know how to make VuGen show line numbers in the "Script" mode editor?
Your syntax is wrong.

Eg. web_reg_find("Text=Welcome", LAST );

Right click in the script > Add Step > web_reg_find. It gives you an editor to generate the function with proper syntax.

I dont think we can display line number. my be an ER
Awesome, that new web_reg_find() syntax works,thanks!!

And that tip about right-clicking in the script body and doing "insert | new step | web_reg_find" to get a function editor is even better!! Now I see how to invert the sense of the test (ie, to have it fail if it finds the string "error").

----
One last question: is there any problem with having more than one web_reg_find() in the same spot? Ie, I want to have 2 web_reg_find() statements before I invoke web_browser() to fetch the page...

#1/2) The first web_reg_find() would do a positive test (look for a certain string), and fail if it's NOT found.

#2/2) The second web_reg_find() would do a negative test (look for an "error" string, and fail if it IS found.

Is that ok? Or should I be implementing that via a different techique?
I was going to say that the "View | Status bar" wasn't working on my VuGen client (version 9.51), but it turns out it actually is working... sort of...

Ie, it adds a tiny status bar at the bottom of the Vugen window, and on the far right it says "Line:28" (or whatever line I've selected in the script editor window).

So, I should've awarded more points - sorry about that...

But actually what I'm really looking for is something equivalent to doing "vi somefile" and then ":set number" (ie, displaying the line number beside EVERY line in the file).

Can Vugen be made to do THAT?
How to measure external System Time? - This thread has been closed
I have the following question to measure external system time? For example
there are two systems A & B, B is where our data gets saved and to get some information from backend to populate the values based selected option we get displayed with read-only values as this values get from b system.

Based on the condition can someone help me how to find the external system time?
You might be able to get some response times using HP Diagnostics, provided you can instrument the external system.
But this tool doesnt give for each senario i guess right, please do give me more details or any help document.
You need to have license for HP Diagnostics server and J2EE/.Net addin in controller.

Note: Depending on the amount of instrumentation this tool adds performance degradation to your system.

This is agent based tool and you can control what, when and how to monitor from diagnostics server.

I would suggest going through manual or somebody from this forum can help if they have any documents on this.

I would suggest get a trail version, instrument it and check if this is what you need.

LR recording of Outlook anyone? - This thread has been closed
Has anyone ever recorded Microsoft Outlook using LoadRunner for stress testing purposes?
What protocol did you use?
Microsoft Outlook can be scripted using the MAPI protocol. You will have to code the entire script manually using the MAPI commands in the function reference for sending mail, receiving mails etc. However, I would also like to tell you that MAPI supports older versions of Outlook and hence I had trouble making my script work with the latest outlook that I had. This is one thing to keep in mind.

I just tried with IMAP protocol just for knowledge but its not capturing anything while recording.

Is that the reason we have to code the entire script?
Yes. you will have to code everything, right from the user id/password to be used to login to the outlook to all the operations you would like to perform.

I've tried the MAPI protocol and it's working. I've managed to successfully send an email to myself using LR :-)

The only problem I now have is how to get rid of the 'a program is trying to access email addresses you have stored in outlook. do you want to allow this.' dialog, as it is introducing a manual step in my script and is affecting the response times that I'm capturing.
Any ideas would be most welcome.

To overcome the current problem, I would suggest you to create a new Outlook account just for your testing and use that for your scripts. The current problem you are encountering is because of using your current outlook that is configured to your mails. Also, do you have outlook open/active when you are replaying the script?

We had to make several customizations in order to successfully test MAPI. Here are a few notes:

Your main test account (authenticated when you start the outlook client) will need rights to access all of the mailboxes that you will be using in order to suppress the "allow" message that you are receiving.

Each generator needs the Outlook client installed

Each generator needs outlook profiles for all test users that will be authenticating through that generator

Each generator needs to be standing by with the agent process, not service, running.

Using Exchange, we were receiving security messages that were interrupting the test run. To suppress these we had to use the Exchange Admin pack to customize the Outlook security settings. This required an update to the Exchange server, as well as registry settings on the generators to direct them to check the settings.
I've tried using two different email accounts - one for sending from and one for sending to, but I still get the "allow" message.
Is this what you meant?

Laura,
Thanks also for the info.
I've asked our IT support about the mailbox access rights. I'll see what they say.

Thanks for your continued help on this.
Managed to find a solution to the security question problem. Used a little application called 'Click Yes'.

Proxy connection timeout value configuration - This thread has been closed
Is it possible to configure the connection timeout value for proxy connections in LoadRunner?

Apparently the default proxy connection timeout is about approximately 20sec. Below is a sample output from proxy connection timeout:

Time in seconds since 1/1/70: 1249388993
Action.c(17): web_set_secure_proxy was successful [MsgId: MMSG-26392]
Action.c(18): Continuing after Error -27796: Failed to connect to server "xx.xx.xx.xx:8080": [10060] Connection timed out [MsgId: MERR-27796]
Time in seconds since 1/1/70: 1249389014
think this is more to do with your request/response timeout than your proxy. Set the timeout value in your script > Run-time Settings > Preferences > Advanced > Http Request timeout/Http response timeout.
Thanks, but actually if the problem would be in the HTTP request connect timeout, the error code would be -27783. And in any case my HTTP request timeouts have been set to 120sec.

It seems that there is a separate value for proxy connection timeouts, but is it configurable? Or is there some other timeout value on the vugen TCP/IP-stack equivalent? Or does this timeout come somewhere from OS TCP/IP-stack?
You will have to configure this timeout at the proxy server as you cannot configure this at your Vugen. The obj.conf file might need to be modified at your proxy server end. Refer below link for the values to be changed: http://docs.sun.com/app/docs/doc/819-3708/6n5tldh57?a=view

Timeout Values
Timeouts have a significant impact on server performance. Setting the optimal timeout for the Proxy Server helps to conserve network resources.
There are two instance-specific SAFs (server application functions) and one global parameter that can be used to configure timeout values within the Proxy Server.
This section contains the following topics:
init-proxy SAF (obj.conf)
http-client-config SAF (obj.conf)
KeepAliveTimeout (magnus.conf)
init-proxy SAF (obj.conf)
The init-proxy function initializes the Proxy Server’s internal settings. This function is called during the initialization of the Proxy Server, but should also be specified in the obj.conf file to ensure that the values are initialized properly.
The syntax of this function is as follows:
Init fn=init-proxy timeout=seconds timeout-2=seconds
In the previous example, the following parameters have direct applicability to Proxy Server timeout settings for the init-proxy SAF:
timeout (proxy timeout)– The proxy timeout parameter tells the server how long to wait before aborting an idle connection. A high proxy timeout value commits a valuable proxy thread to a potentially down client for a long time. A low timeout value aborts CGI scripts that take a long time to produce results, such as a database query gateway.
To determine the best proxy timeout for the server, consider these issues:
Will the Proxy Server be handling many database queries or CGI scripts?
Will the Proxy Server be handling a small enough number of requests that a process can be spared at any given time?
If you answered yes to either of these questions, you may decide to set a high proxy timeout value. The highest proxy timeout value recommended is 1 hour. The default value is 300 seconds (5 minutes).
You can view or modify the proxy timeout value by accessing the Configure System Preferences page under the Preferences tab in the Server Manager. This parameter is referenced as Proxy Timeout.
timeout-2 (timeout after interrupt)– The timeout after interrupt value tells the Proxy Server how much time it must continue writing a cache file after a client has aborted the transaction. In other words, if the Proxy Server has almost finished caching a document and the client aborts the connection, the server can continue caching the document until it reaches the timeout after interrupt value.
The highest recommended timeout after interrupt value is 5 minutes. The default value is 15 seconds.
http-client-config SAF (obj.conf)
The http-client-config function configures the Proxy Server’s HTTP client.
The syntax of this function is as follows:
Init fn=http-client-config
keep-alive=(true|false)
keep-alive-timeout=seconds
always-use-keep-alive=(true|false)
protocol=HTTP Protocol
proxy-agent="Proxy-agent HTTP request header"
The settings are defined as follows:
keep-alive– (Optional) Boolean that indicates whether the HTTP client should attempt to use persistent connections. The default is true.
keep-alive-timeout– (Optional) The maximum number of seconds to keep a persistent connection open. The default is 29.
always-use-keep-alive– (Optional) Boolean that indicates whether the HTTP client can reuse existing persistent connections for all types of requests. The default is false, meaning persistent connections will not be reused for non-GET requests or for requests with a body.
protocol– (Optional) HTTP protocol version string. By default, the HTTP client uses either HTTP/1.0 or HTTP/1.1, based on the contents of the HTTP request. In general, do not use the protocol parameter unless you encounter specific protocol interoperability problems.
proxy-agent– (Optional) Value of the Proxy-agent HTTP request header. The default is a string that contains the Proxy Server product name and version.
KeepAliveTimeout (magnus.conf)
This parameter determines the maximum time (in seconds) that the server holds open HTTP keep-alive connections or persistent connections between the client and the Proxy Server. The default is 30 seconds. The connection times out if idle for more than 30 seconds. The maximum is 300 seconds (5 minutes).
Problem solved. The problem was that the default TcpMaxConnectRetransmissions in Windows TCP/IP stack was 3.

The intervals between connection retransmissions in Windows OS seem to be such that it takes always about 20sec to
timeout failing TCP connection attempts.

Increasing the TcpMaxConnectRetransmissions parameter in registry helped to solve this issue. So actually this problem had nothing to do with Loadrunner.

When playback a web application, i'm getting the following error.

"Warning: Extension LrXml.dll reports error -1 on call to function ExtPerThreadInitialize
Error: Vuser failed to initialize extension LrXml.dll.
Vuser Terminated."

Please help me to resolve this problem.

Reinstall load runner

Performance center 9.0License renewal - This thread has been closed
Our performance center 9.0 current licenses will be ending this month; we are planning to get/renew the license from hp, what is the correct way to apply the new license to the performance center?

Could someone help me, what is the procedure to update/apply new license. Do we need to delete all the hosts from the Performance center and apply the license or just directly update the license from PC Admin page, or anything needs to update from DB side.

Appreciate your suggestions.
You just log into the PC admin site and select License and enter your new codes. Consult the PC admin guide if you are not sure.

All other servers will pick up the new license from the database.
The Performance Center License will be automatically pushed down to the utility server after applying it.
The Host (LoadRunner) License will be pushed down to all the Hosts machines (controllers not Load Generators) and the utility server. This configuration part after applying the license is similar to a reset in the Admin Site (under server configuration).

If the hosts are not correctly updated for some reasons, you can either:
* Perform a reset from the Admin site to force their reconfiguration,
* Delete and add again the problematic host.

The process as said in the previous post is very straightforward. I'm just giving you some heads up in case you may experience any issues.
we have sucessfully updated the PC and Hostlicenses......

Load Generator error - This thread has been closed
Here i am facing an error while running the script with 3different Load generators.

I am running script in remote machine.

Machine NTB0742 (my machine connected to "Machine X" remotely)

LGenerator: CPU6766 (where Vugen is installed) --- Result failed

LGenerator: NTB0742 (nothing installed related to LR)--Result--failed to connect machine

LGenerator: Localhost-- Result PASSED
(File attached for reference)
_______________________________________________
Procedure i did:
I created script and selected option"Connect to Controller" (from TOOLS menu)
In Controller vuser window, i given the Load generator machine names under Load generator tab.

Hello Prasad,

I hope you have installed the Loadgenerator agent on the machines where you are getting the failure as I can read that you have not installed LR on one machine and have only Vugen on the other machine which means that these machines cannot be used as Loadgenerators.

First,ensure that you ahve installed the LG agent on these machines.Next, check if the process magentproc.exe is running in your windows task manager.

Once you are sure of the above two steps, go to the LG tab in your controller and click on each LG name and click on connect and see if the connection is successful.

If the connection is not successful, then check if there is a firewall between the LG and the controller machine and see if the ports 54345 and 443 are open.
thank you so much for kind reply.

I was informed by one of my friend, dat no need to install LG in any machines, if u select a specific machine as LG it will automatically install LG in it.

that is why i selected different machines.
so i hope im wrong.
_____

1 comment: