/* JsUnit - a JUnit port for JavaScript Copyright (C) 1999,2000,2001,2002,2003,2006,2007 Joerg Schaible Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /*! \htmlonly
\endhtmlonly \page iis Microsoft Internet Information Server

Microsoft's web server is the Internet Information Server. It is part of the Microsoft Windows Professional and Server versions and also with a simpler user interface as Personal Web Server in the home user's Windows versions. This web server is able to run Active Server Pages (ASP), that are written in one of the languages registered in the Windows Script Engine. A special article of Microsoft exists for debugging ASPs with the different debuggers of the Windows Script Engine.

\section genasp Generating JsUnit ASP

Active Server Pages contain by default only HTML and client-side JavaScript. Any script running directly on the server must be embedded into the server-side script tags <% and %>.

\dontinclude samples.asp \until %> \skip #include \until Header

To include the JsUnit library files you have to run the genasp shell script. It will add these tags to the beginning and end of the files and write them to the given target directory preserving JsUnit's directory structure.

\code $ /usr/lib/jsunit> util/genasp conf/ASP \endcode

On Windows I personally use Cygwin to have a Unix shell environment.

\section setupiis Setting up IIS for the examples

To run the ASP samples of JsUnit you can start the Internet Information Server (the Personal Web Server should also be capable) and add a virtual folder names JsUnit. Set the root of your JsUnit location as root of this virtual location. Allow the execution of scripts and add to the supported default documents index.asp.

\image html iis.png

Run the web application and you should be able to run the examples of JsUnit in ASP pages at the server-side:

\htmlonly
\endhtmlonly */