AnsweredAssumed Answered

Web Service Execution to Virtual Http/S Respond

Question asked by TerryScottTaylor on Sep 21, 2015
Latest reply on Sep 23, 2015 by salman.jarved

Hi All,

  I am trying to create a setup where my lisa endpoint will mock through data for a specific set of cases, but if there are no cases defined will push the inbound request to the actual service in the QA environment.  Basically so we can have some canned request/responses and still leave QA with the ability to perform actual testing against the service as they need to.  At this point, the part that is creating problems for me is getting a simple web service execution to actually respond back via http/s respond.

 

Again, I'm looking eventually to have an inbound http/s request (a web service soap request), and then to conditionally either return a canned response or invoke the actual process.

My current vsm looks like this (I'm only trying to prove through capturing an inbound request, forwarding a request to the service and then returning the result), and I'm getting an error that the http/s respond cannot find a response object.  I think that I'm missing something simple...

 

sampleVSM.png

 

 

And the error is:

 ============================================================================ | java.lang.RuntimeException: There is no response in the testing context to respond with. ============================================================================ | Step: HTTP/S Respond ---------------------------------------------------------------------------- | Message: There is no response in the testing context to respond with. ---------------------------------------------------------------------------- | Trapped Exception: There is no response in the testing context to respond with. | Trapped Message: java.lang.RuntimeException: There is no response in the testing context to respond with. ---------------------------------------------------------------------------- STACK TRACE java.lang.RuntimeException: There is no response in the testing context to respond with. at com.itko.lisa.vse.stateful.protocol.http.HttpRespondStep.setupResponseInfoHeaderAndContent(HttpRespondStep.java:113) at com.itko.lisa.vse.stateful.protocol.http.HttpRespondStep.respond(HttpRespondStep.java:92) at com.itko.lisa.vse.stateful.BaseRespondStep.execute(BaseRespondStep.java:223) at com.itko.lisa.test.TestNode.executeNode(TestNode.java:993) at com.itko.lisa.test.TestCase.execute(TestCase.java:1160) at com.itko.lisa.test.TestCase.execute(TestCase.java:1075) at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1060) at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1005) at com.itko.lisa.coordinator.Instance.run(Instance.java:199) ============================================================================</Body> 


Outcomes