Share this page

# 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#" +

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: