Daily Tips- Tip #47- How to disable client side script in validators?

Sunday, April 4, 2010


Set EnableClientScript property to false.


www.codecollege.NET

What is a WebTest Container?


A .webtest file or .loadtest file is considered a test container in the same way that a dll which contains unit tests is a test container.


www.codecollege.NET

What are the options of passing URLs to a webtest from external source?


1. From a custom xml file
2. Parameterized WebTest


www.codecollege.NET

Can we call another webtest from within the current one?


Yes.
You need to add a request manually to the webtest.


www.codecollege.NET

What is a Mocking Framework?


A mock object is a simulated object that mimics the behavior of a real object in controlled ways


www.codecollege.NET

How do we configure "WebGarden"?


"Web garden" can be configured by using process model settings in "machine.config" or "Web.config" file. The configuration section is named and is shown in the following example. The process model is enabled by default enable="true"). Below is the snippet from config file.


enable="true"
timeout="infinite"
idleTimeout="infinite"
shutdownTimeout="0:00:05"
requestLimit="infinite"
requestQueueLimit="5000"
memoryLimit="80"
webGarden="false"
cpuMask="12"
userName=""
password=""
logLevel="errors"
clientConnectedCheck=”0:00:05"
/>

From the above processModel section for web garden we are concerned with only two attributes "webgarden" and "cpuMask".

webGarden : Controls CPU affinity. True indicates that processes should be affinitized to the corresponding CPU. The default is False.

cpuMask : Specifies which processors on a multiprocessor server are eligible to run ASP.NET processes. The cpuMask value specifies a bit pattern that indicates the CPUs eligible to run ASP.NET threads. ASP.NET launches one worker process for each eligible CPU. If webGarden is set to false, cpuMask is ignored and only one worker process will run regardless of the number of processors in the machine. If webGarden is set to true, ASP.NET launches one worker process for each CPU that corresponds to a set bit in cpuMask. The default value of cpuMask is 0xffffffff.

Use 1 for the processor that you want to use for ASP.NET. Use 0 for the processor that you do not want to use for ASP.NET. For example, if you want to use the first two processors for ASP.NET of a four-processor computer, type 1100.


www.codecollege.NET
Blog Widget by LinkWithin