473,326 Members | 2,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

testing JSP with catcus

oll3i
679 512MB
I try to do some jsp testing with cactus but i couldn't make it work
Where should the cactus jars go .I use tomcat 5.5.
I read the tutorial, i put jars where it told me to but later i read a different tutorial that said something else.
I want to test jsp sites.
Maybe there is some plugin for eclipse?

Thank YOU
Sep 20 '08 #1
2 1599
oll3i
679 512MB
i followed the tutorial http://jakarta.apache.org/cactus/integration/howto_tomcat.html
but when i try to compile a sample application to test (from cactus site)
i get



C:\PROGRA~1\TOMCAT~1.5\WEBAPPS\TEST\WEB-INF\CLASSES>javac TestSampleServlet.java
TestSampleServlet.java:1: package junit.framework does not exist
import junit.framework.Test;
^
TestSampleServlet.java:2: package junit.framework does not exist
import junit.framework.TestSuite;
^
TestSampleServlet.java:4: package org.apache.cactus does not exist
import org.apache.cactus.ServletTestCase;
^
TestSampleServlet.java:5: package org.apache.cactus does not exist
import org.apache.cactus.WebRequest;
^
TestSampleServlet.java:7: cannot find symbol
symbol: class ServletTestCase
public class TestSampleServlet extends ServletTestCase
^
TestSampleServlet.java:14: cannot find symbol
symbol : class Test
location: class TestSampleServlet
public static Test suite()
^
TestSampleServlet.java:19: cannot find symbol
symbol : class WebRequest
location: class TestSampleServlet
public void beginSaveToSessionOK(WebRequest webRequest)
^
TestSampleServlet.java:16: cannot find symbol
symbol : class TestSuite
location: class TestSampleServlet
return new TestSuite(TestSampleServlet.class);
^
TestSampleServlet.java:27: cannot find symbol
symbol : variable request
location: class TestSampleServlet
servlet.saveToSession(request);
^
TestSampleServlet.java:28: cannot find symbol
symbol : variable session
location: class TestSampleServlet
assertEquals("it works!", session.getAttribute("testAttribute"));
^
10 errors

C:\PROGRA~1\TOMCAT~1.5\WEBAPPS\TEST\WEB-INF\CLASSES>
Sep 20 '08 #2
oll3i
679 512MB
hmm i managed to do the sample testing(from cactus) i added jars to eclipse project and started tomcat (have Sysdeo) and it works but now if i wanted to test a jsp page what do i have to write to test it?
Sep 20 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Hugh Cowan | last post by:
Hello, I don't program full-time (anymore), but I do try and stay on-top of the latest technologies and like most are always trying to upgrade my skills and remain current (as much as is...
0
by: Jonathan Allen | last post by:
We have found that our method of testing does not match traditional text-book methodologies. I decided to write a short white paper on it so that I could get your opinions. Does anyone else use...
0
by: Brian Russell | last post by:
We have three servers (beyond my development box) in our organization. The first is a testing server that has IIS and SQL Server on it. The second is another testing server that also has IIS and...
72
by: Jacob | last post by:
I have compiled a set og unit testing recommendations based on my own experience on the concept. Feedback and suggestions for improvements are appreciated: ...
58
by: nw | last post by:
Hi, I have been asked to teach a short course on testing in C++. Until now I have used my own testing classes (which from what I've seen seem similar to the boost unit testing classes)....
18
by: Andrew Wan | last post by:
I have been developing web applications with ASP & Javascript for a long time. I have been using Visual Studio 2003.NET. While VS2003 is okay for intellisense of ASP & Javascript, it's still not...
0
by: Matthew Fitzgibbons | last post by:
I'm by no means a testing expert, but I'll take a crack at it. Casey McGinty wrote: I've never run into this. Rule of thumb: always separate software from hardware. Write mock classes or...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.