16 years ago
SOAP UI - Multiple cookies in server response via SET-COOKIE
Maintain HTTP Sessions does not work for us. Hence, we wrote a custom groovy script to copy SET-COOKIE response header to the subsequent request COOKIE.
Our test case set up requires cookies to be persisted across multiple HTTP invocations.
What we observed that our server returns multiple SET-COOKIE headers such as:
Set-Cookie: aaaa=1234; Domain=.abc.com; Path=/
Set-Cookie: bbbb=5678; Domain=.abc.com; Path=/
Set-Cookie: cccc=9012; Domain=.abc.com; Path=/
Set-Cookie: dddd=1111; Domain=.abc.com; Path=/
SOAP-UI response only shows the LAST cookie in the RESPONSE
Set-Cookie: dddd=1111; Domain=.abc.com; Path=/
Further, the API does not allow us to read MULTIPLE SET-COOKIE values, hence all our subsequent TEST STEPS fail.
This feature is important to us as it is a key component of our architecture.
Any help or pointers to read multiple COOKIE values?
Our test case set up requires cookies to be persisted across multiple HTTP invocations.
What we observed that our server returns multiple SET-COOKIE headers such as:
Set-Cookie: aaaa=1234; Domain=.abc.com; Path=/
Set-Cookie: bbbb=5678; Domain=.abc.com; Path=/
Set-Cookie: cccc=9012; Domain=.abc.com; Path=/
Set-Cookie: dddd=1111; Domain=.abc.com; Path=/
SOAP-UI response only shows the LAST cookie in the RESPONSE
Set-Cookie: dddd=1111; Domain=.abc.com; Path=/
Further, the API does not allow us to read MULTIPLE SET-COOKIE values, hence all our subsequent TEST STEPS fail.
This feature is important to us as it is a key component of our architecture.
Any help or pointers to read multiple COOKIE values?