Strtok Function in Loadrunner with Example

//
Sometimes we want to capture all the values that match our specified delimiters and conditions but strtok function itself only captures the current value in the char token. Adding a sprintf function will allow you to store each of the values that you want to capture for later use (like choosing random) in different parameters.

Read More

Ajax Click and Script Functions in Loadrunner

//
The following function emulates the real behavior of Ajax click and script applications in Loadrunner.

Function Name
Description
ajax_accordion
This functions emulates the user extending or collapsing a Menu
ajax_autocomplete
This functions emulates the auto complete based on the text that we entered.
ajax_collapsiblepanel
This function emulates the user extending or collapsing some of the fields in the application.
ajax_rating
This function emulates the user setting a rating of a rating control.
ajax_reorderlist
This function emulates that reordering of lists.
ajax_slider
This function emulates setting of value using slide control.
ajax_tabs
This function emulates the user performing on folder-style tabs in atlas applications.
Read More

SAP Click and Script Functions in Loadrunner

//
SAP click and script functions emulates the real behavior of users performing on SAP business process using Loadrunner. VuGen records all the activity that user performed on the SAP application. The following functions are generated during recording.

sap_button
Emulates a user click action on SAP application button.
sap_check_box
It emulates user action performing on SAP GUI check box.
sap_drop_down_menu
It emulates user action performing on the drop down menu
sap_edit_field
It emulates that user click on any editable field.
sap_iview
It emulates SAP Enterprise Portal application iView frame on SAP GUI.
sap_list
It emulates the use of drop-down menu on multiple SAP GUI list for HTML application.
sap_menu
It emulates the user navigation on top level menu of SAP GUI.
sap_navigation_bar
Emulates the user action on navigation bar on SAP GUI web application.
sap_ok_code
It emulates the user typing text on ok code box on SAP GUI HTML application.
sap_portal
Emulates the user performing on SAP enterprise portal desktop.
sap_radio_group
Emulates that user choosing a radio button out of multiple radio button options.
sap_tab_strip
Emulates the user switching from one tab to another in web application.
sap_table
Emulates the user use on SAP tables or grid.
sap_tree_view
Emulates the actions on SAP GUI tree view object.
Read More

HP Stomrunner Load – Agile Performance Testing Tool from Loadrunner Team

//
So you working agile these days, the application developing has become faster and faster day by day and the release periods getting closer and closer with so many involved in development. You needed to be very easy to plan, run and scale your web and mobile performance testing so that any one regardless of his expertise can easily handle the agile testing process.

HP Stomrunner Load enables agile development team to easily test and tune the applications. Stomrunner Load is very simple, and it allow to easily design load test on cloud and identify the performance issues quickly.

You can use your Loadrunner scripts with Stomrunner Load. All you need to do is upload you scripts to Stomrunner Load.

You can try HP Stomrunner Load here..

Check out this video for more on HP Stomrunner Load.



Read More

SAP extends its reseller agreement with HP to sell Loadrunner

//
HP has recently signed a reseller agreement with SAP. On this agreement, SAP will resell all the HP Software testing products such as Loadrunner, UFT etc. SAP is offering all the HP solution under Sap Fortify by HP to identify the bugs/defects/issues that occur during development.

SAP believes that a company will suffer huge losses if there are any business interruptions, security and performance issues during production and it will also affect the brand image of the company. The SAP Fortify by HP products will help to detect the issues before the application goes to production and helps to fix the issues.

Sap Fortify by HP will help in the following areas:

  • It will help to identify and fix the software defects.
  • It will help to lower the cost of development of software.
  • It will fix the performance issues before application goes to the production.
  • It will help to fix all the security issues in the application.

Read More

Web Controller in Loadrunner - A New Feature From Loadrunner 12.02

//
HP has released a new feature called the Web Controller. The name itself indicates that now you can control your load test from the browser interface and can be accessed through a browser. Now, you can run your load tests from anywhere. It is just like a small HP Performance Center.

You can see some of the screenshots of the Loadrunner Web Controller here.

Web Controller 1

Web Controller 2

Web Controller 3



What are you waiting for... Let's go ahead and install the new version of Loadrunner.

Please note that this has been added in Loadrunner 12.02 as tech preview and not a fully functional component. You can give your feedback in this link.

For more Loadrunner Tutorials

Read More

