in

ArtOfTest, Inc. Community Forums

Discuss and ask questions about ArtOfTest's products.

Can't run quick start sample code

Last post 08-23-2008 8:49 AM by mr_chuckles. 18 replies.
Page 1 of 2 (19 items) 1 2 Next >
Sort Posts: Previous Next
  • 10-23-2007 1:25 AM

    Can't run quick start sample code

    I've just installed WebAii and tried to run the quick start sample code but the browser shows only "about:blank" in the navigation bar and blocks. I tried IE and Firefox. I've checked with the browser manually, connection is good. Am I missing something?

      Error    1    TestCase 'WEBAIITEST.Class1.test1'
    failed: System.TimeoutException : Timed out waiting for new browser to connect. Waited: 60000 msec.
       at ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor)
       at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle)
       at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser()
       at WEBAIITEST.Class1.test1

    System: Vista Business 64, Visual Studio 2005 

  • 10-23-2007 7:28 AM In reply to

    Re: Can't run quick start sample code

    There is currently a known bug that blocks WebAii from running on 64bit. Do you have access to a 32bit machine?  This issue should be resolved in our next release. Sorry about that.

    ArtOfTest, Inc.
  • 08-11-2008 5:18 AM In reply to

    Re: Can't run quick start sample code

    could anyone give a quick example? I have a problem with timeout on IE or Firefox. I don't test only by myself but my coworker is trying to pass a test.

    Here is a config file


    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <configSections>
        <section name="WebAii.Settings" type="ArtOfTest.WebAii.Core.SettingsConfigSectionHandler,ArtOfTest.WebAii, Version=1.1.900.0, Culture=neutral, PublicKeyToken=4FD5F65BE123776C"/>
      </configSections>

      <WebAii.Settings
        annotateExecution="false"
        baseUrl="http://localhost/yolkdev/"
        clientReadyTimeout="50000"
        defaultBrowser="InternetExplorer"
        enableScriptLogging="false"
        enableUILessRequestViewing="false"
        executionDelay="0"
        executionTimeout="60000"
        localWebServer="None"
        logLocation="C:\WebAiiLog\"
        queryEventLogErrorsOnExit="false"
        simulatedMouseMoveSpeed="0.3"
        webAppPhysicalPath=""
      />

    </configuration>

    Test with NUnit Test

    [TestFixture]
        public class Test
        {
            [Test]
            [Description("My simple demo")]
            public void Test1()
            {
                var manager = new Manager(true);
                manager.LaunchNewBrowser();

                manager.ActiveBrowser.NavigateTo("http://localhost/sample1/");

                Assert.AreEqual("Sample 1", manager.ActiveBrowser.Find.ByTagIndex("title", 0).InnerText);
            }
        }

    Thanks,

     Vorleak

     

     

     

     

  • 08-11-2008 8:45 AM In reply to

    Re: Can't run quick start sample code

    What platform are you running on?

    ArtOfTest, Inc.
  • 08-11-2008 11:40 AM In reply to

    Re: Can't run quick start sample code

    I am running on Window XP using VS 2008.

    Thanks,

    Vorleak

  • 08-11-2008 2:13 PM In reply to

    Re: Can't run quick start sample code

    Looking at your code above, looks like you are missing a manager.Start() call before the LaunchNewBrowser().

    ArtOfTest, Inc.
  • 08-11-2008 8:08 PM In reply to

    Re: Can't run quick start sample code

    Thank for your help, but it doesn't work with Firefox if I changed defaultBrowser="InternetExplorer" to defaultBrowser="FireFox" which still get Timeout error.

    Thanks,
    Vorleak

  • 08-11-2008 9:10 PM In reply to

    Re: Can't run quick start sample code

    Did you install 1.1 or 1.0?

    ArtOfTest, Inc.
  • 08-12-2008 2:47 AM In reply to

    Re: Can't run quick start sample code

     I have installed WebAii 1.1.

     Thanks,
    Vorleak

  • 08-12-2008 2:14 PM In reply to

    Re: Can't run quick start sample code

    If you open up the Firefox add-on's dialog, do you see WebAii's extension listed?

    ArtOfTest, Inc.
  • 08-12-2008 8:06 PM In reply to

    Re: Can't run quick start sample code

    Yes, I see. It is enable as well.
    I'm using FireFox 3.0.1. I would think it doesn't support, Doesn't it?

    Thanks,
    Vorleak

  • 08-12-2008 9:00 PM In reply to

    Re: Can't run quick start sample code

    We updated the WebAii 1.1 build on 8/8 to work with 3.0.1. There was a bug in our rdf file that caused 3.0.1 not to work. If you downloaded WebAii before 8/8 then that is the problem. Simply re-download, un-install what you have and re-install the new build

    ArtOfTest, Inc.
  • 08-14-2008 8:06 PM In reply to

    Re: Can't run quick start sample code

     Thanks, Now it works with FireFox but only we need to do a bit stuff with Browser just click on Tools -> Options -> Tabs -> Select a new window. I guess it doesn't support with a new tab in FireFox.

    Regards,
    Vorleak

    Filed under: ,
  • 08-21-2008 10:42 AM In reply to

    Re: Can't run quick start sample code

    admin:

    There is currently a known bug that blocks WebAii from running on 64bit. Do you have access to a 32bit machine?  This issue should be resolved in our next release. Sorry about that.

     

     Running in 64bit Vista, VS2008.

     Follow quick start, get everything done correctly, select test to run, browser launches and......

     ummm.

    Well, that's sort of it.

    I really hoped this was the silver bullet to my testing woes. It would seem to not be the case.

     Unless you have any suggestions, that is.

  • 08-21-2008 3:51 PM In reply to

    Re: Can't run quick start sample code

    Do you have IE protection Mode disabled on Vista?

    ArtOfTest, Inc.
Page 1 of 2 (19 items) 1 2 Next >
Copyrights © 2008 ArtOfTest, Inc. All rights reserved.