header
header
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome, Guest. Please login or register.
November 23, 2008, 12:54:04 pm
Username: Password:
Login with username, password and session length

Forgot your password?
 
Latest posts of: Javier
Welcome, Guest. Please login or register.
November 23, 2008, 12:54:04 pm
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

  Show Posts
Pages: [1]
1  soapUI / soapUI / question about datasource on: July 09, 2007, 11:32:39 am
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 Huh

thanks!!!
2  soapUI / soapUI / Re: groovy utils - modify response on: July 06, 2007, 09:48:21 am
ahh good!!

 Cheesy
3  soapUI / soapUI / Re: Test request - conplex xsd on: July 06, 2007, 09:27:40 am
1. the fault message is:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:Client</faultcode>
         <faultstring>java.lang.RuntimeException: Unexpected subelement aplicaciones</faultstring>
         <detail>
            <Exception>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</Exception>
         </detail>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>


2.sorry, i'd want to say: "change xsd request by xml request".
for example:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <ns2:ejecutaProceso xmlns:ns2="http://ITG_ControlProcesosServicio.interfaz.controldeprocesos.itg.com/types">
         <param0 xmlns="http://ITG_ControlProcesosServicio.interfaz.controldeprocesos.itg.com/types">
            <parametrosEjecucion xmlns="http://model.modelonodosyprocesos.tg.com/xsd">
               ...
               <concentrador>
                  <aplicaciones xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
                  <codConcentrador>NODO_PRUEBA_C</codConcentrador>
                  <estadoAdministrativo xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
                  <estadoSistema xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
                  <fechaEstadoAdministrativo>2007-06-23T08:51:35.765Z</fechaEstadoAdministrativo>
                  <fechaEstadoSistema>2007-06-23T08:51:35.765Z</fechaEstadoSistema>
               </concentrador>
               ....
               ....
         </param0>
      </ns2:ejecutaProceso>
   </soapenv:Body>
</soapenv:Envelope>


thanx alot!!!
4  soapUI / soapUI / Re: groovy utils - modify response on: July 06, 2007, 09:13:38 am
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... Huh


5  soapUI / soapUI / Test request - conplex xsd on: July 05, 2007, 11:11:36 am
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:

...
<xs:element maxOccurs="unbounded" name="aplicaciones" nillable="true" type="ax21:Aplicacion" />
...
<xs:element name="Aplicacion" type="ax21:Aplicacion" />
<xs:complexType name="Aplicacion">
<xs:sequence>
<xs:element name="idAplicacion" type="xs:long" />
<xs:element maxOccurs="unbounded" name="nodos" nillable="true" type="ax21:Concentrador" />
<xs:element name="nombreAplicacion" nillable="true" type="xs:string" />
<xs:element maxOccurs="unbounded" name="tareas" nillable="true" type="ax21:Tarea" />
<xs:element name="url" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>

thanx alot!!!

Javier





6  soapUI / soapUI / Re: groovy utils - modify response on: July 03, 2007, 01:32:18 pm
yes...perfect!

i try to do a testsuite with several testcase like a sequence...i am passing the values from one test to other test...it is like a simulation...

thanx!!
7  soapUI / soapUI / Re: groovy utils - modify response on: July 03, 2007, 11:15:26 am
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!!!

8  soapUI / soapUI / groovy utils - modify response on: July 03, 2007, 09:25:57 am
hello!!
 
i have a method 'void' with this fault response:
 
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<soap:Fault>
<soap:Code>
<soap:Value>?</soap:Value>
</soap:Code>
<soap:Reason>
<!--1 or more repetitions:-->
<soap:Text xml:lang="?">?</soap:Text>
</soap:Reason>
</soap:Fault>
</soap:Body>
</soap:Envelope>
 
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: "?"   Huh
 
how I could resolve it?
 
thanx alot!!
Pages: [1]


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
header header
header
header