Example: lr.deserialize

In the following example, lr.deserialize opens the _string object into ASCII components for parameterization. The data is contained in the first binary file under the Vuser directory (index=0).

public class Actions {
// Public function: init 
      public int init() throws Throwable {
          _string = "java.awt.Point __CURRENT_OBJECT = {" +
                     "int x = #5#" +
                     "int y = #8#" +
          "}";
    java.awt.Point p = (java.awt.Point)lr.deserialize(_string,0);
         map.set_point(p);
      }
}


To parameterize the values, use the normal correlation methods. Right-click on the value and choose Replace with Parameter. 
 
_string = "java.awt.Point __CURRENT_OBJECT = {" +
                     "int x = #<Param1>#" +
                     "int y = #8#" +