Sequential Random Unique Each iteration,Each occurrence in Load Runner

Creating Parameters:

In the script View, select the string and right click on it. Then, select the replace with parameter.

Type the Name of the parameter in the new opened small window / popup. You can also select it from drop down. Then, select parameter type from the parameter type list. You may select any of the available types: Date/Time, file, Group Name, Random number, Unique number, User defined function, or Vuser ID (whichever is appropriate). Next, you may select next row as:
  • Sequential
  • Random
  • Unique
  • Same line as

At last, you will need to update values on:

Each iteration - It instructs the Vuser to use a new value for each iteration
Each occurrence - It instructs the Vuser to use a new value for each occurrence of the parameter

Once - It instructs the Vuser to update the value of the parameter only once during the execution.Data wizard is a great option for Parametrization in LoadRunner.

Objectives of parameterization:

· One of the main objective of parametrization is to simulate real user behavior while running the test and we also use this to solve below problem
· Solve Date constraints that may occur during playback
1. Eg: When Second Virtual User accessing the Application user may fail because of the 2/14/99 was yesterday!]
· Solve data caching that may occur during playback
1. Eg: When Second Virtual User accessing the Application, user will get data from Cache
· Solve unique constraints that may occur during playback
Eg: Order number 1234 is already here
· Solve data dependency that may occur during playback
· Emulate real user activity
Exercise the server (Some times when we are searching with same keyword, the request will not go to database and it will get the data from the webserver cache and it will not exercise the server. Parameterization will solve this problem)

How to create Parameters:

· Right click on the value and select “Replace with parameter” where we need to execute with different set of values.




· On the new window opened just give the Parameter name as user defined variable and Parmeter typeàselect any one from the drop down and Original Value will be default value and click on properties




· After clicking on properties new window will be opened then click on Edit with notepad button and enter some list of values.
Note: After entering values in notepad keep the cursor in new line and save the notepad and close it.


· After entering the different set of values we have to customize the parameter properties to execute the script as user’s perspective.
Parameter Customization:

1. Select Columnà By Number
àBy Name

These values are used when we have multiple columns in the same table with the same parameter type. We can select for each parameter by number as column number or by name as column name.



2. File Formatà Column Delimiter
  • First Data Line
Column Delimiter drop down has values Comma,Tab,Space which are used to separate multiple columns.

First Data Line is a number which it uses that number row data at the time of execution. For eg: if you increase the number to 2 by using up button then the execution starts from 2nd row data.
3. Select Next Row à Sequential
  • Random
  • Unique

Update Value on à Each Iteration
  •  Each Occurrence
  • Once



If you select Select Next Row as Sequential and Update Value On as Each iteration then the users will execute the data sequentially for each iteration.

Click on close button and press CTRL+L buttons then parameter properties window will open with all parameters in left side and right side parameters data window.

If you click on Simulate Parameter button and then enter the iterations in check box and then click on simulate button then we will get the user behavior when the time of execution how the parameters will pass to the vusers.



If you select Update value on as Each Occurrence we can not simulate the parameter.

If you select Update value on as Once then the vuser will take only one set of data for all vusers. For ex: In the above snapshot we will get jojo and bean for each and every vuser we execute.

If you select Select Next Row as Random and Update value on as Each iteration then the user will pick random data for each and every iteration. At that we have to select for one parameter these values and select Same line as that parameter name for remaining parameters

For Ex: If we select RandomàEach iteration for Username then we have to select Same line as username for password.

If you select Select Next Row as Unique and Update value on as Each Iteration or Each Occurrence then automatically When Out of Values and Allocate Vuser values in the controller will be enabled.

When Out Of Valuesà Abort Vuser
  •  Continue in a cyclic manner
  • Continue with last value

Allocate Vuser values in the controller(Radio Buttons):

Automatically allocate block size
Allocate ______ values for each vuser



If you have values less than vusers at that time we have to select UniqueàEach IterationàAbort Vuser then what ever the users extra are aborted from the execution.
OR

We can select UniqueàEach IterationàContinue in a cyclic manner

OR

We can select UniqueàEach IterationàContinue with last value

And we can select any of the two radio buttons for Allocate vuser values in the controller in the above three different cases

If you select Unique Each Occurrence only
Allocate ______ values for each vuser will be enabled for all the three cases

And you can click on Simulate Parameter button for each and every different options customized to view how the vuser behavior.

