Forum Discussion
SmartBear_Suppo
Alumni
13 years agoInteresting. So you still need the "Maintain HTTP Session" option checked to maintain it from step 1 to step 2, but it interferes for different loops.
What I would recommend is resetting the Cookies at the end of each loop. So try the following:
- add a Groovy script step right before the "DataSource Loop" step
- add the following code
This is from a very informative post that Siking's blog about SoapUI cookie management:
http://siking.wordpress.com/2013/07/25/ ... anagement/
Thanks,
Michael Giller
SmartBear Software
What I would recommend is resetting the Cookies at the end of each loop. So try the following:
- add a Groovy script step right before the "DataSource Loop" step
- add the following code
import com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport
import org.apache.http.impl.client.BasicCookieStore
def mySoapUIHttpClient = HttpClientSupport.getHttpClient()
def myCookieStore = mySoapUIHttpClient.getCookieStore()
myCookieStore.clear()
This is from a very informative post that Siking's blog about SoapUI cookie management:
http://siking.wordpress.com/2013/07/25/ ... anagement/
Thanks,
Michael Giller
SmartBear Software