Forum Discussion

PaulMS's avatar
PaulMS
Super Contributor
9 years ago

Re: JDBC request with date from another JDBC response and stored procedure

You need a lower case t for context.testCase

1 Reply

  • Perchishka's avatar
    Perchishka
    Occasional Contributor

    Thank you, very much!

    I did it!

     

    assert context.ResponseasXML
    def parsedXml = new XmlSlurper().parseText(context.ResponseasXML)
    def dt = parsedXml.'**'.find { it.name() == 'PS_SUBSCRIBE_DATA_290.CHANGED_DATE'} as String 
    
    def dd = dt.substring(0, dt.lastIndexOf("."))
    log.info( dd )
    context.testCase.setPropertyValue('CHANGED_DATE', dd)