If you select Uniqueà Once all the vusers will execute with one set of data.
Once parameterization is done click on close button. Test the data execution procedure in the form of iterations in VUGen.

Action files in Loadrunner

The requests which agents on host machines issue to application servers are specified by a playback of actions created by the Vuser User Generator (VuGen.exe).
LoadRunner creates new scripts with three sections:


vuser_init: Most of the initiation operations are done with vuser_init action. We need to execute login only once if we are simulating shift duration. Here login related operations needs to be recorded. Since the bank executives login only once in their shift.

Action: All other bank executive repeated operations needs to be captured. And the login and logout operations should not be captured into action.

vuser_end: Most of the closure operations are done with vuser_end action. Here logout related operations needs to be recorded. Since the bank executives logout only once after his / her shift.

New Release of LoadRunner 12 version

The roadmap for LoadRunner 12 was presented at HP Discover Barcelona in December last year. Since that time, I've been lucky enough to have a beta copy of LR12 for evaluation purposes. Now that the product has been released, I'm able to share some of the new features that I've found to a wider audience.




Key observations / new features are:
Cloud-based load generators. HP describes this feature as "cloud bursting". Users now have the ability to provision load generators on AWS(Amazon Web Service) cloud servers from within LoadRunner or Performance Center. As well as this, the ports used to communicate between LoadRunner components such as Load Generators, Controllers, MI Listeners are user configurable through the new "network security manager" tool. This simplifies the setup process and allows more flexibility in distributed test networks or cloud-based test environments. It is even possible to configure different ports/proxies for each Load Generator.

Licensing - 50 vUsers free


We in the user community have been asking for this for a long time. Providing fully-functional applications that allow small-scale testing allow prolonged evaluations and proof-of-concept exercises. This is great, because it allows more people e.g. developers to get hands-on experience and see the potential benefits of using LoadRunner.

This is likely to improve the adoption rate for LoadRunner and prevent the erosion of market share to low-cost / no-cost providers of performance testing software.

