AnsweredAssumed Answered

How to Change the Response in VSE with ScritableDatProtocol

Question asked by Theneskumar on Nov 25, 2015
Latest reply on Sep 16, 2016 by soumik.bit

Hi ,

 

     I am using LISA 7.5 version and I am trying to get the reponse element and create the filter by below code. I am not sure why the error message coming at below red string

 

CODE;

         ParameterList allParams = lisa_vse_response.getArguments();

        for (int paramLoop=0;paramLoop<allParams.size();paramLoop++){

        if(allParams.get(paramLoop).getName().contains("WFContext_")){

        testExec.setStateValue("WFFilter_response_" + allParams.get(paramLoop).getName(),allParams.getParameterValue(allParams.get(paramLoop).getValue()));

        }

        }

 

Error:

 

java.lang.RuntimeException: Exception evaluating script: Sourced file: inline evaluation of: ``  import com.itko.util.ParameterList;      testExec.setStateValue("WFFilter_resp . . . '' : Typed variable declaration : Error in method invocation: Method getArguments() not found in class'com.itko.lisa.vse.stateful.model.Response' : at Line: 2 : in file: inline evaluation of: ``  import com.itko.util.ParameterList;      testExec.setStateValue("WFFilter_resp . . . '' : lisa_vse_response .getArguments ( )

 

 

java.lang.RuntimeException: Exception evaluating script: Sourced file: inline evaluation of: ``import com.itko.util.ParameterList;  ParameterList allParams = lisa_vse_response . . . '' : Typed variable declaration : Error in method invocation: Method getArguments() not found in class'com.itko.lisa.vse.stateful.model.Response' : at Line: 2 : in file: inline evaluation of: ``import com.itko.util.ParameterList;  ParameterList allParams = lisa_vse_response . . . '' : lisa_vse_response .getArguments ( )

 

 

  at com.itko.lisa.vse.stateful.protocol.scriptable.ScriptableDataProtocolHandler.updateResponse(ScriptableDataProtocolHandler.java:75)

  at com.itko.lisa.vse.stateful.protocol.DataProtocol.updateResponse(DataProtocol.java:140)

  at com.itko.lisa.vse.stateful.protocol.Marker.getTransaction(Marker.java:152)

  at com.itko.lisa.vse.stateful.protocol.TransactionLine$Line.next(TransactionLine.java:234)

  at com.itko.lisa.vse.stateful.protocol.TransactionLine$Line.next(TransactionLine.java:190)

  at com.itko.lisa.vse.stateful.recorder.TrafficMerger.getNextTransaction(TrafficMerger.java:477)

  at com.itko.lisa.vse.stateful.recorder.TrafficMerger.loadStatelessTransactions(TrafficMerger.java:431)

  at com.itko.lisa.vse.stateful.recorder.TrafficMerger.populateTraffic(TrafficMerger.java:121)

  at com.itko.lisa.vse.stateful.recorder.TrafficMerger.populateTraffic(TrafficMerger.java:97)

  at com.itko.lisa.vse.stateful.recorder.RecordingSession.storeRecordedTransactions(RecordingSession.java:859)

  at com.itko.lisa.vse.stateful.recorder.BuildProgressPanel$Worker.run(BuildProgressPanel.java:414)

  at java.lang.Thread.run(Unknown Source)

Attachments

Outcomes