StackOverflowException on Manager.LaunchNewBrowser

4 posts, 0 answers
  1. Sydney
    Sydney avatar
    20 posts
    Member since:
    Jun 2010

    Posted 27 Jun 2011 Link to this post

    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.
  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 30 Jun 2011 Link to this post

    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?
  3. Sydney
    Sydney avatar
    20 posts
    Member since:
    Jun 2010

    Posted 30 Jun 2011 Link to this post

    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.
  4. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 01 Jul 2011 Link to this post

    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?
Back to Top