Forum Discussion

noidic's avatar
noidic
Occasional Contributor
17 years ago

Preserving Cookies through testcases

Hi All,

I'm quite new to SoapUI and trying to set up a test project for a new product.

The application requests that a cookie is added to every request to a web service. If I run all the test steps in one testcase, using maintain http session, it works fine, the cookie is added to every request automatically.
However, if I split up the testcases only the testcase containing the actual login request uses the cookie, the following testcases (invoked from a "main" testcase with run testcase steps) do not have the cookie set in their HTTPState.

Is there a way to preserve the cookie through the testcases? I'm not into Groovy yet so I probably miss options there.

Any help would be appreciated, I don't want to have only one testcase, or have every testcase to log in seperately.

Thanks in advance
No RepliesBe the first to reply