JsUnit
Project Developer Home doxygen

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.

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 %>.

<%@ LANGUAGE="JScript" %>
<!--#include file="lib/JsUtil.inc" -->
<!--#include file="lib/JsUnit.inc" -->
<!--#include file="samples/ArrayTest.inc" -->
<!--#include file="samples/money/IMoney.inc" -->
<!--#include file="samples/money/Money.inc" -->
<!--#include file="samples/money/MoneyBag.inc" -->
<!--#include file="samples/money/MoneyTest.inc" -->
<!--#include file="samples/SimpleTest.inc" -->
<!--#include file="samples/AllTests.inc" -->
<!--#include file="JsUnitHeader.inc" -->

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.

$ /usr/lib/jsunit> util/genasp conf/ASP

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

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.

iis.png

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


JsUnit © 1999, 2000, 2001, 2002, 2003, 2006, 2007 by Jörg Schaible
Generated on Wed Apr 15 2015 02:33:06 for JsUnit by doxygen 1.8.5