IE tests not running

4 posts, 0 answers
  1. John Woakes
    John Woakes avatar
    9 posts
    Member since:
    Mar 2009

    Posted 26 Jul 2010 Link to this post

    I have a test that worked with an older version of WebAii (Beta). I just downloaded the latest version and the tests that run with IE all fail but work with Firefox.

    The test fails when I call LaunchNewBrowser(). IE starts up and goes to "about:blank" and is functional (I can use it directly) but the method fails with exception

    System.TimeoutException : Wait for condition has timed out

    at ArtOfTest.Common.WaitSync.CheckResult(WaitSync waitString extraExceptionInfo)
    at ArtOfTest.Common.WaitSync.For(Predicate`1 predicateT targetBoolean invertConditionInt32 timeout)
    at ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor)
    at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunchBoolean waitForBrowserToConnectProcessWindowStyle windowStyleString arguments)
    at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunchBoolean waitForBrowserToConnect)
    at Marqui.Tests.wxWeb.ArtOfTest.TestArtOfTest.InitializeInstance() in TestArtOfTest.cs: line 36


    My test looks like this:

          SetTestMethod(this, "InitializeInstance");

          Manager.LaunchNewBrowser(BrowserType.InternetExplorer, true);

          ActiveBrowser.NavigateTo("http://www.google.ca");

    and I have a SetUp method that looks like this

        [SetUp]
        public void InitializeEachTest()
        {
          var settings = new Settings(BrowserType.InternetExplorer, LogLocation)
                           {
                             DefaultBrowser = BrowserType.InternetExplorer,
                             RecycleBrowser = true,
                             BaseUrl = TestSite,
                             ClientReadyTimeout = 60000,
                             ExecuteCommandTimeout = 60000,
                             AnnotateExecution = true,
                             AnnotationMode = AnnotationMode.All
                           };

          // Now call Initialize again with your updated settings object
          Initialize(settings, LogCaller);
        }


     John.
  2. Kiran
    Kiran avatar
    56 posts
    Member since:
    Dec 2008

    Posted 26 Jul 2010 Link to this post

    Hi,

    Instead of your code can you try out the code template of your code and try. Check the image for reference.
    Otherwise try to run the samples provided by WebAii. See the attachment for reference.
    Then let me know if its working.

    Thanks
    Kiran
  3. John Woakes
    John Woakes avatar
    9 posts
    Member since:
    Mar 2009

    Posted 26 Jul 2010 Link to this post

    I tried running the samples and got the same results - didn't work and got the same exception. In fact the samples are worse, they don't even work for FireFox!

  4. John Woakes
    John Woakes avatar
    9 posts
    Member since:
    Mar 2009

    Posted 26 Jul 2010 Link to this post

    I thought I would try and reinstall. I uninstalled and cleaned out the folder in Program Files, rebooted and did a fresh install and it is now working. I am guessing that there was still some of the previous code from the earlier install about.

Back to Top