Forum Discussion
nosterling
14 years agoOccasional Contributor
//Parse
def findtxid = context.expand( '${find txid#ResponseAsXml#//Results[1]/ResultSet[1]}' )
def txid = new XmlParser().parseText(findtxid)
//Define the property
def Txids = ""
txid.Row.each{a->
Txids = Txids + "," + a.'TRANSACTION_TABLE.TT_ID'.text()
}
Txids = Txids.substring(1)
log.info "We get: " + Txids
//Write the value to the the property
def Result = testRunner.testCase.getTestStepByName( "Txids for delete" )
Result.setPropertyValue( "Txids", Txids.toString() )
def findtxid = context.expand( '${find txid#ResponseAsXml#//Results[1]/ResultSet[1]}' )
def txid = new XmlParser().parseText(findtxid)
//Define the property
def Txids = ""
txid.Row.each{a->
Txids = Txids + "," + a.'TRANSACTION_TABLE.TT_ID'.text()
}
Txids = Txids.substring(1)
log.info "We get: " + Txids
//Write the value to the the property
def Result = testRunner.testCase.getTestStepByName( "Txids for delete" )
Result.setPropertyValue( "Txids", Txids.toString() )
Related Content
Recent Discussions
- 5 hours agoemoya
- 9 hours agoMyBalanceNow
- 6 days agoKLWallace