Thursday 22 May 2014

Serialization methods used in FLEX Protocol in LoadRunner 11.52

Recording settings


A. Use only a single protocol - FLEX

B. In the recording settings ensure the following options:

1. Use URL based recording mode
2. Under Flex Configuration check the box– Do not serialize externalize objects.
3. Set Port mapping as WinInet level.
C. Disable Flex RTMP node (Used during video streaming)

Serialization in Flex scripts

A. UseGraniteDS configuration:

Defines the server side Data Service configuration. If you select this option, do not select Use Flex
LCDS/BlazeDS jars to serialize the messages. Ensure that the granit-config.xml file matches the one
 deployed on the server.


B. Using External Java Serializer:

You can use the Java classes from the Flex server to serialize AMF messages in your script. This process
 has been simplified.
so that you need to include the application JAR files only if the AMF objects
 implement an externalizable interface.


1. In the Recording Options > Flex > Externalizable Objects node, select Serialize objects using and select
 Custom Java Classes from the menu.


2. Add the relevant files by using the Add all classes in folder or Add JAR or Zip file buttons.
Add the following files:


  •  For Adobe BlazeDS or Adobe LCDS, add the following JAR files:

             flex-messaging-common.jar

             flex-messaging-core.jar

  •  Regenerate the script and note any errors. Open the recording options dialog box using the
     Generation.

Options button and add the necessary application JAR files.



  •  Ensure that the added files exist in the same location both on the VuGen machine and on all load
    generators.
 The Limitations for 
the Java Serializer are it Supports JDK versions 1.6 and earlier, Supported servers
 are Adobe BlazeDS and Adobe Livecycle DS,


Microsoft .NET classes are not supported. During code generation VuGen performs a validity test of 
the request buffers by verifying that the buffer can be read and written using the provided jars. Failure
in this validity test indicates that the classes are incompatible with LoadRunner.

C. LoadRunner Serializer:

You can attempt to serialize externalizable objects using the LoadRunner serializer. Ensure that you
have saved all open scripts because this option may result in unexpected errors or invalid steps.

No comments:

Post a Comment