Thank You kadne01 for providing sample script.
Hi All,
With the use of script provided by Neelima, i was able to store response from Responder step in web service. But still i am facing challenge in saving response in IMS service. I have added Scripted assertion in image response selection step. Used below mentioned scripts.
i am happy that its working for web service but for IMS, nothing is getting saved.
PFB script that i have use:
import com.itko.lisa.vse.stateful.model.TransientResponse;
responseList = testExec.getStateObject("lisa.vse.response");
TransientResponse response = responseList.get(0);
String respText = testExec.parseInState(response.getBodyText());
testExec.setStateValue("responsSEl",respText);
Can you please check and tell me the reason behind the same. Also please let me know if there are any alternatives.