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

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

1 Answer 109 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
pearl oguchi
Top achievements
Rank 1
pearl oguchi asked on 03 Jun 2010, 09:21 AM
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.

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 03 Jun 2010, 06:35 PM
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.
Tags
General Discussions
Asked by
pearl oguchi
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or