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

Timed out waiting for browser

5 Answers 161 Views
Telerik Testing Framework
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Boris Rogge
Top achievements
Rank 1
Boris Rogge asked on 16 Sep 2009, 02:35 PM
Hello Telerik and WebUI Test studio experts,

I am currently investigation the WebUI studio and am trying to accomplish the following scenario:

1. Create a webUI test (using internet explorer)
2. Convert this webUI test into a nunit unit test
3. Execute the unit test from within visual studio (on the machine where the test was created)
4. Execute the unit test from the nunit console application (on the machine where the test was created)
5. Execute the unit test from the nunit console application (on our build machine which is a different machine)

Steps one to four I managed to get working. I have changed the IE configuration as described here (http://www.artoftest.com/support/webaii/topicsindex.aspx?topic=configureie7) and the tests are running successfully.

The fifth step is not working ! When running the unit tests from the console Internet Explorer is fired and the test seems to start correctly. However, after having started IE, nothing happens anymore. I have changed the settings for IE in the same way as I have done on my development machine (as far as I know).

The two machines have different configurations (Vista vs. 2008 server). On the Vista machine the webUI studio and visual studio are installed, while these are not installed on the 2008 server (we are using nant and msbuild to build the project and perform continuous integration).

I'm running the tests on the server from the console in order to be able to interact with the desktop.

Do I need to install VS and WebUI on the build machine in order to be able to execute the tests ? Or am I missing something else ?

Thanks in advance for your answers,

boris

5 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 16 Sep 2009, 06:05 PM
Hi Boris Rogge,

Let me see if I understand correctly what's happening.

  1. You recorded a WebUI test on your development machine
  2. You converted that test into a coded unit test file to run under NUnit
  3. The coded unit test runs fine on your development machine
  4. The same coded unit test does not run on your Server 2008 machine

First I can confirm that once a WebUI recorded test is converted into a coded unit test you don't need WebUI test studio to run it as a unit test. However it does rely on the WebAii test automation framework. Have you installed this framework on your server?

Kind regards,
Cody
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Boris Rogge
Top achievements
Rank 1
answered on 18 Sep 2009, 02:53 PM
Hi there Cody,

thanks for your answer. I have indeed installed the WebAii framework on the server. I'm even suspecting that this is working correctly because the unit test starts correctly and executes the first step, being starting up internet explorer.

However, at this point the requested URL is not loaded and the browser just sits there. I'l guessing it is a configuration issue (security related or ... ?) that is preventing the browser from loading the page to start the test with.

I ran into this problem on my devlopment machine as well but could fix it by changing the security settings (as described on the telerik website). I have made all these changes on the server as well, but to no avail.

Have you got any other ideas on what could be going wrong ?

Hope you shed some light on this issue. Thanks !

boris
0
Cody
Telerik team
answered on 18 Sep 2009, 03:55 PM
Hi Boris Rogge,

So the test does start, IE launches, but stops there. I'm guessing you must manually close IE after the test times out, correct?

Since you are trying to run your tests on Server 2008, please make sure your server is configured as outlined in this video.
 
Something else to try is to modify the test to launch the Firefox browser instead and see if that works. That will tell us whether or not the framework is working at all on your server machine.

Another thing to try is to complete uninstall all versions of WebAii framework (both Telerik and ArtOfTest), uninstall WebUI if it was ever installed, then install the Telerik WebAii framework again. Occasionally we've seen conflicts when both the Telerik and the ArtOfTest version of WebAii were installed at the same time. Cleaning the machine by uninstalling everything and then reinstalling usually solves that problem.

Greetings,
Cody
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Boris Rogge
Top achievements
Rank 1
answered on 21 Sep 2009, 09:02 AM
Hi Cody,

I'm not getter any further right now :-( This is what I have done so far:

1. Yes, I had seen the video and made those changes.
2. I have removed the WebAii framework from ArtOfTest, but have troubles removing the Telerik version. Can I see traces files or more information on the de-install because it is refusing to uninstall. I get a message that it could not be done but not reason or error code, or...

3. Behaviour on Internet Explorer is still the same.

Any ideas where I can go from here ?

On a side note: I have tried to run the test on firefox 3.5 on my development machine and get the same behaviour as with IE on the build server. Firefox starts up with the following url (about:blank?!!AOT!__link__26fe3a27-9295-4c78-a1ef-3f31c7772285!!!!814b9223_d429_48fa_8b48_2d57d4f90f2f!!!!__home__ef90e95d-d52e-49c7-93a8-7208b3ad438c) but then it stops. The test ran in Internet Explorer still works fine on the development machine.

Any help highly appreciated because I'd really need to get this up-and-running.

boris
0
Cody
Telerik team
answered on 21 Sep 2009, 02:47 PM
Hi Boris Rogge,

All right. Let's continue working on cleaning up the machine. Since it refuses to uninstall normally we have to do a manual uninstall.

  1. Uninstall any other Telerik products on that machine that will uninstall normally.
  2. Download Microsoft's Window Installer Cleaner Utility.
  3. Install it and use it to remove WebUI Test Studio from the list of installed programs. Since this utility only deletes the install data, we have to manually clean up the files.
  4. Delete the folder "C:\Program Files\Telerik"
  5. If it exists, delete the folder "C:\Program Files\ArtOfTest"
  6. If it exists, delete the folder "C:\Program Files\ArtOfTest Inc"
  7. If you installed ArtOfTest or Telerik programs on other disk drives, delete the same folders on those drives as well (e.g. D:\Program Files\ArtOfTest")
  8. If you are running a 64-bit version of windows, these folders will actually be contained in "C:\Program Files(x86):" and should be deleted from there as well.
  9. Open an explorer window and navigate to "C:\Windows\Assembly"
  10. Delete any assembly that starts with "ArtOfTest"
  11. Delete any assembly that starts with "Telerik"

Now your machine should be completely cleaned out of any ArtOfTest or Telerik products. Please re-install WebUI Test Studio and try again.

The problem you are experiencing with Firefox 3.5 is probably due to a minor incompatibility problem we discovered last with with Firefox 3.5. The Mozilla group removed a setting we are checking which is causing our Firefox extension to crash when it loads when it tries to look at this setting that no longer exists. We have a hotfix for this problem... and there's a way to work around the bug:

  1. Downgrade to any version of Firefox 3.0.x.
  2. Toggle the Tabbed Browsing setting (Tools -> Options -> Tabs tab -> New pages should be opened in a new window)
  3. Upgrade back to Firefox 3.5
  4. Make sure tabbed browsing is disabled (Tools -> Options -> Tabs tab -> Uncheck "Open new windows in a new tab")

That should create the setting our Firefox extension is looking for allowing it to run normally. I could also send you the hotfix file for this problem... but you'll need to open a support ticket first (the Forums don't support file attachments).

All the best,
Cody
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Telerik Testing Framework
Asked by
Boris Rogge
Top achievements
Rank 1
Answers by
Cody
Telerik team
Boris Rogge
Top achievements
Rank 1
Share this question
or