Converting Fiddler Session to VuGen Script in Loadrunner

//
In this tutorial, I will show you how to convert Fiddler session to Loadrunner Script.

Download the fiddler from the following website: http://www.telerik.com/fiddler. You can also download chrome extension of fiddler here.

Fiddler Download


Fiddler Download 2
Fiddler Download 2

Click on Install, once you download the Fiddler, as shown in the following images.

Fiddler Installation 1

Fiddler Installation 2


Fiddler Installation 3

Fiddler Installation 4

Once you install the Fiddler go to Start -> Programs and Search for Fiddler OR go to Internet explorer and click on tools and click on Fiddler.

Fiddler Launch

Once you launch the fidller, click on WinConfig and Click on exempt all and click on save changes.

WinConfig Settings

Now, open the application in the internet explorer. The events will be automatically recorded in fiddler as shown in the following image.

Recorded Events

Once the navigation has been completed, click on save sessions.

Save All Sessions

The file will be saved with .SAZ extension.

Open the vugen, click on File Open->script/solution and select all files as shown in the image. and select the .saz file. 
All Files


The vugen will automatically converts .SAZ file to Loadrunner script.

Generating Vugen Script


Generating Vugen Script 2

Generating Vugen Script 3
Read More

Loadrunner 12.02 Protocol Updates and Changes

//
HP has released the new version of Loadrunner 12.02. HP team has changed a lot of changes in Loadrunner 12.02. The following protocols are updated with more user friendly features.

Citrix ICA:

Enhanced interactive logging: It will help you to go through the logs easily and help you find the issues quickly.

Text trapping: A new feature has been added for Java application in Citrix Agent.
Letest Version: Now, you can use the latest version of XenDesktop and NetScaler Access Gateway.

Web - HTTP/HTML:

There are many Features add to Web protocol

It supports the latest of Internet explorer, Chrome and Firefox.
New traffic filtering recording option.
GWT 2.5 and 2.5.1 Support
TLS1.1 and TLS1.2 Support

RTE Protocol: Now RTE protocol supports the latest of Windows 8.1, Windows 2012 R2 and IPV6 Support.

Oracle - Web: Now Oracle Web protocol has enhanced correlation rules for Oracle Fusion and Oracle ADF.

Flex: The new Flex protocol supports the latest of Flex and GraniteDS.

Web Services: Now, Web Services protocol supports SOAP 1.2.

TruClient:

Now, TrueClient protocol has come up with the better object identification method. This helps good control over scripting when compared with the previous of Loadrunner.

HP has provided step-by-step examples on how use object identification methods in the Loadrunner documentation. This will definitely will be a great feature in this version.

Now, you have the option to import and export between the TruClient scripts. This will help scripting easy.

Read More

Siebel Web Protocol in Loadrunner - Challenging protocol in Loadrunner

//
Siebel Customer Relationship Management (CRM) is one of the top CRM applications, which help organizations to achieve maximum sales, marketing, customer service etc.

Siebel protocol is similar to Web (HTTP/HTML) protocol, but has made lot of changes to the settings to work with Siebel Web Protocol. It is one of the complex protocols where we face lot of issues during scripting, but HP has provided predefined correlation rules, which will help you the scripting easy.

Before recording make sure you set the following recording options:

  1. Go to Recording Options (CTRL+F7) -> Recording -> HTML-based script -> HTML Advanced and set “A script containing explicit URLs only (e.g. web_url, web_sumit_data)”.
    Siebel Recording Options 1
    Siebel Recording Options 1
  2. In, “Non HTML-generated elements (e.g. JavaScript, VBScript, ActiveX, Applets)” set “Do not Record”.
  3. Go to HTTP Properties -> Advanced node and set “clear the Reset context for each action check box”. 
    Siebel Recording Options 2
    Siebel Recording Options 2

Set the following run-time settings after recording:

Go to Run-time settings -> Browser -> Browser Emulation and set “simulate new user on each iteration”.

Siebel Runtime Settings
Siebel Runtime Settings
Some of the Common Errors in Siebel Protocol:

Back or Refresh Error:

We get error, when we pass the wrong TimeStamp or SWEC Count. For every request, the SWEC count will increase, if we pass the wrong SWEC, it will fail by throwing “Back or Refresh Error”.

Server Busy Error:

