Contributions
question about datasource
I want to do this: - test request - property transfer to datasource source: step-->testRequest ; Property-->Response target: step-->Datasource -Datasource: driver, url and query this is because i want to test that the data of request are OK in the DataBase... now i have this error: Mon Jul 09 12:12:43 CEST 2007:DEBUG:Setting targetStep for transfer [return] to null is it possible? is there any examples thanks!!!5.3KViews0likes1Comment- 5.6KViews0likes0Comments
Re: Test request - conplex xsd
1. the fault message is: soapenv:Client java.lang.RuntimeException: Unexpected subelement aplicaciones org.apache.axis2.AxisFault: java.lang.RuntimeException: Unexpected subelement aplicaciones at org.apache.axis2.AxisFault.makeFault(AxisFault.java:381) at com.xx.ame4t.itg.controldeprocesos.interfaz.itg_controlprocesosservicio.ITG_ControlProcesosMessageReceiverInOut.invokeBusinessLogic(ITG_ControlProcesosMessageReceiverInOut.java:163) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:144) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:279) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:116) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement aplicaciones at com.xx.ame4t.itg.controldeprocesos.interfaz.itg_controlprocesosservicio.ITG_ControlProcesosMessageReceiverInOut.fromOM(ITG_ControlProcesosMessageReceiverInOut.java:468) at com.xx.ame4t.itg.controldeprocesos.interfaz.itg_controlprocesosservicio.ITG_ControlProcesosMessageReceiverInOut.invokeBusinessLogic(ITG_ControlProcesosMessageReceiverInOut.java:67) ... 25 more Caused by: java.lang.RuntimeException: Unexpected subelement aplicaciones at com.xx.xx.modelonodosyprocesos.model.xsd.Aplicacion$Factory.parse(Aplicacion.java:749) at com.xx.xx.modelonodosyprocesos.model.xsd.Concentrador$Factory.parse(Concentrador.java:741) at com.xx.xx.modelonodosyprocesos.model.xsd.Aplicacion$Factory.parse(Aplicacion.java:765) at com.xx.xx.modelonodosyprocesos.model.xsd.ParametrosEjecucion$Factory.parse(ParametrosEjecucion.java:903) at com.xx.xx.modelonodosyprocesos.model.xsd.Proceso$Factory.parse(Proceso.java:438) at com.xx.ame4t.itg.controldeprocesos.interfaz.itg_controlprocesosservicio.types.EjecutaProceso$Factory.parse(EjecutaProceso.java:303) at com.xx.ame4t.itg.controldeprocesos.interfaz.itg_controlprocesosservicio.ITG_ControlProcesosMessageReceiverInOut.fromOM(ITG_ControlProcesosMessageReceiverInOut.java:399) ... 26 more 2.sorry, i'd want to say: "change xsd request by xml request". for example: ... NODO_PRUEBA_C 2007-06-23T08:51:35.765Z 2007-06-23T08:51:35.765Z .... .... thanx alot!!!2.6KViews0likes0CommentsRe: groovy utils - modify response
good! another question about this Testcase. Now, if i do a submit the request and works OK, there is not a Response. Then, the testcase fail: "--> Invalid/empty response"....i don't have any assertion... and i am not sure if it is a problem with the wsdl or the tool...5.6KViews0likes0CommentsTest request - conplex xsd
I have a problem with i create a new step: Test request. the steps are: - the tool generate a automatic request (xsd). - the endpoint is http://localhost/... ( mockservice) - submit request - response --> OK - modify endpoint to specific url : http://maq:port/.. ( web service ) - submit request - response --> fault - modify xsd request by xml request - submit request - response --> OK the problem maybe because some nodes are very complex, wsdl example: ... ... thanx alot!!! Javier7.8KViews0likes3CommentsRe: groovy utils - modify response
My "problem" is the void method: write ... i can't edit the response .. adding groovy script one idea .... use 'PropertyTransfer' .. transfer the data from response to porperty ... edit the values "?" by another ones using groovy utils...but it doesn't work. do you have another idea?? again...thanx alot!!!5.6KViews0likes0Commentsgroovy utils - modify response
hello!! i have a method 'void' with this fault response: ? ? the next step is modify the values with the groovy utils ( script ) because i want to use "mappers" from values to property file ( propertyTransfer ). the script is: def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ); log.info( groovyUtils.projectPath ); // create holder for last response def holder = groovyUtils.getXmlHolder( "write - Request#Response" ) holder.setNodeValue( "soap:Envelope/soap:Body/soap:Fault/soap:Code/soap:Value", "1" ); // update request with updated xml groovyUtils.setPropertyValue( "write - Request", "Response", holder.prettyXml ); this is ok...but the values of the property has this values: "?" how I could resolve it? thanx alot!!15KViews0likes8Comments