Serialize Flex Scripts

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 drop-down 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:

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

      • flex-messaging-common.jar

      • flex-messaging-core.jar

    2. 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.

  3. Ensure that the added files exist in the same location both on the VuGen machine and on all load generators.

    For details, see Externalizable Objects in Flex Scripts.

    Notes and Limitations for the Java Serializer:

    • Supported JDK versions: 1.6 and earlier.

    • Supported servers: 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 VuGen.

Back to top

Built-in Serializer

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

  1. Save all open scripts in VuGen.

  2. In the Recording Options > Flex > Externalizable Objects node, select Serialize objects using and select LoadRunner AMF serializer.

Back to top