All protocols are included in the "community edition" license, with the exception of GUI (UFT) and COM/DCOM protocols as well as those protocols in the "template" bundle (i.e. those vUser types whose scripts are manually created (rather than record/replay) such as C# .Net, VB .Net vUsers).

VUGEN improvements
There are a variety of improvements as you would expect. Key ones are:
The ability to review replay statistics for tests after each run.
Including details on total connections, disconnections and bytes downloaded.
The ability to edit common file types in the editor.
Support for recording in the Internet Explorer 11, Chrome v30 and Firefox v23 browsers.
The ability to create scripts from Wireshark or Fiddler files.
The ability to record HTML5 or SPDY protocols.

TruClient improvementsTruClient script converter. This basically replays your TruClient scripts and records the HTTP/HTML traffic allowing you to create these script typers from TruClient recordings. This is similar to recording GUI scripts and then converting to other script types.

The addition of support for Rendezvous points, IP spoofing, VTS2 and Shunra network virtualisation in TruClient scripts.

Linux Load Generator improvements
Building on the increased support for Linux Load Generators in 11.5x, LDAP, DNS, FTP, IMAP, ODBC, POP3, SMTP and Windows Sockets scripts can now be replayed through UNIX load generators.

CI/CD support
Better integration with Jenkins etc.

Platform support
Support for installation on Windows Server 2012.
(LoadRunner 11.x and PC 11.x only supported up to W2K8 which was a barrier to enterprise adoption).
LoadRunner components can now run in a "non-admin" user account with UAC and DEP enabled.

There are numerous other improvements which are well documented in the "About LoadRunner" section in LoadRunner help. Now that the community license is available, there's nothing stopping you from downloading it and giving it a go.

To get your own copy, navigate to www.hp.com/go/loadrunner and follow thre links to download LoadRunner. 


Source:  http://blog.trustiv.co.uk/(Bish)

Shunra in load runner

Shunra NV (Network Virtualization) for HP Software is the only HP-certified solution specifically designed to accelerate and optimize application performance testing across WAN, web, mobile and Cloud networks. Shunra NV for HP Software integrates seamlessly into HP LoadRunner and Performance Center, enhancing the accuracy of testing by incorporating production network conditions into the load and performance test environment.

Shunra NV for HP Software enables an effective application performance engineering methodology, providing the capabilities todiscover and then virtualize real-world network conditions in the test environment, analyze test results in order to isolate potential bottlenecks, and automatically deliver custom performance optimization recommendations.

Shunra NV for HP Software features easy configuration, requires no script editing and places no limits on test scheduling. In addition, test results and data are automatically stored with HP results files and segregated by emulated location for precise and actionable analysis.

From within the familiar HP Software interface, organizations can leverage Shunra NV for HP Software to:


Discover production network conditions and access Shunra's global library of mobile and broadband conditions directly from Performance Center and LoadRunner.
Enable each load generator in a test environment to emulate up to 100 different networks or locations, thereby reducing or eliminating reliance on remote load generators while also making it easy to configure multiple networks in a complex environment.
Allocate bandwidth per virtual user in a load test, a critical element for mobile app testing where bandwidth availability is dynamic and varies for each individual user.
Aggregate test results into a single database for ease and completeness of location-specific analysis.
Extend testing scripts with a single click.

Automate reporting and analysis for Performance Engineers, Line of Business Owners and other business constituents.

Because performance is the number one factor influencing application use and adoption, and ultimately business success, accurate and reliably predictive pre-production testing is a requirement. Shunra NV for HP LoadRunner and for HP Performance Center provides the capabilities needed to achieve this level of confidence with performance testing.

Shunra VE Desktop for HP LoadRunner

The only WAN emulation technology now featured and integrated directly within HP LoadRunner v9.5
Upgrade to HP LoadRunner 9.5 or HP Performance Center 9.5 and have access to Shunra's WAN emulator directly while load testing for the most successful performance testing results. Access to the only HP Certified WAN Emulation solution on the market that was co-developed by HP Software and Shunra offers new powerful benefits:

  • Enables each load generator to emulate a different network location
  • Eliminates the need to deploy load generators remotely
  • Aggregates end-to-end results into a single database
  • Replaces LoadRunner WAN Emulation (MWE), last seen in LoadRunner version 8.1 (released July 2005)
  • Achieves thorough performance testing with WAN Emulation
  • Makes existing testing scripts network-aware with a click of a button

WAN emulator is conducted on a per load generator basis. Since this is a co-developed solution, it is seamlessly integrated and intuitive to configure and use. There are no script edits required, no limits on test scheduling, and results are automatically saved within the scenario.

How does WAN Emulation work with load testing?
When configuring WAN Emulation within HP LoadRunner, there are no script changes required. For more advanced configurations, use the Network Editor capability to select advanced network settings no longer tied to a server. Key advanced testing options include:
  • Jitter and packet loss patterns
  • Asymmetric bandwidth
  • Congestion
  • Link Failures
  • Eliminate Global Load Generators
No need to install and manage load generators in remote offices around the world
Benefit directly from deployment of WAN Emulation with accurate user load testing
Ability to locally schedule, re-run or configure network aware testing
Enable scripts to act as if they are in any location

WAN Emulation with Load Testing is an Essential Best Practice
Defining a valid load test environment is complex. If the environment does not reflect real-world conditions it is probable that the results and decisions made to deploy the application will not be valid. Shunra's experience in helping customers maximize the effectiveness of their load testing process has shown that without incorporating the impact of the WAN on the production infrastructure, the results of load tests are usually incomplete. Use of Shunra WAN Emulation along with load testing enables the detection of:

Latency impact – Latency is the number one most significant network impact on applications today. It is also something that you have very little control over. Latency causes the transactions and sessions to stay open longer than they would on a LAN. Without incorporating the WAN effects of delay into a load test, memory usage, thread usage, and other critical server resources can be significantly understated.

Bandwidth limitations – Bandwidth limits how much data can be transferred in a certain amount of time. Its constraints affect transactions "in-flight" causing them to take longer to complete and impacting important server resources.

Network impact – Where specific response time goals are being targeted, it is important to incorporate the overall effect of the network into testing to examine the impact on total response time.

Shunra enables you to accurately assess total response time for remote users prior to deployment, and can analyze the breakdown of total response time into the client, network, and server components.

This enables users to diagnose and resolve transactions that will not consistently meet your response time goals.

Connection Timeout Error:Failed to connect server in load runner

" Error -27796: Failed to connect to server "test.propertyinstant.com:80": [10060] Connection timed out " this error.
Solution:
Go to Run time settings->Preferences->options, there in HTTP properties you will find on option "HTTP-request connect timeout" set it to 1000 and then re run it will not fail after this.

Please make sure that manually you are able to connect to server. If not then there is a problem with server.

TRY:


HTTP-request connect timeout (sec).......1000
HTTP-request receive timeout (sec)........600

HTTP Keep-Alive timeout (sec)................600