Wed Feb 24 15:47:16 CET 2010 Paolo Molaro <lupus@ximian.com>
[mono.git] / mcs / class / System.Web / Test / tools / README
1 Tools
2 -------
3
4         * HtmlWriter.cs: it provides a custom HtmlTextWriter implementation with
5         logging capabilities to help figuring out which method in HtmlTextWriter
6         you should invoke and where to do it.
7
8         How to use it.
9         ---------------
10                 * Run 'make'. It will generate HtmlWriter.dll.
11                 * Copy HtmlWriter.dll to the 'bin' directory.
12                 * Copy web.config to the directory in which you run xsp
13                 (the parent of 'bin').
14                 * There are 2 environment variables used:
15                         -HTMLWRITER_FULLTRACE=yes: displays the stack trace for
16                         every method called.
17                         -HTMLWRITER_FILE=[yourfilename]: output goes to a file
18                         instead of stdout.
19
20         The default output is a sequence number, the function called and its
21         arguments.
22
23
24         * cache-pq-test-generator: a utility to generate NUnit tests for System.Web.Caching
25           CacheItem priority queue, used to store timed cache items. The utility generates
26           code from sequence files (found in CachePQTestGenerator/Sequences/*.seq) which, in turn
27           are generated by the CacheItemPriorityQueue class itself if System.Web is compiled with
28           the DEBUG macro defined. To generate the sequence files just run your application as usual
29           and at the exit a .seq file will be created in the application's root directory.
30           Copy the generated .seq file to the sequences directory mentioned above and run:
31
32                make generate-cache-pq-tests
33
34           which will generate the ../System.Web.Caching/CacheItemPriorityQueueTest_generated.cs file