How do I disable browsers opening when running a unit test?

2 posts, 0 answers
  1. pearl oguchi
    pearl oguchi avatar
    3 posts
    Member since:
    Apr 2010

    Posted 03 Jun 2010 Link to this post

    Hello. I have a problem please. I have written a few unit tests that when i run them, new browser windows open and demonstrates each step. This is all well and good. Now my problem is that I want to run load tests and i have included those unit tests in the test mix. The problem is that when i start to run the load test for say 250 users, i get 250 browser window opening, which causes my computer to crash.

    My question is this: is there a way for me to disable the function (if any) that allows the test actually launch browser windows? Or do i have to amend the code in the test so it doesn't launch a new browser window?

    Thanks for your help.

    Pearl

    P.S. I am using the Webaii 2010 VS Unit Test.
    Also, further to this, can you tell me how to run VS load tests using webaii unit tests? Whenever i run a load tests with my unit tests, the browser times out and does not navigate to the requested url.
  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 03 Jun 2010 Link to this post

    Hello pearl oguchi,

    First I'd like to better understand how you are creating and running your load tests. I see your reference to a VS2010 unit test, but that doesn't give me the whole picture. I take it that you are creating .aii tests and then converting them into coded unit tests? Then what?

    Unfortunately WebAii tests aren't very well suited to be used for load testing. They are best suited for functional testing of a website. The whole premise of a WebAii test is to automatically drive a browser window.  Therefore they must open a browser window in order to run the test. They are not capable of talking directly to a webserver, acting like a web browser in the process.

    Best wishes,
    Cody
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top