This is a migrated thread and some comments may be shown as answers.

Session State being maintained between calls.

1 Answer 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jason Pritchard
Top achievements
Rank 1
Jason Pritchard asked on 21 Jun 2010, 02:14 PM
Hello

As I continue with the evaluation, I noticed that session state is sometimes being maintained between calls. IE. One test runs, opens the browser, logs into site, performs some actions and then closes the browser. Next test opens browser. Attempts to login with login button but button is not visible as it determines that we are still logged in. This does not happen each time. Sometimes there is enough of a delay between one browser closing and the next browser opening. How can I delay execution between tests. Test machine is Quad Core with 16g of ram... May be responding to fast?...

Also: This test is run on IE. There are no instances of IE open when the test are run(I know that the session state is shared between IE instances). The only application running is WebUI. 

Any Ideas.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 21 Jun 2010, 06:09 PM
Hello Jason Pritchard,

First, thank you for taking the time to evaluate WebUI Test Studio.

For your session problem I can think of two possible solutions:

  1. It sounds like your logged sesssion information is being stored in a cookie. You can start each test with a "Clear Cookies" step in order to purge any left over session information. Or along the same line of thinking, however the logged on session information is stored, clear that information from wherever it is being stored.
  2. You can add a thread delay as part of a cleanup override in custom code. Add a code behind file to the test and put this little bit of code in it:
public override void CleanUp()
{
    base.CleanUp();
    System.Threading.Thread.Sleep(3000);
}

Sincerely yours,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Jason Pritchard
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or