Contributions
Groovy reading from Data Source - Grid
hi i'm trying to read from my Data Source of type grid i'm always getting the last element. context.testCase.getTestStepByName("xPathsToRemoveB4Compare").setStartRow("0") def ds = testRunner.testCase.testSteps['xPathsToRemoveB4Compare'] def rowCount = context.testCase.getTestStepByName("xPathsToRemoveB4Compare").rowCount ds.repositionAtStartRow( testRunner, context) def element = ds.getPropertyValue("eName") it seems that the command ds.repositionAtStartRow( testRunner, context) is doing nothing.1.4KViews0likes1Comment- 7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.8KViews0likes1Comment
Re: comparing two xml response
Problem Solved, i wrote a groovy script that remove elements //read Biztalk response def policy = context.expand( '${Get-Data....}' ) def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context) def policyBT = groovyUtils.getXmlHolder( policy) //remove unCompare Elements policyBT.removeDomNodes("//RetrieveTime") policyBT.removeDomNodes("//RetrospectiveTime") //read DataPower response def policyD = context.expand( '${Get-Data....}' ) def policyDP = groovyUtils.getXmlHolder( policyD) //remove unCompare Elements policyDP.removeDomNodes("//RetrieveTime") policyDP.removeDomNodes("//RetrospectiveTime") //export fixxed response XML value into TestCase properites for comparing in the Next Step def policyBTstr = policyBT.prettyXml def policyDPstr = policyDP.prettyXml log.info policyDPstr testRunner.testCase.setPropertyValue('BT-h-response', policyBTstr) testRunner.testCase.setPropertyValue('DP-h-response',policyDPstr) After That I'm running an Assertion step with XPath Match. my only problem now is that in project suit i would expect Details but i see only: [Equals] Simple Equals FAILED [XPath Match] XPath Match FAILED7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.8KViews0likes3Commentscomparing two xml response
hi i am shifting my svc service to different platform and i would like to test both services the original and the new one with same request and compare the response. the response is not 100% identical i have element with execution time that i need to ignore. also the response contain UTF-8 Characters, any suggestions for simple solution?2.9KViews0likes6Comments