morgand 01/08/28 11:06:42
Added: latka-webapp/webapp RunTest.jsp index.jsp
latka-webapp/webapp/WEB-INF web.xml
Log:
very basic functionality for running a single test manually
Revision Changes Path
1.1 jakarta-commons-sandbox/latka-webapp/webapp/RunTest.jsp
Index: RunTest.jsp
===================================================================
<%@ taglib uri="http://jakarta.apache.org/taglibs/latka-taglib"
prefix="latka" %>
<html>
<head>
<title>Run a Latka test</title>
</head>
<body bgcolor="white">
<% if (request.getParameter("latkaTest") == null) { %>
<h2>Run a Latka test</h2>
<form method="post">
<textarea NAME="latkaTest" ROWS="18" COLS="70">
<?xml version="1.0"?>
<suite defaultHost="localhost" defaultPort="8080" label="Latka self-diagnostics">
<!-- this XML is here temporarily for debugging purposes -->
<request path="<%= request.getContextPath() %>/index.jsp" label="basic test">
<validate>
<regexp pattern="Run a test manually"/>
</validate>
</request>
<request path="/thisTestWillFail.jsp" label="a missing file">
<validate>
<statusCode/>
</validate>
</request>
</suite>
</textarea>
<br>
<input type="submit">
</form>
<% } else { %>
<pre>
<latka:executeSuite>
<%= request.getParameter("latkaTest") %>
</latka:executeSuite>
</pre>
<% } %>
</body>
</html>
1.1 jakarta-commons-sandbox/latka-webapp/webapp/index.jsp
Index: index.jsp
===================================================================
<h2>Latka</h2>
<p>
<a href="TestMenu.jsp"></a><u>List of existing tests</u><br>
<a href="RunTest.jsp">Run a test manually</a>
</p>
<p><a href="help/index.jsp"></a><u>Help</u></p>
1.1 jakarta-commons-sandbox/latka-webapp/webapp/WEB-INF/web.xml
Index: web.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<web-app>
<description>
Latka standard web application
</description>
<taglib>
<taglib-uri>http://jakarta.apache.org/taglibs/latka-taglib</taglib-uri>
<taglib-location>/WEB-INF/latka-taglib.tld</taglib-location>
</taglib>
</web-app>