Skip to main content

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


  1. Excellent article on load testing!!! This testing exhibits the ability of a software application/system to withstand actual load. Loadrunner training


Post a Comment

Popular posts from this blog

File operations in loadrunner with examples

In this post I will explain how to capture a value from server response and save to a text file using vugen. How to capture and save to text file using loadrunner: First I have recorded the script using and then i searched for IBM. We will get 10 results. I have captured all the 10 values and saved to a file. Here is the code for that.

NeoLoad Interview Questions and Answers

Here are some of the interview questions and answers on NeoLoad: What is NeoLoad? NeoLoad is a performance testing tool designed to test different types of web, standalone and mobile applications. What is the difference between Loadrunner, JMeter and NeoLoad? Click here for differences What are the different counters you monitor in NeoLoad? Average Response Time(requests), average response time(pages), average requests/s, average throughput, current response time(requests), current response time(pages), current requests, current throughput, current users count, controller cpu load, controller memory load etc. What are the different type of tools you can integrate with NeoLoad? App Dynamics, CA APM Integration, Dyna trace integration, HP ALM or Quality Center Integration, Java and Jamo Solutions M-eux Test Integration, Jenkins Integration, perfecto mobile integration, selenium integration. What are the different type of Operating systems you can mon