Contributions
Re: Capture header value from POST to transfer to subsequent GET's header?
If I read that correctly you can use standard property expansion in the value field of a header, even if right click functionality is not available.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes2CommentsRe: Capture Header Value For Property Transfer
Remove the dot before [0] andtoString() is probably not necessary as the property value will always be set as string. groovyUtils.setPropertyValue("Properties", "originalFilename", value[0])7 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.4KViews1like0CommentsRe: adding assertions in soap ui to validate xml response tags with database values
Did you click the Declare button under theXPath expression header to add namespace declaration? A wildcard couldbe used toskip the declaration if thatcauses a problem //*:counter_party_risk_list[1]/*:counter_party_risk[1] https://www.soapui.org/docs/functional-testing/validating-messages/validating-xml-messages.html3.7KViews0likes1CommentRe: adding assertions in soap ui to validate xml response tags with database values
You canstart with a JDBC request to query database values and XPath assertions to compare the result to XML response. https://community.smartbear.com/t5/SoapUI-Pro/Compare-Results-of-Soap-Response-with-JDBC-Response/td-p/352793.7KViews0likes3CommentsRe: Groovy Script To Read Pattern in a logfile, extract data and do date calculation
def logfile = '''2018-02-26 10:41:21,076 [KilimWorker-4] TRACE org.hibernate.type.descriptor.sql.BasicBinder - binding parameter [6] as [VARCHAR] - REFER 2018-02-26 10:41:21,077 [KilimWorker-4] TRACE org.hibernate.type.descriptor.sql.BasicBinder - binding parameter [7] as [VARCHAR] - PRE_REFER 2018-02-26 10:41:21,077 [KilimWorker-4] TRACE org.hibernate.type.descriptor.sql.BasicBinder - binding parameter [8] as [TIMESTAMP] - 2018-02-08 23:00:52 2018-02-26 10:41:21,078 [KilimWorker-4] DEBUG com.vedaadvantage.dp3.manager.actor.Message - Audit event Individual_Duplicate_Check_Referred - End 2018-02-26 10:41:21,078 [KilimWorker-4] DEBUG com.vedaadvantage.dp3.manager.actor.DispatcherActor - execute ''' logfile.eachLine { currentLine, lineNumber -> if (currentLine.contains( 'Individual_Duplicate_Check_Referred' )) { previousLine = logfile.readLines()[lineNumber - 1] } } def timeStamp = previousLine.split(' - ').last(); def Date ts = new Date().parse("yyyy-MM-dd HH:mm:ss", timeStamp) log.info new Date() - ts1.6KViews0likes1Comment