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

IE tests not running

3 Answers 107 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John Woakes
Top achievements
Rank 1
John Woakes asked on 26 Jul 2010, 06:35 PM
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.

3 Answers, 1 is accepted

Sort by
0
Kiran
Top achievements
Rank 2
answered on 26 Jul 2010, 07:06 PM
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
0
John Woakes
Top achievements
Rank 1
answered on 26 Jul 2010, 08:56 PM
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!

0
John Woakes
Top achievements
Rank 1
answered on 26 Jul 2010, 09:44 PM
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.

Tags
General Discussions
Asked by
John Woakes
Top achievements
Rank 1
Answers by
Kiran
Top achievements
Rank 2
John Woakes
Top achievements
Rank 1
Share this question
or