Forum Discussion
janjan
13 years agoNew Contributor
def licz1 = context.expand( '${AdresyProduktowKlienta_Get - TEST 1#Response#declare namespace ns1=\'http://......\'; count(//ns1:AdresyProduktowKlienta_GetRs[1]/ns1:grupaKlienta)}' ) as Integer
def licz2 = context.expand( '${AdresyProduktowKlienta_Get - TEST 1#Response#declare namespace ns1=\'http://......\'; count(//ns1:AdresyProduktowKlienta_GetRs[1]/ns1:grupaKlienta[1]/ns1:umowaIdOut)}' ) as Integer
if( !context.hasProperty("myCounter1") ){
context.setProperty("myCounter1", 0)
}
if( !context.hasProperty("myCounter2") ){
context.setProperty("myCounter2", 0)
}
def myCounter1 = context.getCounter("myCounter1")
def myCounter2 = context.getCounter("myCounter2")
myCounter1 ++
myCounter2 ++
context.setProperty("myCounter1", myCounter1 )
context.setProperty("myCounter2", myCounter2 )
def licz2 = context.expand( '${AdresyProduktowKlienta_Get - TEST 1#Response#declare namespace ns1=\'http://......\'; count(//ns1:AdresyProduktowKlienta_GetRs[1]/ns1:grupaKlienta[1]/ns1:umowaIdOut)}' ) as Integer
if( !context.hasProperty("myCounter1") ){
context.setProperty("myCounter1", 0)
}
if( !context.hasProperty("myCounter2") ){
context.setProperty("myCounter2", 0)
}
def myCounter1 = context.getCounter("myCounter1")
def myCounter2 = context.getCounter("myCounter2")
myCounter1 ++
myCounter2 ++
context.setProperty("myCounter1", myCounter1 )
context.setProperty("myCounter2", myCounter2 )