The following error is one of the common error which we get frequently during scripting and execution.

"The server you are trying to access is either busy or experiencing difficulties. Please close the Web browser, open a new browser window, and try logging in again.[01:55:21] "

The main cause for this the sessions might be less, we should ask for Siebel administrator to increase the sessions in the server.

The following commands will be useful to increase the sessions in the server:

srvrmgr:dev_srv1> CHANGE PARAM MAXMTsERVERS=4 FOR COMP eautoObjMgr_DB
Command completed successfully.

srvrmgr:dev_srv1> CHANGE PARAM MAXTASKS=400 FOR COMP eautoObjMgr_DB
Command completed successfully.

Read More

Web_add_header and web_add_auto_header usage in Loadrunner

//
Web_add_header:

Web_add_header function is used to add header only to HTTP request that follows it.

Read More

Difference Between HTML and URL Mode in Loadrunner

//
What is the difference between HTML and URL Mode?

HTML Mode:

HTML Mode is the default recording mode available in Loadrunner for Web (HTTP/HTML) scripts. When you record an application in HTML mode it will not record all the resources, but it will keep in extras as shown below and when the same script is executed it will parse all the urls one by one in extras and It will take some time to parse all the urls. Please find an example of HTML Mode below for Bing.com.

Bing.com in HTML Mode:

Read More

You will get 50 Vusers License From Loadrunner 12 Community Edition.

//
HP has changed his way of doing business with their products. It is trying every possibility to get the business and to give the competition to other tools.

Jmeter, Neoload and some of the top tools are also giving a huge competition to the HP Loadrunner. HP is also rapidly upgrading the Loadrunner to meet the latest technology upgrades and the competition.

HP has come up with Loadrunner 12 community edition, where you will get 50 Vusers license to performance test your application. You can test your app on any protocol with the 50 Vusers. This helps you a lot before finalizing in buying the license of Loadrunner. Sometimes we buy the license and get to know that we can't do the performance testing with the Loadrunner where this will become the hectic. 

Here is another good news now, you can purchase the vusers license with your credit card or PayPal, which was not there earlier. HP has come up with a website called pronq.com where we can buy the licenses easily.

By the way which tool you prefer for performance testing of an application? Loadrunner, Jmeter, Neoload, IBM Rational......etc.
Read More

Flex Protocol in Loadrunner - Recording | Correlation | Jars | Errors

//
Overview of Flex Protocol:

What is Flex:
Flex emulates a client and server application method. Flex uses different technologies to develop Rich Internet Applications using Flash Player. Adobe Flex is a powerful framework, using we can develop powerful interactive applications. These flex applications are set of MXML and some other files combinely play the script on the flash player or also called swf files.

Examples: Share market graphs, that change dynamically over the internet. Usually, these type of applications are developed using Adobe Flex.


Recording: We usually record this application with multi protocol web and flex protocol. 


Correlation in Flex Protocol: For regular web functions we use the web_reg_save_param function for correlation. For flex we use lr_xml_get_values and lr_xml_find functions to capture the values from the response. The name itself indicates that we are capturing xml values from the response.


The main value which we do correlation in Flex protocol is DSID.

Once you record the script in Flex protocol search for the DSID in the script, the one which comes first is where the dynamic DSID value generated. Sometimes the script generates DSID multiple times. So, we need be careful while doing correlation.

We need to use lr_xml_get_value function to correlate this value. If you are new to this function, go to response of that request and go through the xml path and find the DSID value in XML path, right click and click on save parameter. It will automatically create lr_xml_get_values.

A typical DSID value looks like this "8129988E-DC65-8CF6-B808-98760876GE98".

Please find the attached screenshot for your reference.


Jar Files in Flex Protocol: You need to use some common jar files for flex protocol in Loadrunner 11.4 and earlier versions. From Loadrunner 11.5 there is no need to use jars. The common jars are.

Flex-messaging-core. jar

Flex-messaging-common. jar
Flex-messaging-opt. jar
Flex-messaging-proxy. jar
Flex-messaging-remoting. jar

Make sure to map the jars in the correct path and upload in the controller. If you do changes to the path make sure they are updated in your run time settings as well. You can also update the jar paths in.usr file in vugen.


Issues and how to fix them: The Java version plays a vital role during the scripting part. Make sure you use the same Java version for all your scripting part and the execution part. If we use different Java version the xml paths will change, validation and the correlations will fail.


