IE stopped working if coded ui tests executed continuously

310 Views Asked by At

I am executing 25 Coded UI dlls continuously(One by one) using .NET Reflector. Approximately they have 6000 actions. After executed 10 to 15 dlls , The IE gets crashed & throws a Pop-up "Internet Explorer has stopped working". Its occurring randomly and not for any Particular script or action.

I am using VS2012 Ultimate for Recording . Using MS Test Agent 2012 for Playback and using IE 11. Scripts are recorded in C# language.

Kindly help to resolve this issue. Thanks in Advance.

1

There are 1 best solutions below

0
Vishnu Das On

Some times long time time execution can cause this on IE. I too faced such issues during execution, i don't have a proper resolution for this. But what i did is implement below line of code after each test case

BrowserWindow.ClearCache();
BrowserWindow.ClearCookies();
BrowserWindow.SetFocus();
BrowserWindow.Refresh();