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

StackOverflowException on Manager.LaunchNewBrowser

3 Answers 92 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sydney
Top achievements
Rank 1
Sydney asked on 27 Jun 2011, 08:34 PM
I installed the Telerik WebAii test framework about a year ago and all worked fine.  Recently, I had a hard-drive failure, so in rebuilding my machine, I installed the latest version.  Now none of my tests run.  I either get a hang or a StackOverflowException when I hit Manager.LaunchNewBrowser, no matter which browser I choose.  Just in case there was some breaking change, I created a new unit test using the telerik NUnit template.  It has the same problem.  

Any idea what the problem might be?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 30 Jun 2011, 02:49 PM
Hello Sydney,

I'm sorry to here about your problem, but to be able to assist you diagnose this problem I need the following additional pieces of information.

1. A copy of problematic test to see if we can reproduce the problem locally.
2. The version of the .Net Framework you are working with.
3. Install the latest versions of the browsers you are using, and configure them. See haw to do that in our online documentation here
4. Are you seeing the same exception if you create a new test, or everything is running ok?

Best wishes,
Plamen
the Telerik team
Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

Have you looked at the new Online User Guide for Telerik Test Studio?
0
Sydney
Top achievements
Rank 1
answered on 30 Jun 2011, 05:49 PM
Thanks for the response.  

1.  The sample test generated by the Telerik template fails (pasted below).  
2.  I am using.NET Framework v 4.0
3.  I've configured both IE and Firefox according to the instructions
4.  See #1.  The exception comes well before any actual test steps are performed - it's on Manager.LaunchBrowser.

Here's the sample test:

[Test]
public void SampleWebAiiTest()
{
    // Launch a browser instance
    Manager.LaunchNewBrowser(BrowserType.FireFox);
 
    // The active browser
    ActiveBrowser.NavigateTo("http://www.google.com");
 
    // Find the google search box and set it to "Telerik";
    Find.ByName<HtmlInputText>("q").Text = "Telerik";
 
    // Click the Search button
    Find.ByName<HtmlInputSubmit>("btnG").Click();
 
    // Validate the search contain the 'Telerik' text
    Assert.IsTrue(ActiveBrowser.ContainsText("Telerik"));
}

In running it just now, the test seemed to hang and then I got a windows notice that Task Runner failed, at which point the unit test stopped with a status of Aborted.  However, running subsequently, it just keeps running but no browser is launched, so that may have been coincidental.
0
Plamen
Telerik team
answered on 01 Jul 2011, 03:43 PM
Hello Sydney,

I have tried many different ways to reproduce your problem locally on my machine, but everything is working perfectly. My concerning is that maybe there is different kind of problem with your PC resulted from your hard drive failure. Please install the Testing Framework on virtual machine or other machine and try if everything works that way. Just be sure that the other machine meet the system requirements described here.

Greetings,
Plamen
the Telerik team
Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

Have you looked at the new Online User Guide for Telerik Test Studio?
Tags
General Discussions
Asked by
Sydney
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Sydney
Top achievements
Rank 1
Share this question
or