This issue becomes even more complicated and broken when calling "Run Test Case" Test Steps.
For example, I have:
Test Case A (Set to Maintain HTTP State)Test Step A1 -> Runs
Test Case BTest Step A2 -> Runs
Test Case CTest Case B (Set to Maintain HTTP State)Test Step B1
<--- Gets back a cookie containing the session IDTest Case C (Set to Maintain HTTP State)Test Step C1
<--- Uses the cooking containing the session IDEvery time I run Test Case A, it uses the cookie information from the very first run. I tried a setup/teardown script with the following code, but it doesn't work
import org.apache.commons.httpclient.HttpState;
log.info " Creating a new Http State..."
context.HttpState = new HttpState();
Any ideas on how to fix this?If
A does not maintain an HTTP State, then sequential Test Steps in
A, do not retain the cookie information. If
B or
C do not maintain an HTTP State, then they don't even pull the information from
A.
Thanks.