[Cookie] Clear Cookie

import com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport

 

def myCookies = testRunner.testCase.testSuite.project.testSuites['Login'].getTestCaseByName("Login").getTestStepByName("Login").testRequest.response.responseHeaders["Set-Cookie"]



log.info "Cookies number : "+myCookies.size()



for(String item:myCookies){

    log.info item

}



log.info("Clear all Cookies")

myCookies.clear()

 

你可能感兴趣的:(cookie)