LoadRunner Flex / amf Protocol


Flex

Flex software development kit provides user interface components like button, data grids, layouts. Flex work as a presentation layer for n-tier web applications.

It maintains a state, where it can send, receive data from server side without reloading the page. Flex works just like AJAX.

Working on Flex Protocol

1. Choose multi protocol recording and select Web, Flex or Web, AMF protocol depending on the requirement.

2. Set the Flex code generation options and don’t forget to provide path of the flex jar files. To Get valid xml we require jar files, which were used by developers like,

  • flex-messaging-core.jar
  • flex-messaging-common.jar
  • flex-messaging-opt.jar
  • flex-messaging-proxy.jar
  • flex-messaging-remoting.jar

3. Start recording the business flow. After completion of recording, in the script you can see the there are flex_amf_call with BEGIN_ARGUMENTS, then XML formatted values and END_ARGUMENTS.

4. To correlate the values in amf request, go to tree view .

5. Find the dynamic value in xml grid of the response and right click and create a parameter.

6. Provide file name and parameter name where you want to capture the dynamic value.

7. Then replace all the instances of that value in the script with the created parameter.

P.S. : Thanks to Rahul Awasthi.

9 Comments

  1. Major thanks for the article post. Will read on…

  2. Praveen Dama says:

    Good one, really helps

  3. pradeep says:

    here i am not able to select both protocal at a time . that is flex and web prototcal.
    but u r saying that select both protocal at time

    • admin says:

      hi pradeep, you can select combination of web and flex or web and amf, but if you want to record only flex part then you have to choose flex protocol only, it depends on your requirement.
      Remember you cannot select combination of flex and amf protocol due to compatibility issues.

  4. suresh says:

    I just go through your website its showing me the info what am expecting thanks for the Admin team..

  5. Mahadevan says:

    HI

    we are using Loadrunner 11.5 to script for a flex application, during regeneration it is converting all the web_request from binary to xml format but it is able to convert only few of response into readable format and we are getting an exceptions is ASObject is not externizable. Please need help in understanding what i am missing. Also we havent imported any Application specific jar files is this needed?

    thanks

    • admin says:

      Hi,
      I have faced the same issue, to resolve it I tried adding application specific jar in loadrunner but it didn’t work. Then I tried using Neoload (performance testing tool) to record and reply. It worked…I must say, Its better than Loadrunner for flex base applications. It has better approach for flex base applications.
      I would recommend Neoload for this particular situation. Thanks.

  6. yasmeen says:

    nice steps but please provide in detail the correlation part..and diffrence when v can use amf and when v can use flex.

Leave a Reply