Forum Discussion
GIE_SI2M_Suppor
15 years agoNew Contributor
Hi Ole!
Thank you for your Help!
It's work fine now.
I just didn't understood the first part , the "was this a SOAP Request" ones.
So we managed to make somethink like :
(after the def Location and getResponseFilename(name) part)
int i=0
for( a in testRunner.testCase.testSteps["Requete RC"].testRequest.response.attachments )
{
i++
def fileName = context.expand( '${Requete RC#Response#declare namespace ns2=\'http://ws_dadsu_cp_cr.si2m.fr/\'; //ns2:recevoirCr_Reponse[1]/envCrRetourneArray[1]/envCrRetourne['+i+']/nomEnveloppeCr[1]}' )
com.eviware.soapui.support.Tools.writeAll( new FileOutputStream( Location+fileName ), a.inputStream )
}
It work just fine, as far we tried.
Regards
Pierre
Thank you for your Help!
It's work fine now.
I just didn't understood the first part , the "was this a SOAP Request" ones.
So we managed to make somethink like :
(after the def Location and getResponseFilename(name) part)
int i=0
for( a in testRunner.testCase.testSteps["Requete RC"].testRequest.response.attachments )
{
i++
def fileName = context.expand( '${Requete RC#Response#declare namespace ns2=\'http://ws_dadsu_cp_cr.si2m.fr/\'; //ns2:recevoirCr_Reponse[1]/envCrRetourneArray[1]/envCrRetourne['+i+']/nomEnveloppeCr[1]}' )
com.eviware.soapui.support.Tools.writeAll( new FileOutputStream( Location+fileName ), a.inputStream )
}
It work just fine, as far we tried.
Regards
Pierre