How to set Java path and Jars: You can set your Java path and jars in runtime settings of the script.


How to download jar files for Flex: Click Here



Read More

How many load generators do we need for Performance Testing

//
It's one of the regular questions that will be asked as to how many load generators do we need in Loadrunner or any other tool. It depends upon the testing tool that we use and the configuration of our system (Example: CPU, Memory, Operating System etc.).

Without knowing the exact load generators sometimes the performance testing results may vary. For example, if we need four load generators instead we ran the test with only two load generators and the load generator machines will get slower and the permance testing results may vary.

Recently I have gone through an article where the HP Loadrunner team beautifully explained about how many load generators do we need for our test.

We need to follow these steps to calculate how many load generators do we need. 

  1. First, we need to record the script and enhance the script to work with multiple users and iterations.
  2. Once the script is ready, upload the script to controller and run the script with one user using a few minutes delay before the start of the script and observe any increase in RAM when the vuser starts. This is the First Vuser memory.
  3. Now run the test with five users and with five iterations and execute the test.  Keep the same starting delay and add next vuser with one minute delay and observe how much increase in ram for every vuser and do average for the last four vusers RAM  and do not count the first vuser RAM usage.
  4. Now we need to find how much Total RAM we have in our machine and give 750 MB to 1000 MB for system resources.
  5. Find what is the 75 percent of remaining RAM after allocating RAM for system resources. For example, if the system has 4 GB of RAM, and 1 GB for system resources and in 3GB find what is the 75 percent of RAM, which will be 2250 MB, Here I have calculated 1GB equals to 1000MB.
  6. Now subtract the first vuser memory.
  7. Divide with average of the last 4 Virtual vusers.
  8. and at last add the +1 (This is the one vuser first we have subtracted).

Load Generators Calculation Formula
Load Generators Calculation Formula
Hope it helps, and Please note it just a reference it may not work for some of the protocols like Citrix, RDP, any protocol with the term GUI in it, and QTP\UFT scripts.

Do you know: From Loadrunner 12 we have Load generator calculator. Check in your loadrunner 12 installation.

Reference: http://h30499.www3.hp.com/t5/HP-LoadRunner-and-Performance/The-Protocol-Complexity-Matrix-and-what-it-means-for-your-load/ba-p/6559424
Read More

Loadrunner Vs Jmeter Vs NeoLoad with Table and Differences

//
Criteria
Loadrunner
Jmeter
NeoLoad
Commercial License
Yes
No (Open Source Tool and has Good Online Community Support)
Yes
Launched By
HP
Apache Foundations
Neotys/NeoLoad
Protocol Coverage
It supports more than 30 protocols including enterprise software SAP
Focus primarily on HTTP and Java-related protocols (JMS, JDBC).Also supports FTP, LDAP, SOAP.
NeoLoad has good support of more than 40 Protocols. It supports enterprise Applications SAP, Oracle Siebel etc.
Record and Playback capability
Yes
Yes
Yes
Image Based Recognition
Yes
Yes
Yes
Text Based Recognition
Yes
Yes
Yes
Real Time Test Monitoring
Yes
Minimum
Yes
Result Reporting
Yes
Minimum Support(No GUI Graphs - Need to use additional tools/plugins for graphs)
Yes
Cost
Expensive
Free
Low when compared with the Loadrunner
Load Generation
Depending on Type of License
Unlimited Load Generation
Depending on Type of License
IPSpoofing
Yes
No
Yes
Cloud Based Solution
Yes
No
Yes
Browser Support
Yes
Yes
Yes
Firefox Browser
Yes
Yes
Yes
Chrome Browser
Yes
Yes
Yes
Internet Explorer Browser
Yes
Yes
Yes
Device OS Support
Yes
Yes
Yes
Android  4.1
Upto 4.0.3
Yes(with additoinal plugins)
Yes
Android  4.1
Yes
Yes(with additoinal plugins)
Yes
Access to Device Logs
Yes
Yes
Yes
Support to PC OS
Yes
Yes
Yes
Windows XP and above
Yes
Yes
Yes
Mac OSX
No
Yes
No
Linux
Yes(Only Load Generators)
Yes
Yes
Parallel Execution on Multiple Devices
Yes
Yes
Yes
Read More