Service Virtualization

 View Only

Live stytem - response from live system

  • 1.  Live stytem - response from live system

    Posted Aug 28, 2019 10:51 AM
    ​Hi,
    How can I get the response from Live system in the model (Scripted Asseration)?
    Virtual service is in mode "Live Invocation"

    This working only in Most Efficient:

    import com.itko.lisa.VSE;
    import com.itko.lisa.vse.stateful.model.Request;
    import com.itko.util.ParameterList;
    import com.itko.util.Parameter;
    import java.util.ArrayList;
    import com.itko.lisa.vse.stateful.model.TransientResponse;
    import javax.xml.parsers.*;
    import javax.xml.xpath.*;
    import org.w3c.dom.*;
    import org.xml.sax.InputSource;

    ArrayList alResponse = testExec.getStateObject("lisa.vse.response");
    TransientResponse response = alResponse.get(0);
    responseBody = response.getBodyText();

    Thx